Skip to content

Commit 186dd9f

Browse files
committed
Add Autoware devel image
1 parent 52032e6 commit 186dd9f

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/autoware_devel.yml

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

containers/autoware-devel/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM ghcr.io/bounverif/autoware-build:latest
2+
3+
RUN git clone https://github.com/tier4/scenario_simulator_v2 --depth 1 /scenario_simulator_v2 \
4+
&& mkdir /scenario_simulator_v2/src \
5+
&& vcs import --shallow /scenario_simulator_v2/src < /scenario_simulator_v2/dependency_humble.repos \
6+
&& . /opt/ros/humble/setup.sh \
7+
&& colcon build \
8+
--base-paths /scenario_simulator_v2/src \
9+
--build-base /scenario_simulator_v2/build \
10+
--install-base /opt/scenario_simulator_v2/humble/ \
11+
--cmake-args \
12+
" -Wno-dev" \
13+
" --no-warn-unused-cli" \
14+
-DCMAKE_BUILD_TYPE=Release \
15+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
16+
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
17+
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
18+
&& rm -rf /scenario_simulator_v2

0 commit comments

Comments
 (0)