Skip to content

Commit

Permalink
Merge 5065a65 into e543e33
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Jul 31, 2020
2 parents e543e33 + 5065a65 commit 8203708
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions build-support/docker/tc_remote_execution/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

# 1. Install Docker.
# 2. $ docker build --tag pants-remote-execution build-support/docker/tc_remote_execution
# 3. $ docker push [needs docker hub tag]
# 4. Ask a toolchain developer on Slack in #infra channel to upload the new image.

FROM ubuntu:xenial-20200619

RUN apt-get update --fix-missing
RUN apt-get install -y \
build-essential \
curl \
git \
gcc-multilib \
g++-multilib \
libbz2-dev \
liblzma-dev \
libreadline-dev \
libssl-dev \
libsqlite3-dev \
libffi-dev \
openjdk-8-jdk-headless \
openjdk-8-jre-headless \
python-openssl \
unzip \
zip \
zlib1g-dev

# Even though the image already comes installed with Python 2.7, 3.5, and 3.6, we install our own
# via Pyenv because we need Python 3.7 and want consistency in how we install them.
ARG PYTHON_27_VERSION=2.7.18
ARG PYTHON_36_VERSION=3.6.11
ARG PYTHON_37_VERSION=3.7.8
ARG PYTHON_38_VERSION=3.8.5

ENV PYENV_ROOT /pyenv-docker-build
ENV PYENV_BIN "${PYENV_ROOT}/bin/pyenv"
RUN git clone https://github.com/pyenv/pyenv ${PYENV_ROOT}

RUN ${PYENV_BIN} install ${PYTHON_27_VERSION}
RUN ${PYENV_BIN} install ${PYTHON_36_VERSION}
RUN ${PYENV_BIN} install ${PYTHON_37_VERSION}
RUN ${PYENV_BIN} install ${PYTHON_38_VERSION}

ENV PATH "${PYENV_ROOT}/versions/${PYTHON_27_VERSION}/bin:${PATH}"
ENV PATH "${PYENV_ROOT}/versions/${PYTHON_36_VERSION}/bin:${PATH}"
ENV PATH "${PYENV_ROOT}/versions/${PYTHON_37_VERSION}/bin:${PATH}"
ENV PATH "${PYENV_ROOT}/versions/${PYTHON_38_VERSION}/bin:${PATH}"

0 comments on commit 8203708

Please sign in to comment.