From abdb32aee6f374cd1902b0ff3930e5724b9359cf Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 13 Oct 2018 02:54:39 -0400 Subject: [PATCH] add nomad Signed-off-by: Jess Frazelle --- latest-versions.sh | 1 + nomad/Dockerfile | 43 +++++++++++++++++++++++++++++++++++++++++++ vault/Dockerfile | 2 -- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 nomad/Dockerfile diff --git a/latest-versions.sh b/latest-versions.sh index 4ad8495..54441c5 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -118,6 +118,7 @@ keepassxreboot/keepassxc robertdavidgraham/masscan MidnightCommander/mc zyedidia/micro +hashicorp/nomad zeit/now-cli nzbget/nzbget bitly/oauth2_proxy diff --git a/nomad/Dockerfile b/nomad/Dockerfile new file mode 100644 index 0000000..febbb40 --- /dev/null +++ b/nomad/Dockerfile @@ -0,0 +1,43 @@ +FROM golang:1.10-alpine as builder +MAINTAINER Jessica Frazelle + +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go + +RUN apk add --no-cache \ + --repository https://dl-3.alpinelinux.org/alpine/edge/main/ \ + bash \ + ca-certificates \ + gcc \ + git \ + libgcc \ + make \ + musl-dev \ + npm \ + pkgconf \ + yarn \ + zip + +ENV NOMAD_VERSION v0.8.6 + +RUN go get github.com/hashicorp/nomad + +WORKDIR /go/src/github.com/hashicorp/nomad + +RUN git checkout "${NOMAD_VERSION}" + +RUN set -x \ + && make bootstrap ember-dist static-assets \ + && CGO_ENABLED=1 GOOS=linux GOARCH=amd64 \ + go build \ + -ldflags "-X github.com/hashicorp/nomad/version.GitCommit=$(git rev-parse HEAD) -extldflags -static " \ + -tags "ui release" \ + -o /usr/bin/nomad + +FROM alpine:latest + +COPY --from=builder /usr/bin/nomad /usr/bin/nomad +COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs + +ENTRYPOINT [ "nomad" ] +CMD [ "--help" ] diff --git a/vault/Dockerfile b/vault/Dockerfile index e997013..11a23bf 100644 --- a/vault/Dockerfile +++ b/vault/Dockerfile @@ -22,8 +22,6 @@ WORKDIR /go/src/github.com/hashicorp/vault RUN git checkout "${VAULT_VERSION}" -#RUN yarn global add bower - RUN XC_ARCH="amd64" XC_OS="linux" XC_OSARCH="linux/amd64" LD_FLAGS=" -extldflags -static " make bootstrap static-dist bin \ && mv bin/vault /usr/bin/vault