Skip to content

Commit 01fc647

Browse files
authored
refactor(docker,ci): rename autoware-openadk to autoware and adkit to openadkit (#4785)
* rename adkit to openadkit Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp> * rename autoware-openadkit to autoware Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp> * fix hcl path Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp> --------- Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
1 parent 7fcdee3 commit 01fc647

15 files changed

+33
-33
lines changed

.devcontainer/base/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Autoware",
33
"build": {
44
"dockerfile": "../Dockerfile",
5-
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware-openadk:latest-devel" }
5+
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware:latest-devel" }
66
},
77
"remoteUser": "autoware",
88
"runArgs": [

.devcontainer/cuda/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Autoware-cuda",
33
"build": {
44
"dockerfile": "../Dockerfile",
5-
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware-openadk:latest-devel-cuda" }
5+
"args": { "BASE_IMAGE": "ghcr.io/autowarefoundation/autoware:latest-devel-cuda" }
66
},
77
"remoteUser": "autoware",
88
"hostRequirements": {

.github/actions/docker-build-and-push/action.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ runs:
9898
with:
9999
push: ${{ inputs.allow-push == 'true' }}
100100
files: |
101-
docker/${{ inputs.bake-target }}/docker-bake.hcl
101+
docker/docker-bake.hcl
102102
${{ steps.meta-prebuilt.outputs.bake-file }}
103103
${{ steps.meta-devel.outputs.bake-file }}
104104
targets: |
@@ -114,7 +114,7 @@ runs:
114114
with:
115115
push: true
116116
files: |
117-
docker/${{ inputs.bake-target }}/docker-bake.hcl
117+
docker/docker-bake.hcl
118118
${{ steps.meta-devel.outputs.bake-file }}
119119
${{ steps.meta-prebuilt.outputs.bake-file }}
120120
${{ steps.meta-runtime.outputs.bake-file }}
@@ -128,7 +128,7 @@ runs:
128128
with:
129129
push: false
130130
files: |
131-
docker/${{ inputs.bake-target }}/docker-bake.hcl
131+
docker/docker-bake.hcl
132132
${{ steps.meta-devel.outputs.bake-file }}
133133
${{ steps.meta-prebuilt.outputs.bake-file }}
134134
${{ steps.meta-runtime.outputs.bake-file }}

.github/workflows/build-main-self-hosted.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Build 'autoware-universe'
5151
uses: ./.github/actions/docker-build-and-push
5252
with:
53-
bake-target: autoware-openadk
53+
bake-target: autoware
5454
build-args: |
5555
*.platform=linux/arm64
5656
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}

.github/workflows/build-main.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Build 'autoware-universe'
4646
uses: ./.github/actions/docker-build-and-push
4747
with:
48-
bake-target: autoware-openadk
48+
bake-target: autoware
4949
build-args: |
5050
*.platform=linux/amd64
5151
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}

.github/workflows/docker-build-and-push-main-self-hosted.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: docker-build-and-push-main-self-hosted
99
on:
1010
push:
1111
tags:
12-
- adkit-v*.*.*
12+
- openadkit-v*.*.*
1313
branches:
1414
- main
1515
schedule:
@@ -75,10 +75,10 @@ jobs:
7575
mkdir src
7676
vcs import src < autoware.repos
7777
78-
- name: Build 'autoware-openadk'
78+
- name: Build 'Autoware'
7979
uses: ./.github/actions/docker-build-and-push
8080
with:
81-
bake-target: autoware-openadk
81+
bake-target: autoware
8282
build-args: |
8383
*.platform=linux/arm64
8484
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}

.github/workflows/docker-build-and-push-main.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: docker-build-and-push-main
99
on:
1010
push:
1111
tags:
12-
- adkit-v*.*.*
12+
- openadkit-v*.*.*
1313
branches:
1414
- main
1515
schedule:
@@ -70,10 +70,10 @@ jobs:
7070
mkdir src
7171
vcs import src < autoware.repos
7272
73-
- name: Build 'autoware-openadk'
73+
- name: Build 'Autoware'
7474
uses: ./.github/actions/docker-build-and-push
7575
with:
76-
bake-target: autoware-openadk
76+
bake-target: autoware
7777
build-args: |
7878
*.platform=linux/amd64
7979
*.args.ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}

