代码拉取完成,页面将自动刷新
FROM google/cloud-sdk:slim
USER root
ARG TARGETARCH
ARG TARGETOS
ARG VERSION
LABEL org.opencontainers.image.source https://github.com/jenkins-x/jx
# unzip
RUN apt-get install -y unzip bash jq && \
rm -rf /var/lib/apt/lists/*
# terraform
ENV TERRAFORM 1.1.2
RUN curl -LO https://releases.hashicorp.com/terraform/${TERRAFORM}/terraform_${TERRAFORM}_linux_amd64.zip && \
unzip terraform_${TERRAFORM}_linux_amd64.zip && \
chmod +x terraform && mv terraform /usr/bin && rm terraform_${TERRAFORM}_linux_amd64.zip
# jx
RUN echo using jx version ${VERSION} and OS ${TARGETOS} arch ${TARGETARCH} && \
mkdir -p /home/.jx3 && \
curl -L https://github.com/jenkins-x/jx/releases/download/v${VERSION}/jx-${TARGETOS}-${TARGETARCH}.tar.gz | tar xzv && \
mv jx /usr/bin
# lets install the boot plugins
RUN jx upgrade plugins --boot --path /usr/bin
# lets install the admin plugin
RUN jx admin help
COPY run.sh /run.sh
ENTRYPOINT ["/bin/bash"]
CMD ["run.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。