Skip to content

Commit

Permalink
[docker] refs skycoin#146 install python using bash
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMac committed Jun 4, 2019
1 parent 0e4e274 commit ab9033f
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions docker/images/dev-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM $IMAGE_FROM
ARG BDATE
ARG SCOMMIT
ARG PIP_PACKAGES="pip setuptools wheel"
ARG PYTHON_INSTALLERS="2.7.10 3.4.9 3.5.7 3.6.7 3.7.1"

# Image labels (see ./hooks/build for ARGS)
LABEL "org.label-schema.name"="skycoindev-python" \
Expand Down Expand Up @@ -68,16 +69,17 @@ RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc \
&& git submodule update --init --recursive \
&& echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc \
&& bash -c "eval "$(pyenv virtualenv-init -)"" \
&& pyenv install 2.7.10 \
&& pyenv install 3.4.9 \
&& pyenv install 3.5.7 \
&& pyenv install 3.6.7 \
&& pyenv install 3.7.1 \
&& pyenv virtualenv 2.7.10 pysky27 \
&& pyenv virtualenv 3.4.9 pysky34 \
&& pyenv virtualenv 3.5.7 pysky35 \
&& pyenv virtualenv 3.6.7 pysky36 \
&& pyenv virtualenv 3.7.1 pysky37 \
&& for installer in $(echo $PYTHON_INSTALLERS | tr " " "\n"); do pyenv install $installer; pyenv virtualenv $installer pysky$installer; done \
#&& pyenv install 2.7.10 \
#&& pyenv install 3.4.9 \
#&& pyenv install 3.5.7 \
#&& pyenv install 3.6.7 \
#&& pyenv install 3.7.1 \
#&& pyenv virtualenv 2.7.10 pysky27 \
#&& pyenv virtualenv 3.4.9 pysky34 \
#&& pyenv virtualenv 3.5.7 pysky35 \
#&& pyenv virtualenv 3.6.7 pysky36 \
#&& pyenv virtualenv 3.7.1 pysky37 \
&& . $PYENV_ROOT/versions/pysky27/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \
&& . $PYENV_ROOT/versions/pysky34/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \
&& . $PYENV_ROOT/versions/pysky35/bin/activate && pip install --upgrade $PIP_PACKAGES && pip install pyskycoin && deactivate \
Expand Down

0 comments on commit ab9033f

Please sign in to comment.