forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
33 lines (27 loc) · 1.21 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ARG DOCKER_ORG=usdotfhwastoldev
ARG DOCKER_TAG=develop
FROM ${DOCKER_ORG}/carma-base:${DOCKER_TAG} as base_image
FROM base_image AS build
ARG GIT_BRANCH=develop
ARG ROS1_PACKAGES=""
ENV ROS1_PACKAGES=${ROS1_PACKAGES}
ARG ROS2_PACKAGES=""
ENV ROS2_PACKAGES=${ROS2_PACKAGES}
COPY --chown=carma . /home/carma/autoware.ai
RUN /home/carma/autoware.ai/docker/checkout.bash -b ${GIT_BRANCH}
RUN ./home/carma/autoware.ai/docker/install.sh
FROM base_image
ARG BUILD_DATE="NULL"
ARG VCS_REF="NULL"
ARG VERSION="NULL"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="autoware.ai"
LABEL org.label-schema.description="Binary applications and libraries from autoware.ai for the CARMA Platform"
LABEL org.label-schema.vendor="Leidos"
LABEL org.label-schema.version=${VERSION}
LABEL org.label-schema.url="https://highways.dot.gov/research/research-programs/CARMA"
LABEL org.label-schema.vcs-url="https://github.com/usdot-fhwa-stol/autoware.ai"
LABEL org.label-schema.vcs-ref=${VCS_REF}
LABEL org.label-schema.build-date=${BUILD_DATE}
COPY --chown=carma --from=build /opt/autoware.ai/ros/install /opt/autoware.ai/ros/install
COPY --chown=carma --from=build /opt/autoware.ai/ros/install_ros2 /opt/autoware.ai/ros/install_ros2