Skip to content

Commit

Permalink
updated dockerfile for security
Browse files Browse the repository at this point in the history
  • Loading branch information
ajloughr-leidos committed Jul 11, 2024
1 parent df5dcb8 commit 4f8ce40
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker/vug-v2xhub_Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#
# BUILD COMMAND: sudo DOCKER_BUILDKIT=1 docker build --build-arg LEIDOS_TOKEN=$LEIDOS_TOKEN -t usdotfhwaops/v2xhubamd:voices-pilot2-0.0.1 . --progress=plain -f vug-v2xhub_Dockerfile
# BUILD COMMAND: sudo DOCKER_BUILDKIT=1 docker build --secret id=usdotfhwastol_token,src=$HOME/V2X-Hub/docker/vug-build/usdotfhwastol_token -t usdotfhwaops/v2xhubamd:voices-pilot2-0.0.1 . --progress=plain -f vug-v2xhub_Dockerfile
#

FROM usdotfhwaops/v2xhubamd:latest-test
# syntax=docker/dockerfile:1

FROM usdotfhwaops/v2xhubamd:latest

LABEL version="0.0.1"
LABEL description="Custom V2X-Hub with VUG adapters installed"

ARG DEBIAN_FRONTEND="noninteractive"
ARG LEIDOS_TOKEN

SHELL ["/bin/bash", "-ec"]

Expand All @@ -19,7 +20,9 @@ RUN --mount=type=bind,target=/home/BUILD,readonly,source=vug-build \
rm -rf /tmp/*

# install cmake library
RUN git clone https://${LEIDOS_TOKEN}@github.com/usdot-fhwa-stol/vug-cmake-package.git cmake_temp && \
RUN --mount=type=secret,id=usdotfhwastol_token \
USDOTFHWASTOL_TOKEN=$(cat /run/secrets/usdotfhwastol_token) && \
git clone https://${USDOTFHWASTOL_TOKEN}@github.com/usdot-fhwa-stol/vug-cmake-package.git cmake_temp && \
mv cmake_temp/cmake/ /home/TENA/lib/ && \
rm -rf cmake_temp

Expand Down

0 comments on commit 4f8ce40

Please sign in to comment.