Skip to content

Commit 52032e6

Browse files
committed
Add autoware maps container
1 parent b4ce4fa commit 52032e6

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/autoware_maps.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Autoware build image
2+
on:
3+
workflow_dispatch:
4+
push:
5+
paths:
6+
- containers/autoware-maps/Dockerfile
7+
- .github/workflows/autoware_maps.yml # Self-trigger
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: bounverif/autoware-maps
12+
VERSION: latest
13+
14+
jobs:
15+
build-and-push-image:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
packages: write
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v2
26+
- name: Log in to the registry
27+
uses: docker/login-action@v2
28+
with:
29+
registry: ${{ env.REGISTRY }}
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
- name: Build and push image
33+
uses: docker/build-push-action@v4
34+
with:
35+
context: containers/autoware-maps
36+
build-args: |
37+
VERSION=${{ env.VERSION }}
38+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
39+
push: true
40+
cache-from: type=gha
41+
cache-to: type=gha,mode=max

containers/autoware-maps/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# docker build . -t ghcr.io/bounverif/autoware:build -f docker/autoware-humble/build.dockerfile
2+
# docker run --rm -it ghcr.io/bounverif/autoware:build
3+
4+
FROM ros:humble-ros-base-jammy
5+
6+
VOLUME [ "/autoware_maps" ]
7+
8+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
&& apt-get -y install \
10+
python3 \
11+
python3-pip \
12+
unzip \
13+
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
14+
&& pip install gdown
15+
16+
RUN gdown -O /autoware_maps/ 'https://github.com/tier4/AWSIM/releases/download/v1.1.0/nishishinjuku_autoware_map.zip' \
17+
&& unzip -d /autoware_maps /autoware_maps/nishishinjuku_autoware_map.zip \
18+
&& rm -rf /autoware_maps/nishishinjuku_autoware_map.zip
19+
20+
RUN gdown -O /autoware_maps/ 'https://github.com/tier4/AWSIM/releases/download/v1.2.0/shinjuku_map.zip' \
21+
&& unzip -d /autoware_maps /autoware_maps/shinjuku_map.zip \
22+
&& rm -rf /autoware_maps/shinjuku_map.zip
23+
24+
RUN gdown -O /autoware_maps/ 'https://drive.google.com/uc?export=download&id=1499_nsbUbIeturZaDj7jhUownh5fvXHd' && \
25+
unzip -d /autoware_maps /autoware_maps/sample-map-planning.zip && \
26+
rm -rf /autoware_maps/sample-map-planning.zip

0 commit comments

Comments
 (0)