-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(hydra): move to formal python:3.8 image
centos7 isn't formally support python3 and were getting python3.6 out of iusrepo and iusrepo/announce#18 seem like a good reason to move to formal python image
- Loading branch information
Showing
6 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
FROM centos:7 | ||
FROM python:3.8 | ||
|
||
ADD install-prereqs.sh install-prereqs.sh | ||
RUN ./install-prereqs.sh docker | ||
RUN yum update -y \ | ||
&& yum install -y https://centos7.iuscommunity.org/ius-release.rpm \ | ||
&& yum install -y python36u python36u-libs python36u-devel python36u-pip | ||
#ADD install-prereqs.sh install-prereqs.sh | ||
#RUN ./install-prereqs.sh docker | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt update && \ | ||
apt install -y git openssl iproute2 sudo apt-transport-https \ | ||
ca-certificates curl gnupg2 software-properties-common rsync | ||
|
||
# Install Docker cli only | ||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - && \ | ||
DEBIAN_FRONTEND=noninteractive add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y docker-ce-cli && \ | ||
sudo groupadd docker && \ | ||
sudo usermod -aG docker `whoami` | ||
|
||
ADD requirements-python.txt requirements-python.txt | ||
RUN pip3 install setuptools==40.8.0 pip==19.1.1 | ||
RUN pip3 install -r requirements-python.txt | ||
|
||
# update locales | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y locales \ | ||
&& sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \ | ||
&& dpkg-reconfigure --frontend=noninteractive locales \ | ||
&& update-locale LANG=en_US.UTF-8 | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LC_ALL en_US.UTF-8 | ||
ENV PYTHONWARNINGS ignore:unclosed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.66 | ||
0.67-python3.8-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters