代码拉取完成,页面将自动刷新
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。