-
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.
results for tag 1.9.1 / commit e5e26c8eb34c40263d1557f7e6f948c92fc57ca
related to hashicorp/nomad#24339
- Loading branch information
Showing
2 changed files
with
491 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
gh-24339/Dockerfile-e5e26c8eb34c40263d1557f7e6f948c92fc57ca
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,24 @@ | ||
#FROM alpine | ||
# hugely inefficient and bloated images this way, but this was just for the sake of confirming https://github.com/hashicorp/nomad/issues/24339 | ||
FROM golang:alpine3.20 | ||
ENV VNOMAD=1.9.1 VCONSUL=1.20.1 VCNI=1.6.0 GLIBC_VERSION=2.35-r1 ARCH=amd64 COMMIT_CHECKOUT_ID=e5e26c8eb34c40263d1557f7e6f948c92fc57ca8 | ||
|
||
RUN apk update && apk upgrade && apk add curl unzip gcompat cgroup-tools && \ | ||
curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \ | ||
curl -Lo glibc.apk "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk" && \ | ||
curl -Lo glibc-bin.apk "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk" && \ | ||
apk add --force-overwrite glibc-bin.apk glibc.apk && \ | ||
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib && \ | ||
curl -L -o /tmp/nomad.zip https://releases.hashicorp.com/nomad/${VNOMAD}/nomad_${VNOMAD}_linux_${ARCH}.zip && unzip /tmp/nomad.zip nomad && chmod 755 nomad && \ | ||
mv nomad /usr/local/bin/nomad-${VNOMAD} && \ | ||
curl -L -o /tmp/consul.zip https://releases.hashicorp.com/consul/${VCONSUL}/consul_${VCONSUL}_linux_${ARCH}.zip && unzip /tmp/consul.zip consul && chmod 755 consul && \ | ||
mv consul /usr/local/bin/ && \ | ||
mkdir -p /opt/cni/bin && \ | ||
curl -L -o /tmp/cni.tgz https://github.com/containernetworking/plugins/releases/download/v${VCNI}/cni-plugins-linux-${ARCH}-v${VCNI}.tgz && tar -zxf /tmp/cni.tgz -C /opt/cni/bin | ||
|
||
|
||
RUN apk add git g++ make bash go linux-headers && git clone -b release/${VNOMAD} https://github.com/hashicorp/nomad.git | ||
|
||
WORKDIR /go/nomad | ||
|
||
RUN git checkout ${COMMIT_CHECKOUT_ID} && make bootstrap && make dev && cp bin/nomad /usr/local/bin/ |
Oops, something went wrong.