Commit 07f575bc authored by Piotr Janyst's avatar Piotr Janyst Committed by MGniew

Add python 3.8 docker image build to .gitlab-ci.yml

Fix missing distutils preventing docker image from building
parent 917e37c6
......@@ -32,3 +32,21 @@ build_python3.6:
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
- docker push clarinpl/python:3.6
build_python3.8:
stage: build
image: docker:18.09.7
only:
- master
services:
- docker:18.09.7-dind
before_script:
- ''
script:
- docker build -t clarinpl/python:3.8 3.8/
- echo $DOCKER_PASSWORD > pass.txt
- cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
- rm pass.txt
- docker push clarinpl/python:3.8
FROM ubuntu:16.04
RUN apt update && \
apt install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt update && \
apt install -y python3.8 \
apt-transport-https \
python3.8-dev \
python3.8-distutils \
subversion \
git \
wget
RUN wget -q -O - http://apt.clarin-pl.eu/KEY.gpg | apt-key add - && \
echo 'deb https://apt.clarin-pl.eu/ /' > /etc/apt/sources.list.d/clarin.list && \
wget -q -O - http://download.sgjp.pl/apt/sgjp.gpg.key | apt-key add - && \
apt-add-repository http://download.sgjp.pl/apt/ubuntu && \
apt-get update
RUN update-alternatives --install \
/usr/bin/python python /usr/bin/python3.8 10 && \
wget https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
rm get-pip.py && \
pip install --upgrade pip
ENV PIP_EXTRA_INDEX_URL=https://pypi.clarin-pl.eu
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment