mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add nomad
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
d9a1b4ab15
commit
abdb32aee6
|
@ -118,6 +118,7 @@ keepassxreboot/keepassxc
|
||||||
robertdavidgraham/masscan
|
robertdavidgraham/masscan
|
||||||
MidnightCommander/mc
|
MidnightCommander/mc
|
||||||
zyedidia/micro
|
zyedidia/micro
|
||||||
|
hashicorp/nomad
|
||||||
zeit/now-cli
|
zeit/now-cli
|
||||||
nzbget/nzbget
|
nzbget/nzbget
|
||||||
bitly/oauth2_proxy
|
bitly/oauth2_proxy
|
||||||
|
|
43
nomad/Dockerfile
Normal file
43
nomad/Dockerfile
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
FROM golang:1.10-alpine as builder
|
||||||
|
MAINTAINER Jessica Frazelle <jess@linux.com>
|
||||||
|
|
||||||
|
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" ]
|
|
@ -22,8 +22,6 @@ WORKDIR /go/src/github.com/hashicorp/vault
|
||||||
|
|
||||||
RUN git checkout "${VAULT_VERSION}"
|
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 \
|
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
|
&& mv bin/vault /usr/bin/vault
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user