commit 6647e326300bc1f6d2d574c40a3364175630918d Author: Dominik Meyer Date: Sun Feb 11 11:46:02 2024 +0100 ADD: initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d8312f9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,82 @@ +kind: pipeline +type: kubernetes +name: build-amd64 +platform: + arch: amd64 +node_selector: + kubernetes.io/arch: amd64 + +volumes: +- name: fedhq-ca-crt + config_map: + name: fedhq-ca-crt + default_mode: 420 # same as 644 in octal, or u+w,a+r + optional: false + +steps: + - name: build amd64 + image: quay.io/buildah/stable + privileged: true + volumes: + - name: fedhq-ca-crt + path: /etc/ssl/certs2/ + commands: + - scripts/setupEnvironment.sh + - buildah bud --network host -t "registry.cloud.federationhq.de/redmine:latest-amd64" --arch amd64 . + - buildah push --all registry.cloud.federationhq.de/redmine:latest-amd64 +--- +kind: pipeline +type: kubernetes +name: build-arm64 +platform: + arch: arm64 +node_selector: + kubernetes.io/arch: arm64 + +volumes: +- name: fedhq-ca-crt + config_map: + name: fedhq-ca-crt + default_mode: 420 # same as 644 in octal, or u+w,a+r + optional: false + +steps: + - name: build arm64 + image: quay.io/buildah/stable + privileged: true + volumes: + - name: fedhq-ca-crt + path: /etc/ssl/certs2/ + commands: + - scripts/setupEnvironment.sh + - buildah bud --network host -t "registry.cloud.federationhq.de/redmine:latest-arm64" --arch arm64 . + - buildah push --all registry.cloud.federationhq.de/redmine:latest-arm64 +--- +kind: pipeline +type: kubernetes +name: push +node_selector: + kubernetes.io/arch: amd64 + +volumes: +- name: fedhq-ca-crt + config_map: + name: fedhq-ca-crt + default_mode: 420 # same as 644 in octal, or u+w,a+r + optional: false + +steps: + - name: push + image: quay.io/buildah/stable + privileged: true + volumes: + - name: fedhq-ca-crt + path: /etc/ssl/certs2/ + commands: + - scripts/setupEnvironment.sh + - buildah manifest create redmine:latest registry.cloud.federationhq.de/redmine:latest-arm64 registry.cloud.federationhq.de/redmine:latest-amd64 + - buildah manifest push --all redmine:latest docker://registry.cloud.federationhq.de/redmine:latest + - buildah manifest rm redmine:latest +depends_on: + - build-amd64 + - build-arm64 \ No newline at end of file diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..b3f947e --- /dev/null +++ b/Containerfile @@ -0,0 +1,54 @@ +FROM redmine:5.1 + +RUN apt-get -qy update && apt-get -qy upgrade && apt-get -qy install git + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/Ilogeek/redmine_issue_dynamic_edit.git +RUN cd /usr/src/redmine/plugins;git clone https://github.com/akpaevj/dashboard.git +RUN cd /usr/src/redmine/plugins;git clone https://github.com/haru/redmine_wiki_extensions.git; cd redmine_wiki_extensions; git checkout 0.9.5 + +RUN cd /usr/src/redmine/plugins;git clone -b stable https://www.github.com/alphanodes/additionals.git +RUN cd /usr/src/redmine/plugins;git clone -b stable https://www.github.com/alphanodes/additional_tags.git + +RUN apt-get -qy install unzip +RUN cd /usr/src/redmine/plugins;wget https://redmine-kanban.com/files/redmine_kanban.zip; unzip redmine_kanban.zip + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/mikitex70/redmine_drawio.git +RUN cd /usr/src/redmine/plugins;git clone https://github.com/alphanodes/redmine_messenger.git + +RUN cd /usr/src/redmine/plugins;wget https://redmine.ociotec.com/attachments/download/581/scrum-0.23.1.tar.gz; tar zxf scrum-0.23.1.tar.gz + +#RUN cd /usr/src/redmine/plugins;git clone https://github.com/cryptogopher/issue_recurring.git + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/cat-in-136/redmine_hearts.git + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/wellbia/redmine_microsoftteams.git redmine_microsoftteams + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/redmica/redmica_ui_extension.git + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/onozaty/redmine-view-customize.git view_customize + +RUN cd /usr/src/redmine/plugins;git clone https://github.com/haru/redmine_theme_changer.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/mrliptontea/PurpleMine2.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/farend/redmine_theme_farend_bleuclair.git bleuclair + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/fraoustin/redmine_dark.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/fraoustin/RTMaterial.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/jbbarth/redmine_theme_ministere.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/Intera/redmine_theme_intera.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/knt419/material.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/letuankhoipm/qkit-redmine-rezii.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/makotokw/redmine-theme-gitmike.git + +RUN cd /usr/src/redmine/public/themes/; git clone https://github.com/alexcode-cc/redmine-theme-dwarf-build.git + +RUN cd /usr/src/redmine/plugins;git clone https://gitea.federationhq.de/byterazor/redmine-git-remote.git redmine_git_remote + +RUN cd /usr/src/redmine/plugins;git clone https://gitea.federationhq.de/byterazor/redmine_glossary.git \ No newline at end of file diff --git a/scripts/setupEnvironment.sh b/scripts/setupEnvironment.sh new file mode 100755 index 0000000..2761ce0 --- /dev/null +++ b/scripts/setupEnvironment.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cp /etc/ssl/certs2/federationHQ-CA.pem /etc/pki/ca-trust/source/anchors/ +update-ca-trust