-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Daniel Kimsey <90741+dekimsey@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
124 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
build: Publish official Docker images with the Nomad CLI | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
# docker.io/library/busybox:1.36.0 | ||
# When pinning use the multi-arch manifest list, `docker buildx imagetools inspect ...` | ||
FROM docker.io/library/busybox@sha256:9e2bbca079387d7965c3a9cee6d0c53f4f4e63ff7637877a83c4c05f2a666112 as release | ||
|
||
ARG PRODUCT_NAME=nomad | ||
ARG PRODUCT_VERSION | ||
ARG PRODUCT_REVISION | ||
# TARGETARCH and TARGETOS are set automatically when --platform is provided. | ||
ARG TARGETOS TARGETARCH | ||
|
||
LABEL maintainer="Nomad Team <nomad@hashicorp.com>" | ||
LABEL version=${PRODUCT_VERSION} | ||
LABEL revision=${PRODUCT_REVISION} | ||
|
||
COPY dist/$TARGETOS/$TARGETARCH/nomad /bin/ | ||
COPY ./scripts/docker-entrypoint.sh / | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env ash | ||
|
||
case "$1" in | ||
"agent" ) | ||
if [[ -z "${NOMAD_SKIP_DOCKER_IMAGE_WARN}" ]] | ||
then | ||
echo "=====================================================================================" | ||
echo "!! Running Nomad clients inside Docker containers is not supported. !!" | ||
echo "!! Refer to https://www.nomadproject.io/s/nomad-in-docker for more information. !!" | ||
echo "!! Set the NOMAD_SKIP_DOCKER_IMAGE_WARN environment variable to skip this warning. !!" | ||
echo "=====================================================================================" | ||
echo "" | ||
sleep 2 | ||
fi | ||
esac | ||
|
||
exec nomad "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters