Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Fix nomad on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bresson committed Mar 7, 2017
1 parent e137dcc commit dc6b6f6
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
FROM alpine
FROM alpine:3.5
ARG NOMAD_VERSION=0.5.2
RUN apk add --no-cache wget ca-certificates unzip ruby &&\
wget -q https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
unzip -d /usr/local/bin nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
rm nomad_${NOMAD_VERSION}_linux_amd64.zip &&\
chmod +x /usr/local/bin/nomad &&\
RUN apk add --no-cache ruby go make git musl-dev bash &&\
mkdir -p /tmp/src/github.com/hashicorp/ &&\
cd /tmp/src/github.com/hashicorp/ &&\
git clone https://github.com/hashicorp/nomad.git &&\
cd nomad &&\
git checkout v${NOMAD_VERSION} &&\
export GOPATH=/tmp &&\
export PATH=/tmp/bin:$PATH &&\
make bootstrap &&\
make dev &&\
make install &&\
cd / &&\
rm -rf /tmp/* &&\
apk del go make git musl-dev bash &&\
gem install --no-document bedouin
USER nobody
ENTRYPOINT ["bedouin"]

0 comments on commit dc6b6f6

Please sign in to comment.