Skip to content

Commit

Permalink
results for tag 1.9.1 / commit e5e26c8eb34c40263d1557f7e6f948c92fc57ca
Browse files Browse the repository at this point in the history
  • Loading branch information
dmclf committed Nov 10, 2024
1 parent d3c9fa6 commit 7dac719
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gh-24339/Dockerfile-e5e26c8eb34c40263d1557f7e6f948c92fc57ca
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/
Loading

0 comments on commit 7dac719

Please sign in to comment.