Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch Packer to fix e2e test #55

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ RUN cd /src && \
git checkout $TFENV && \
rm -rf .git && \
cd /src && \
git clone https://github.com/iamhsa/pkenv.git && \
cd pkenv && \
rm -rf .git
git clone https://github.com/lonegunmanb/pkenv.git && \
cd pkenv/pkenv && \
go install && cd ../packer && \
go install

FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 as runner
ARG GOLANG_IMAGE_TAG=1.19
Expand All @@ -85,6 +86,7 @@ ENV TFENV_TERRAFORM_VERSION=$TERRAFORM_VERSION
ENV TFLINT_PLUGIN_DIR ${HOME_DIR}/tflint
ENV TFLINTENV_DEFAULT_VERSION=$TFLINT_VERSION
ENV TFLINTENV_HOME_DIR=${HOME_DIR}/tflintenv
ENV PKENV_DEFAULT_VERSION=${PACKER_VERSION}
# Update image, install and configure system-wide software
RUN yum update -y && \
yum install -y ca-certificates zip unzip jq python3-devel python3-pip make git less diffutils build-essential openssh-server wget && \
Expand All @@ -102,12 +104,10 @@ RUN mkdir ${HOME_DIR}
COPY .terraformrc ${HOME_DIR}/.terraformrc
COPY --from=build /go/bin /usr/local/go/bin
COPY --from=build /src/tfenv ${HOME_DIR}/tfenv
COPY --from=build /src/pkenv ${HOME_DIR}/pkenv
RUN cp /root/.gitconfig ${HOME_DIR}/.gitconfig && \
mkdir ${HOME_DIR}/tflintenv && \
chmod -Rv a+rwX ${HOME_DIR} && \
chmod 777 ${HOME_DIR}/tfenv/bin/* && \
chmod 777 ${HOME_DIR}/pkenv/bin/* && \
rm -r /tmp/* && \
yum clean all
ENV HOME=${HOME_DIR}
2 changes: 1 addition & 1 deletion version.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GREPT_VERSION=v0.1.1
HCLEDIT_VERSION=v0.2.10.1
HCLMERGE_VERSION=3e3d119a74cf3dec3e9d4d603add754c16691559
NEWRES_VERSION=cec4481680478f5844cdeedc7ccd348518b8dcc1
PACKER_VERSION=1.11.0
PACKER_VERSION=1.9.5
TERRAFORM_DOCS_VERSION=v0.17.2
TERRAFORM_VERSION=1.8.3
TERRAGRUNT_VERSION=v0.59.5
Expand Down
Loading