This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
forked from dbresson/bedouin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Bresson
committed
Mar 7, 2017
1 parent
e137dcc
commit dc6b6f6
Showing
1 changed file
with
15 additions
and
6 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 |
---|---|---|
@@ -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"] |