Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed Feb 3, 2025
1 parent ab3e8e3 commit fc5d8fe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions .github/actions/docker-build-and-push-tools/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ runs:
flavor: |
latest=false
- name: Docker meta for autoware:simulator
id: meta-simulator
- name: Docker meta for autoware:scenario-simulator
id: meta-scenario-simulator
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/${{ inputs.target-image }}
tags: |
type=raw,value=simulator-${{ inputs.platform }}
type=raw,value=simulator-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=simulator-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-simulator
type=raw,value=scenario-simulator-${{ inputs.platform }}
type=raw,value=scenario-simulator-${{ steps.date.outputs.date }}-${{ inputs.platform }}
type=ref,event=tag,prefix=scenario-simulator-,suffix=-${{ inputs.platform }}
bake-target: docker-metadata-action-scenario-simulator
flavor: |
latest=false
Expand All @@ -104,7 +104,7 @@ runs:
push: true
files: |
docker/docker-bake-tools.hcl
${{ steps.meta-simulator.outputs.bake-file }}
${{ steps.meta-scenario-simulator.outputs.bake-file }}
${{ steps.meta-visualizer.outputs.bake-file }}
provenance: false
set: |
Expand Down
12 changes: 6 additions & 6 deletions docker/docker-bake-tools.hcl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
group "default" {
targets = [
"simulator",
"scenario-simulator",
"visualizer"
]
}

// For docker/metadata-action
target "docker-metadata-action-simulator" {}
target "docker-metadata-action-scenario-simulator" {}
target "docker-metadata-action-visualizer" {}

target "simulator" {
inherits = ["docker-metadata-action-simulator"]
dockerfile = "docker/tools/Dockerfile.simulator"
target = "simulator"
target "scenario-simulator" {
inherits = ["docker-metadata-action-scenario-simulator"]
dockerfile = "docker/tools/Dockerfile.scenario-simulator"
target = "scenario-simulator"
}

target "visualizer" {
Expand Down
4 changes: 2 additions & 2 deletions docker/tools/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
docker run -it --rm \
--net=host \
--platform linux/amd64 \
--name simulator \
ghcr.io/autowarefoundation/autoware:simulator-20250130-amd64
--name scenario-simulator \
ghcr.io/autowarefoundation/autoware:scenario-simulator-20250130-amd64
4 changes: 2 additions & 2 deletions docker/tools/scenario-simulator/Dockerfile.simulator
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY src /autoware/src
COPY docker/scripts/resolve_rosdep_keys.sh /autoware/resolve_rosdep_keys.sh
RUN chmod +x /autoware/resolve_rosdep_keys.sh

# Install dependencies and build the simulator
# Install dependencies and build the scenario simulator
# hadolint ignore=SC1091
RUN --mount=type=ssh \
--mount=type=cache,target=/var/cache/apt,sharing=locked \
Expand All @@ -36,7 +36,7 @@ RUN /autoware/resolve_rosdep_keys.sh /autoware/src/simulator ${ROS_DISTRO} \

### Simulator
# TODO: Remove architecture specific image after arm64 builds are FIXED
FROM ghcr.io/autowarefoundation/autoware:universe-visualization-amd64 AS simulator
FROM ghcr.io/autowarefoundation/autoware:universe-visualization-amd64 AS scenario-simulator
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG ROS_DISTRO
ARG LIB_DIR
Expand Down
2 changes: 1 addition & 1 deletion docker/tools/scenario-simulator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ run_scenario_simulator() {
source "/opt/ros/$ROS_DISTRO/setup.bash"
source "/opt/autoware/setup.bash"

# Execute passed command if provided, otherwise run simulator
# Execute passed command if provided, otherwise run scenario simulator
if [ $# -eq 0 ]; then
run_scenario_simulator
else
Expand Down

0 comments on commit fc5d8fe

Please sign in to comment.