Skip to content

Commit 3a13c37

Browse files
authored
Merge pull request #106 from mdechiaro/el10-support
Add support for el10
2 parents 2a2e046 + a593c7b commit 3a13c37

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/containers.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,18 @@ jobs:
140140
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
141141
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}
142142
platforms: linux/amd64,linux/arm64
143+
144+
el10_go:
145+
runs-on: ubuntu-latest
146+
steps:
147+
- name: Checkout code
148+
uses: actions/checkout@v4
149+
150+
- uses: ./.github/actions/build-packager
151+
with:
152+
file: Dockerfile.el10-go
153+
go: ${{ env.GO_VERSION }}
154+
tag: el10-go${{ env.TAG }}
155+
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
156+
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}
157+
platforms: linux/amd64,linux/arm64

Dockerfile.el10-go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM almalinux:10
2+
3+
ARG GOVERSION="1.24.6"
4+
RUN echo -n el10_64 > /etc/packager.txt
5+
6+
RUN yum install -y rpm-build ruby wget gcc git softhsm && \
7+
yum clean all
8+
9+
RUN wget -q https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
10+
tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz && \
11+
rm -f go${GOVERSION}.linux-amd64.tar.gz
12+
13+
WORKDIR /build/source
14+
15+
VOLUME /go
16+
VOLUME /build/artifacts
17+
18+
ENV RUBYLIB /packager/lib
19+
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
20+
ENV GOPATH /go
21+
ENV GO111MODULE on
22+
23+
COPY lib /packager/lib/
24+
COPY bin /packager/bin/
25+
COPY install-choria.sh /bin
26+
27+
CMD /packager/bin/packager.rb

install-choria.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ case "${FLAVOUR?}" in
1818

1919
;;
2020

21+
el10_64)
22+
rpm -ivh https://s3.osuosl.org/openvox-yum/openvox8-release-el-10.noarch.rpm
23+
METHOD="yum"
24+
25+
;;
26+
2127
bullseye_64)
2228
wget -O /tmp/puppet.deb https://s3.osuosl.org/openvox-apt/openvox8-release-debian11.deb
2329

0 commit comments

Comments
 (0)