diff --git a/rpms/openbao-plugin-secret-consul/0.1.0/release b/rpms/openbao-plugin-secret-consul/0.1.0/release new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/0.1.0/release @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-consul/Dockerfile b/rpms/openbao-plugin-secret-consul/Dockerfile new file mode 100644 index 0000000..539afe6 --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/Dockerfile @@ -0,0 +1,18 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy resources from the context into the container +COPY resources /app/resources + +# Default command to build RPMs +CMD /app/resources/build.sh \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-consul/metadata.yaml b/rpms/openbao-plugin-secret-consul/metadata.yaml new file mode 100644 index 0000000..8a336ec --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/metadata.yaml @@ -0,0 +1,9 @@ +name: openbao-plugin-secret-consul +release: 1 +version: 0.1.0 +github: openbao/openbao-plugins +build: +- distro: el/8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest +- distro: el/9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-consul/resources/build.sh b/rpms/openbao-plugin-secret-consul/resources/build.sh new file mode 100755 index 0000000..1cab061 --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/resources/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +# Download the required files +curl -L -o /app/openbao-plugin-secrets-consul.tar.gz https://github.com/openbao/openbao-plugins/releases/download/secrets-consul-v${PACKAGE_VERSION}/openbao-plugin-secrets-consul_linux_amd64_v1.tar.gz + +# Extract the binary +tar -xzf /app/openbao-plugin-secrets-consul.tar.gz -C /app + +# Rename the binary to a simpler name +mv /app/openbao-plugin-secrets-consul_linux_amd64_v1 /app/openbao-plugin-secrets-consul + +# Make the binary executable +chmod +x /app/openbao-plugin-secrets-consul + +# Build the RPM +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-consul/resources/nfpm.yaml b/rpms/openbao-plugin-secret-consul/resources/nfpm.yaml new file mode 100644 index 0000000..c485751 --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/resources/nfpm.yaml @@ -0,0 +1,35 @@ +# nfpm.yaml + +name: openbao-plugin-secret-consul +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "OpenBao secrets engine plugin for HashiCorp Consul" + +maintainer: OpenBao Community +homepage: https://github.com/openbao/openbao-plugins +license: MPL-2.0 + +disable_globbing: false + +replaces: + - openbao-plugin-secret-consul + +provides: + - openbao-plugin-secret-consul + +# Files to include in the package +contents: + - src: /app/openbao-plugin-secrets-consul + dst: /opt/openbao-plugins/openbao-plugin-secrets-consul + file_info: + mode: 0755 + owner: root + group: root + +# Scripts to run during installation/removal +scripts: + preinstall: /app/resources/scripts/preinstall.sh \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-consul/resources/scripts/preinstall.sh b/rpms/openbao-plugin-secret-consul/resources/scripts/preinstall.sh new file mode 100644 index 0000000..a32015d --- /dev/null +++ b/rpms/openbao-plugin-secret-consul/resources/scripts/preinstall.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +mkdir -p /opt/openbao-plugins \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/0.1.4/release b/rpms/openbao-plugin-secret-nomad/0.1.4/release new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/0.1.4/release @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/Dockerfile b/rpms/openbao-plugin-secret-nomad/Dockerfile new file mode 100644 index 0000000..539afe6 --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/Dockerfile @@ -0,0 +1,18 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy resources from the context into the container +COPY resources /app/resources + +# Default command to build RPMs +CMD /app/resources/build.sh \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/metadata.yaml b/rpms/openbao-plugin-secret-nomad/metadata.yaml new file mode 100644 index 0000000..dd596b9 --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/metadata.yaml @@ -0,0 +1,9 @@ +name: openbao-plugin-secret-nomad +release: 1 +version: 0.1.4 +github: openbao/openbao-plugins +build: +- distro: el/8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest +- distro: el/9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/resources/build.sh b/rpms/openbao-plugin-secret-nomad/resources/build.sh new file mode 100755 index 0000000..d1902df --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/resources/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +# Download the required files +curl -L -o /app/openbao-plugin-secrets-nomad.tar.gz https://github.com/openbao/openbao-plugins/releases/download/secrets-nomad-v${PACKAGE_VERSION}/openbao-plugin-secrets-nomad_linux_amd64_v1.tar.gz + +# Extract the binary +tar -xzf /app/openbao-plugin-secrets-nomad.tar.gz -C /app + +# Rename the binary to a simpler name +mv /app/openbao-plugin-secrets-nomad_linux_amd64_v1 /app/openbao-plugin-secrets-nomad + +# Make the binary executable +chmod +x /app/openbao-plugin-secrets-nomad + +# Build the RPM +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/resources/nfpm.yaml b/rpms/openbao-plugin-secret-nomad/resources/nfpm.yaml new file mode 100644 index 0000000..d355b64 --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/resources/nfpm.yaml @@ -0,0 +1,35 @@ +# nfpm.yaml + +name: openbao-plugin-secret-nomad +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "OpenBao secrets engine plugin for HashiCorp Nomad" + +maintainer: OpenBao Community +homepage: https://github.com/openbao/openbao-plugins +license: MPL-2.0 + +disable_globbing: false + +replaces: + - openbao-plugin-secret-nomad + +provides: + - openbao-plugin-secret-nomad + +# Files to include in the package +contents: + - src: /app/openbao-plugin-secrets-nomad + dst: /opt/openbao-plugins/openbao-plugin-secrets-nomad + file_info: + mode: 0755 + owner: root + group: root + +# Scripts to run during installation/removal +scripts: + preinstall: /app/resources/scripts/preinstall.sh \ No newline at end of file diff --git a/rpms/openbao-plugin-secret-nomad/resources/scripts/preinstall.sh b/rpms/openbao-plugin-secret-nomad/resources/scripts/preinstall.sh new file mode 100644 index 0000000..a32015d --- /dev/null +++ b/rpms/openbao-plugin-secret-nomad/resources/scripts/preinstall.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +mkdir -p /opt/openbao-plugins \ No newline at end of file diff --git a/rpms/openbao-plugins/1.0.0/release b/rpms/openbao-plugins/1.0.0/release new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/rpms/openbao-plugins/1.0.0/release @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/rpms/openbao-plugins/Dockerfile b/rpms/openbao-plugins/Dockerfile new file mode 100644 index 0000000..539afe6 --- /dev/null +++ b/rpms/openbao-plugins/Dockerfile @@ -0,0 +1,18 @@ +FROM git.unkin.net/unkin/almalinux9-rpmbuilder:latest + +# Create output directory for RPMs +RUN mkdir -p /app/dist + +# Set working directory +WORKDIR /app + +ARG PACKAGE_RELEASE +ENV PACKAGE_RELEASE=${PACKAGE_RELEASE} +ARG PACKAGE_VERSION +ENV PACKAGE_VERSION=${PACKAGE_VERSION} + +# Copy resources from the context into the container +COPY resources /app/resources + +# Default command to build RPMs +CMD /app/resources/build.sh \ No newline at end of file diff --git a/rpms/openbao-plugins/metadata.yaml b/rpms/openbao-plugins/metadata.yaml new file mode 100644 index 0000000..a7ca334 --- /dev/null +++ b/rpms/openbao-plugins/metadata.yaml @@ -0,0 +1,9 @@ +name: openbao-plugins +release: 1 +version: 1.0.0 +github: openbao/openbao-plugins +build: +- distro: el/8 + image: git.unkin.net/unkin/almalinux8-rpmbuilder:latest +- distro: el/9 + image: git.unkin.net/unkin/almalinux9-rpmbuilder:latest \ No newline at end of file diff --git a/rpms/openbao-plugins/resources/build.sh b/rpms/openbao-plugins/resources/build.sh new file mode 100755 index 0000000..9dc1412 --- /dev/null +++ b/rpms/openbao-plugins/resources/build.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash + +# This is a meta package - no binaries to download +# Build the RPM +nfpm pkg --config /app/resources/nfpm.yaml --target /app/dist --packager rpm \ No newline at end of file diff --git a/rpms/openbao-plugins/resources/nfpm.yaml b/rpms/openbao-plugins/resources/nfpm.yaml new file mode 100644 index 0000000..4569040 --- /dev/null +++ b/rpms/openbao-plugins/resources/nfpm.yaml @@ -0,0 +1,30 @@ +# nfpm.yaml + +name: openbao-plugins +version: ${PACKAGE_VERSION} +release: ${PACKAGE_RELEASE} +arch: amd64 +platform: linux +section: default +priority: extra +description: "Meta package that installs all OpenBao plugins" + +maintainer: OpenBao Community +homepage: https://github.com/openbao/openbao-plugins +license: MPL-2.0 + +disable_globbing: false + +replaces: + - openbao-plugins + +provides: + - openbao-plugins + +# Dependencies - this meta package pulls in all plugin packages +depends: + - openbao-plugin-secret-consul + - openbao-plugin-secret-nomad + +# No actual files in this meta package +contents: [] \ No newline at end of file