.github/workflows/update-docker-manifest.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Check out repository
1313
uses: actions/checkout@v4
1414

15-
- name: Combine multi arch images for 'autoware-openadk'
15+
- name: Combine multi arch images for 'Autoware'
1616
uses: ./.github/actions/combine-multi-arch-images
1717
with:
18-
package-name: autoware-openadk
18+
package-name: autoware
File renamed without changes.

docker/autoware-openadk/Dockerfile docker/Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ WORKDIR /autoware
2020

2121
# Set up base environment
2222
RUN --mount=type=ssh \
23-
./setup-dev-env.sh -y --module base --runtime openadk \
23+
./setup-dev-env.sh -y --module base --runtime openadkit \
2424
&& pip uninstall -y ansible ansible-core \
2525
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache \
2626
&& echo "source /opt/ros/${ROS_DISTRO}/setup.bash" > /etc/bash.bashrc
@@ -72,7 +72,7 @@ ENV CXX="/usr/lib/ccache/g++"
7272
# cspell: ignore libcu libnv
7373
# Set up development environment
7474
RUN --mount=type=ssh \
75-
./setup-dev-env.sh -y --module all ${SETUP_ARGS} --no-cuda-drivers openadk \
75+
./setup-dev-env.sh -y --module all ${SETUP_ARGS} --no-cuda-drivers openadkit \
7676
&& pip uninstall -y ansible ansible-core \
7777
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache \
7878
&& find / -name 'libcu*.a' -delete \
@@ -105,12 +105,12 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
105105

106106
# Install development tools and artifacts
107107
RUN --mount=type=ssh \
108-
./setup-dev-env.sh -y --module dev-tools openadk \
108+
./setup-dev-env.sh -y --module dev-tools openadkit \
109109
&& pip uninstall -y ansible ansible-core \
110110
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache
111111

112112
# Create entrypoint
113-
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
113+
COPY docker/etc/ros_entrypoint.sh /ros_entrypoint.sh
114114
RUN chmod +x /ros_entrypoint.sh
115115
ENTRYPOINT ["/ros_entrypoint.sh"]
116116
CMD ["/bin/bash"]
@@ -125,7 +125,7 @@ ARG SETUP_ARGS
125125
COPY --from=src-imported /rosdep-exec-depend-packages.txt /tmp/rosdep-exec-depend-packages.txt
126126
# hadolint ignore=SC2002
127127
RUN --mount=type=ssh \
128-
./setup-dev-env.sh -y --module all ${SETUP_ARGS} --no-cuda-drivers --runtime openadk \
128+
./setup-dev-env.sh -y --module all ${SETUP_ARGS} --no-cuda-drivers --runtime openadkit \
129129
&& pip uninstall -y ansible ansible-core \
130130
&& apt-get update \
131131
&& cat /tmp/rosdep-exec-depend-packages.txt | xargs apt-get install -y --no-install-recommends \
@@ -143,11 +143,11 @@ RUN --mount=type=ssh \
143143
COPY --from=prebuilt /autoware/install/ /autoware/install/
144144

145145
# Copy bash aliases
146-
COPY docker/autoware-openadk/etc/.bash_aliases /root/.bash_aliases
146+
COPY docker/etc/.bash_aliases /root/.bash_aliases
147147
RUN echo "source /autoware/install/setup.bash" > /etc/bash.bashrc
148148

149149
# Create entrypoint
150-
COPY docker/autoware-openadk/etc/ros_entrypoint.sh /ros_entrypoint.sh
150+
COPY docker/etc/ros_entrypoint.sh /ros_entrypoint.sh
151151
RUN chmod +x /ros_entrypoint.sh
152152
ENTRYPOINT ["/ros_entrypoint.sh"]
153153
CMD ["bash"]

