This commit is contained in:
commit
9e9dfd729f
82
.drone.yml
Normal file
82
.drone.yml
Normal file
@ -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/hid:latest-amd64" --arch amd64 .
|
||||||
|
- buildah push --all registry.cloud.federationhq.de/hid: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/hid:latest-arm64" --arch arm64 .
|
||||||
|
- buildah push --all registry.cloud.federationhq.de/hid: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 hid:latest registry.cloud.federationhq.de/hid:latest-arm64 registry.cloud.federationhq.de/hid:latest-amd64
|
||||||
|
- buildah manifest push --all hid:latest docker://registry.cloud.federationhq.de/hid:latest
|
||||||
|
- buildah manifest rm hid:latest
|
||||||
|
depends_on:
|
||||||
|
- build-amd64
|
||||||
|
- build-arm64
|
17
Containerfile
Normal file
17
Containerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM alpine
|
||||||
|
|
||||||
|
RUN apk update && apk add --no-cache tini bash perl-app-cpanminus
|
||||||
|
|
||||||
|
RUN cpanm install HiD
|
||||||
|
RUN cpanm install HiD::Generator::BibtexPage
|
||||||
|
|
||||||
|
ADD scripts/entryPoint.sh /plugin.sh
|
||||||
|
RUN chmod +x /plugin.sh
|
||||||
|
|
||||||
|
# add a user for running imapfilter in the container
|
||||||
|
RUN addgroup hid && adduser -D -G hid hid
|
||||||
|
|
||||||
|
# run everything as the hid user
|
||||||
|
USER hid
|
||||||
|
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--", "/plugin.sh"]
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) [2024] [Dominik Meyer]
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
47
README.md
Normal file
47
README.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
lang: EN_US
|
||||||
|
---
|
||||||
|
|
||||||
|
# HiD Drone Plugin
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Drone Plugin for running HiD (https://metacpan.org/pod/HiD)
|
||||||
|
|
||||||
|
|
||||||
|
## Supported Architectures
|
||||||
|
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
|
||||||
|
## Updates
|
||||||
|
|
||||||
|
I am trying to update the image weekly as long as my private kubernetes cluster is available. So I do not promise anything and do **not** rely
|
||||||
|
your business on this image.
|
||||||
|
|
||||||
|
## Prerequisities
|
||||||
|
|
||||||
|
A container runtime like
|
||||||
|
|
||||||
|
* docker
|
||||||
|
* podman
|
||||||
|
* kubernetes
|
||||||
|
|
||||||
|
|
||||||
|
## Container Parameters
|
||||||
|
|
||||||
|
None
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Source Repository
|
||||||
|
|
||||||
|
* https://gitea.federationhq.de/Container/hid.git
|
||||||
|
|
||||||
|
## Authors
|
||||||
|
|
||||||
|
* **Dominik Meyer** - *Initial work*
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
3
scripts/plugin.sh
Executable file
3
scripts/plugin.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
hid publish
|
3
scripts/setupEnvironment.sh
Executable file
3
scripts/setupEnvironment.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cp /etc/ssl/certs2/federationHQ-CA.pem /etc/pki/ca-trust/source/anchors/
|
||||||
|
update-ca-trust
|
Loading…
Reference in New Issue
Block a user