Skip to content

Commit ac63eaf

Browse files
authored
Merge pull request #87 from choria-io/ubuntu_noble
Support ubuntu noble
2 parents 5961552 + a0c3c69 commit ac63eaf

File tree

4 files changed

+58
-5
lines changed

4 files changed

+58
-5
lines changed

.github/workflows/containers.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,20 @@ jobs:
8383
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
8484
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}
8585

86+
noble_go:
87+
runs-on: ubuntu-latest
88+
steps:
89+
- name: Checkout code
90+
uses: actions/checkout@v4
91+
92+
- uses: ./.github/actions/build-packager
93+
with:
94+
file: Dockerfile.noble-go
95+
go: ${{ env.GO_VERSION }}
96+
tag: focal-go${{ env.TAG }}
97+
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
98+
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}
99+
86100
jammy_go:
87101
runs-on: ubuntu-latest
88102
steps:

Dockerfile.bionic-go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
1111
rake \
1212
debhelper \
1313
git \
14-
dh-systemd
14+
dh-systemd
1515

1616

1717
RUN wget -q https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
@@ -23,10 +23,10 @@ WORKDIR /build/source
2323
VOLUME /go
2424
VOLUME /build/artifacts
2525

26-
ENV RUBYLIB /packager/lib
27-
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
28-
ENV GOPATH /go
29-
ENV GO111MODULE on
26+
ENV RUBYLIB=/packager/lib
27+
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
28+
ENV GOPATH=/go
29+
ENV GO111MODULE=on
3030

3131
COPY lib /packager/lib/
3232
COPY bin /packager/bin/

Dockerfile.noble-go

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:noble
2+
3+
ARG GOVERSION="1.14.10"
4+
RUN echo -n noble_64 > /etc/packager.txt
5+
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
RUN apt-get update && apt-get install -y \
8+
dpkg-dev \
9+
wget \
10+
ruby \
11+
rake \
12+
debhelper \
13+
git
14+
15+
16+
RUN wget -q https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
17+
tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz && \
18+
rm -f go${GOVERSION}.linux-amd64.tar.gz
19+
20+
WORKDIR /build/source
21+
22+
VOLUME /go
23+
VOLUME /build/artifacts
24+
25+
ENV RUBYLIB=/packager/lib
26+
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
27+
ENV GOPATH=/go
28+
ENV GO111MODULE=on
29+
30+
COPY lib /packager/lib/
31+
COPY bin /packager/bin/
32+
COPY install-choria.sh /bin
33+
34+
CMD /packager/bin/packager.rb

install-choria.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ case "${FLAVOUR?}" in
5050

5151
;;
5252

53+
noble_64)
54+
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-noble.deb
55+
56+
;;
57+
5358
*)
5459
echo "Uknown test flavour '${FLAVOUR}'"
5560
exit 1

0 commit comments

Comments
 (0)