Skip to content

Commit

Permalink
fix nit to prevent warnings from docker build daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzianos committed Sep 13, 2024
1 parent 23ab086 commit cee729a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions containers/Dockerfile.draconctl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG BASE_MIGRATION_IMAGE
FROM ${BASE_MIGRATION_IMAGE:-scratch}

LABEL org.opencontainers.image.description "Draconctl is a command line tool for interacting with Dracon, you can find documentation for it at github.com/ocurity/dracon"
LABEL org.opencontainers.image.description="Draconctl is a command line tool for interacting with Dracon, you can find documentation for it at github.com/ocurity/dracon"

COPY ./bin/cmd/draconctl /bin/draconctl
COPY ./pkg/enrichment/migrations /etc/dracon/migrations/enrichment

ENTRYPOINT [ "/bin/draconctl" ]
ENTRYPOINT ["/bin/draconctl"]
8 changes: 4 additions & 4 deletions scripts/build_component_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ then
make -C "${executable_src_path}" --no-print-directory --quiet container CONTAINER_REPO="${CONTAINER_REPO}" DRACON_VERSION="${DRACON_VERSION}"
else
dockerfile_template="
FROM ${BASE_IMAGE:-scratch} \n
COPY ${executable_path} /app/${executable_path} \n
ENTRYPOINT ["/app/${executable_path}"] \n
FROM ${BASE_IMAGE:-scratch} \n
COPY ${executable_path} /app/${executable} \n
ENTRYPOINT [\"/app/${executable}\"] \n
"
dockerfile_path=$(mktemp)
printf "${dockerfile_template}" > "${dockerfile_path}"
docker build -t "${CONTAINER_REPO}/${executable_src_path}:${DRACON_VERSION}" \
docker --debug build -t "${CONTAINER_REPO}/${executable_src_path}:${DRACON_VERSION}" \
$([ "${SOURCE_CODE_REPO}" != "" ] && echo "--label=org.opencontainers.image.source=${SOURCE_CODE_REPO}" ) \
-f "${dockerfile_path}" ./bin
fi
Expand Down

0 comments on commit cee729a

Please sign in to comment.