Skip to content

Commit

Permalink
fix: build args and metadata variables (#111)
Browse files Browse the repository at this point in the history
* Redeclare build args before final metadata layer

* Use single quotes to escape varibales to be replaced in metadata
  • Loading branch information
eeberhard committed May 13, 2024
1 parent 712b712 commit a99670d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ros2_ws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ USER ${USER}
WORKDIR ${ROS2_WORKSPACE}

# Metadata
ARG BASE_IMAGE=docker.io/library/ros
ARG BASE_TAG=iron
ARG ROS_DISTRO=iron
ARG VERSION=v0.0.0
LABEL org.opencontainers.image.title="AICA ROS 2 image"
LABEL org.opencontainers.image.description="AICA base ROS 2 image (includes ros2_control)"
LABEL org.opencontainers.image.version="${VERSION}"
LABEL org.opencontainers.image.base.name="${BASE_IMAGE}:${BASE_TAG}"
LABEL tech.aica.image.metadata='{"type":"base/ws","base":{"name":"${BASE_IMAGE}:${BASE_TAG}","version":"${VERSION}"}}'
LABEL tech.aica.image.metadata='{"type":"base/ws","base":{"name":"'${BASE_IMAGE}':'${BASE_TAG}'","version":"'${VERSION}'"}}'
LABEL devcontainer.metadata='[{"containerUser": "ros2"}]'

0 comments on commit a99670d

Please sign in to comment.