From 42f802cbfbd026bbaee089beb8f80d90d1c0ea7e Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Thu, 5 Aug 2021 11:17:54 +0200 Subject: [PATCH] add bullseye image --- .gitlab-ci.yml | 1 + Dockerfile.bullseye | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile.bullseye diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2067b6..fd75d7d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,3 +6,4 @@ build-buster: script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.buster --destination $CI_REGISTRY_IMAGE/buster:$CI_COMMIT_TAG + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile.bullseye --destination $CI_REGISTRY_IMAGE/bullseye:$CI_COMMIT_TAG diff --git a/Dockerfile.bullseye b/Dockerfile.bullseye new file mode 100644 index 0000000..2f1ae52 --- /dev/null +++ b/Dockerfile.bullseye @@ -0,0 +1,29 @@ +FROM debian:bullseye AS uffd-base + +RUN apt-get -qq update && \ + apt-get -qq dist-upgrade && \ + apt-get -qq install \ + lsb-release openjdk-11-jre-headless curl \ + sqlite3 locales-all git \ + python3 python3-venv python3-coverage python3-ldap3 python3-flask python3-flask-sqlalchemy python3-flask-migrate \ + python3-pip python3-qrcode python3-fido2 python3-flask-oauthlib python3-flask-babel python3-pytest python3-all python3-pip \ + git-buildpackage debhelper && \ + pip3 install pylint html5validator twine build --upgrade && \ + apt-get -qq clean + +FROM uffd-base AS openldap-base + +RUN apt-get -qq update && \ + pip3 install ansible --upgrade && \ + ansible --version && \ + mkdir -p /var/run/ && \ + git clone --depth 1 "https://git.cccv.de/infra/ansible/roles/openldap.git" && \ + git clone --depth 1 "https://git.cccv.de/infra/ansible/roles/certificates.git" && \ + apt-get -qq clean + +COPY ansible-inventory.yml inventory.yml +COPY ansible-playbook.yml playbook.yml +COPY ansible.cfg ansible.cfg + +RUN ansible-playbook playbook.yml && \ + rm -fr openldap certificates inventory.yml playbook.yml ansible.cfg -- GitLab