From be8e0264a0993db3b91498bb4c1052258b87d128 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 23 Oct 2021 21:19:00 +0300 Subject: [PATCH] Add python3-build image. --- .gitlab-ci.yml | 17 +++++++++++++++++ images/python3-build/.dockerignore | 1 + images/python3-build/Dockerfile | 26 ++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 images/python3-build/.dockerignore create mode 100644 images/python3-build/Dockerfile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a98a2c8..0132ebf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -140,3 +140,20 @@ push-python3: needs: - job: build-python3 artifacts: true + +# python3-build image: + +build-python3-build: + extends: .container-build + variables: + CONTEXT: images/python3-build + +push-python3-build: + extends: .container-push + variables: + CONTEXT: images/python3-build + IMAGE: ci-images + TAG: python3-build + needs: + - job: build-python3-build + artifacts: true diff --git a/images/python3-build/.dockerignore b/images/python3-build/.dockerignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/images/python3-build/.dockerignore @@ -0,0 +1 @@ +* diff --git a/images/python3-build/Dockerfile b/images/python3-build/Dockerfile new file mode 100644 index 0000000..cf80cd0 --- /dev/null +++ b/images/python3-build/Dockerfile @@ -0,0 +1,26 @@ +# hadolint ignore=DL3006 +FROM registry.hub.docker.com/library/centos:7 +ENV LC_ALL en_US.UTF-8 +ENV LANG en_US.UTF-8 +# hadolint ignore=DL3013,DL3033 +RUN yum group install -y "Development tools" && \ + yum install -y \ + python3-devel \ + python3-pip \ + python3-wheel \ + && \ + yum clean all && \ + pip3 install --no-cache-dir --upgrade pip && \ + pip3 install --no-cache-dir \ + auditwheel \ + build \ + docutils \ + pipenv \ + poetry \ + pygments \ + pyinstaller \ + tox \ + twine \ + wheel \ + && \ + rm -rf /tmp/* /var/tmp/* ~/.cache/* /var/cache/yum/* -- GitLab