Skip to content

Commit

Permalink
Merge pull request #75 from Chia-Network/fix-j2-ips
Browse files Browse the repository at this point in the history
Fix j2 in the ips image
  • Loading branch information
cmmarslender authored May 31, 2024
2 parents 4dc5568 + 04b6e19 commit 7c1ff1f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ips/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ FROM hashicorp/terraform:latest as terraform
FROM alpine:latest

ENV PACKER_PLUGIN_PATH="/packer-plugins"
ENV PYENV_ROOT=/root/.pyenv
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH

COPY --from=packer /bin/packer /bin/
COPY --from=terraform /bin/terraform /bin/
COPY --from=kubectl-helm /usr/local/bin/kubectl /bin/
RUN apk add --no-cache ansible aws-cli bash curl curl-dev git github-cli go gpg gpg-agent jq make mysql-client netcat-openbsd openssh-client openssh-keygen openssl python3 py3-pip py3-jmespath rsync sudo tar wget xorriso && \
RUN apk add --no-cache ansible aws-cli bash build-base bzip2-dev curl curl-dev git github-cli git go gpg gpg-agent jq libffi-dev make mysql-client netcat-openbsd openssh-client openssh-keygen openssl openssl-dev readline-dev rsync sudo sqlite-dev tar tk-dev wget xorriso xz-dev zlib-dev && \
apk add --no-cache yq --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && \
pip install --break-system-packages j2cli && \
git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \
pyenv install 3.11 && \
pyenv global 3.11 && \
pip install --upgrade pip && \
pip install --no-cache-dir j2cli jmespath && \
packer plugins install github.com/hashicorp/amazon && \
packer plugins install github.com/hashicorp/ansible && \
packer plugins install github.com/hashicorp/proxmox

0 comments on commit 7c1ff1f

Please sign in to comment.