Skip to content

Commit

Permalink
ci(devcontainers): create single dockerfile for devcontainers (#4525)
Browse files Browse the repository at this point in the history
* Merge dockerfiles

Signed-off-by: oguzkaganozt <[email protected]>

* hadolint ignore

Signed-off-by: Oguz Ozturk <[email protected]>

---------

Signed-off-by: oguzkaganozt <[email protected]>
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt authored Mar 12, 2024
1 parent 117c633 commit e1a4269
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/base/Dockerfile → .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ghcr.io/autowarefoundation/autoware-openadk:latest-devel
# hadolint global ignore=DL3006
ARG BASE_IMAGE
FROM $BASE_IMAGE

ENV SHELL /bin/bash

Expand Down
6 changes: 2 additions & 4 deletions .devcontainer/base/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "Autoware",
"build": {
"dockerfile": "Dockerfile"
"dockerfile": "../Dockerfile",
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware-openadk:latest-devel" }
},
"remoteUser": "autoware",
"hostRequirements": {
"gpu": true
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
Expand Down
14 changes: 0 additions & 14 deletions .devcontainer/cuda/Dockerfile

This file was deleted.

3 changes: 2 additions & 1 deletion .devcontainer/cuda/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "Autoware-cuda",
"build": {
"dockerfile": "Dockerfile"
"dockerfile": "../Dockerfile",
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware-openadk:latest-devel-cuda" }
},
"remoteUser": "autoware",
"hostRequirements": {
Expand Down

0 comments on commit e1a4269

Please sign in to comment.