2 Star 0 Fork 0

mirrors_rancher/jenkins-rancher-validations

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
FROM python:3.5
MAINTAINER Nathan Valentine <nathan@rancher.com|nrvale0@gmail.com>
ARG OPTDIR=/opt/nrvale0
ARG BINDIR="${OPTDIR}/bin"
ARG BUILDCACHE=/tmp/build
ARG WORKDIR=/workdir
ENV TERM=ansi DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true
ENV PATH "${BINDIR}:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
RUN mkdir -p "${BUILDCACHE}" "${BINDIR}" "${WORKDIR}"
# Install Dependencies
RUN apt-get update && \
apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev zip
# This is required for auto-provisioning and configuration via SSH using Docker Machine and Rancher CLI
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
RUN echo "UserKnownHostsFile=/dev/null" >> /etc/ssh/ssh_config
# for various operations against Rancher API
ARG RANCHER_CLI_URI=https://github.com/rancher/cli/releases/download/v0.6.2/rancher-linux-amd64-v0.6.2.tar.gz
ADD "${RANCHER_CLI_URI} ${BUILDCACHE}/"
RUN (cd "${BUILDCACHE}" && \
tar zxvf rancher-* && \
cp rancher-v*/rancher "${BINDIR}/") && \
chmod +x "${BINDIR}/rancher" && \
rm -rf "${BUILDCACHE}/rancher*"
# Install jq
ARG JQ_URI=https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64
ADD "${JQ_URI} ${BUILDCACHE}/"
RUN (cd "${BUILDCACHE}" && \
cp jq-* "${BINDIR}/jq") && \
chmod +x "${BINDIR}/jq" && \
rm -rf "${BUILDCACHE}/jq-*"
# for provisioning of AWS EC2 instances
ARG DOCKER_MACHINE_URI=https://github.com/docker/machine/releases/download/v0.8.2/docker-machine-Linux-x86_64
ADD "${DOCKER_MACHINE_URI} ${BINDIR}/docker-machine"
RUN chmod +x "${BINDIR}/docker-machine"
ARG TERRAFORM_URI=https://releases.hashicorp.com/terraform/0.7.7/terraform_0.7.7_linux_amd64.zip
ADD "${TERRAFORM_URI} ${BUILDCACHE}/"
RUN (cd "${BUILDCACHE}" && \
unzip terraform*.zip && \
chmod +x terraform && \
cp terraform "${BINDIR}/") && \
rm -rf "${BUILDCACHE}/terraform*"
# the scripts for CMD
ADD ./lib "${WORKDIR}/lib/"
ADD ./tasks.py "${WORKDIR}"
RUN (cd "${WORKDIR}" && \
pip install -r ./lib/python/requirements.txt)
ADD Dockerfile /opt/nrvale0
WORKDIR "${WORKDIR}"
#ENTRYPOINT ["invoke"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_rancher/jenkins-rancher-validations.git
git@gitee.com:mirrors_rancher/jenkins-rancher-validations.git
mirrors_rancher
jenkins-rancher-validations
jenkins-rancher-validations
master

搜索帮助