docker/build.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ print_help() {
1616
}
1717

1818
SCRIPT_DIR=$(readlink -f "$(dirname "$0")")
19-
WORKSPACE_ROOT="$SCRIPT_DIR/../"
19+
WORKSPACE_ROOT="$SCRIPT_DIR/.."
2020

2121
# Parse arguments
2222
parse_arguments() {
@@ -111,17 +111,17 @@ build_images() {
111111
echo "Targets: ${targets[*]}"
112112

113113
set -x
114-
docker buildx bake --load --progress=plain -f "$SCRIPT_DIR/autoware-openadk/docker-bake.hcl" \
114+
docker buildx bake --load --progress=plain -f "$SCRIPT_DIR/docker-bake.hcl" \
115115
--set "*.context=$WORKSPACE_ROOT" \
116116
--set "*.ssh=default" \
117117
--set "*.platform=$platform" \
118118
--set "*.args.ROS_DISTRO=$rosdistro" \
119119
--set "*.args.BASE_IMAGE=$base_image" \
120120
--set "*.args.SETUP_ARGS=$setup_args" \
121121
--set "*.args.LIB_DIR=$lib_dir" \
122-
--set "devel.tags=ghcr.io/autowarefoundation/autoware-openadk:latest-devel$image_name_suffix" \
123-
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt$image_name_suffix" \
124-
--set "runtime.tags=ghcr.io/autowarefoundation/autoware-openadk:latest-runtime$image_name_suffix" \
122+
--set "devel.tags=ghcr.io/autowarefoundation/autoware:latest-devel$image_name_suffix" \
123+
--set "prebuilt.tags=ghcr.io/autowarefoundation/autoware:latest-prebuilt$image_name_suffix" \
124+
--set "runtime.tags=ghcr.io/autowarefoundation/autoware:latest-runtime$image_name_suffix" \
125125
"${targets[@]}"
126126
set +x
127127
}

docker/autoware-openadk/docker-bake.hcl docker/docker-bake.hcl

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ target "docker-metadata-action-runtime" {}
99

1010
target "prebuilt" {
1111
inherits = ["docker-metadata-action-prebuilt"]
12-
dockerfile = "docker/autoware-openadk/Dockerfile"
12+
dockerfile = "docker/Dockerfile"
1313
target = "prebuilt"
1414
}
1515

1616
target "devel" {
1717
inherits = ["docker-metadata-action-devel"]
18-
dockerfile = "docker/autoware-openadk/Dockerfile"
18+
dockerfile = "docker/Dockerfile"
1919
target = "devel"
2020
}
2121

2222
target "runtime" {
2323
inherits = ["docker-metadata-action-runtime"]
24-
dockerfile = "docker/autoware-openadk/Dockerfile"
24+
dockerfile = "docker/Dockerfile"
2525
target = "runtime"
2626
}
File renamed without changes.
File renamed without changes.

docker/run.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GREEN='\033[0;32m'
1010
NC='\033[0m' # No Color
1111

1212
SCRIPT_DIR=$(readlink -f "$(dirname "$0")")
13-
WORKSPACE_ROOT="$SCRIPT_DIR/../"
13+
WORKSPACE_ROOT="$SCRIPT_DIR/.."
1414
source "$WORKSPACE_ROOT/amd64.env"
1515
if [ "$(uname -m)" = "aarch64" ]; then
1616
source "$WORKSPACE_ROOT/arm64.env"
@@ -124,9 +124,9 @@ set_variables() {
124124

125125
# Set image based on option
126126
if [ "$option_devel" == "true" ]; then
127-
IMAGE="ghcr.io/autowarefoundation/autoware-openadk:latest-devel"
127+
IMAGE="ghcr.io/autowarefoundation/autoware:latest-devel"
128128
else
129-
IMAGE="ghcr.io/autowarefoundation/autoware-openadk:latest-runtime"
129+
IMAGE="ghcr.io/autowarefoundation/autoware:latest-runtime"
130130
fi
131131
}
132132

0 commit comments

Comments
 (0)