Skip to content

Commit

Permalink
Merge pull request #5 from duckietown-ttic/daffy
Browse files Browse the repository at this point in the history
added support for arm images
  • Loading branch information
AndreaCensi authored Nov 19, 2019
2 parents 368ff46 + 5811f6e commit eaa5f8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion duckiebot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# We start from a base ROS image
FROM duckietown/dt-core:daffy-amd64
ARG ARCH=amd64
FROM duckietown/dt-core:daffy-${ARCH}

RUN apt-get update -y && apt-get install -y --no-install-recommends \
gcc \
Expand Down
5 changes: 3 additions & 2 deletions duckiebot/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
repo=challenge-aido_lf-duckiebot
branch=$(shell git rev-parse --abbrev-ref HEAD)
tag=duckietown/$(repo):$(branch)
arch=amd64

build:
docker build --pull -t $(tag) .
docker build --pull -t $(tag) --build-arg ARCH=$(arch) .

build-no-cache:
docker build --pull -t $(tag) --no-cache .
docker build --pull -t $(tag) --build-arg ARCH=$(arch) --no-cache .

push: build
docker push $(tag)

0 comments on commit eaa5f8e

Please sign in to comment.