Skip to content

Commit

Permalink
Merge pull request #87 from choria-io/ubuntu_noble
Browse files Browse the repository at this point in the history
Support ubuntu noble
  • Loading branch information
ripienaar authored Jul 30, 2024
2 parents 5961552 + a0c3c69 commit ac63eaf
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ jobs:
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}

noble_go:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: ./.github/actions/build-packager
with:
file: Dockerfile.noble-go
go: ${{ env.GO_VERSION }}
tag: focal-go${{ env.TAG }}
hub_user: ${{ secrets.REGISTRY_RELEASE_USERNAME }}
hub_password: ${{ secrets.REGISTRY_RELEASE_PASSWORD }}

jammy_go:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile.bionic-go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
rake \
debhelper \
git \
dh-systemd
dh-systemd


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

ENV RUBYLIB /packager/lib
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
ENV GOPATH /go
ENV GO111MODULE on
ENV RUBYLIB=/packager/lib
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
ENV GOPATH=/go
ENV GO111MODULE=on

COPY lib /packager/lib/
COPY bin /packager/bin/
Expand Down
34 changes: 34 additions & 0 deletions Dockerfile.noble-go
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:noble

ARG GOVERSION="1.14.10"
RUN echo -n noble_64 > /etc/packager.txt

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
dpkg-dev \
wget \
ruby \
rake \
debhelper \
git


RUN wget -q https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz && \
rm -f go${GOVERSION}.linux-amd64.tar.gz

WORKDIR /build/source

VOLUME /go
VOLUME /build/artifacts

ENV RUBYLIB=/packager/lib
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin
ENV GOPATH=/go
ENV GO111MODULE=on

COPY lib /packager/lib/
COPY bin /packager/bin/
COPY install-choria.sh /bin

CMD /packager/bin/packager.rb
5 changes: 5 additions & 0 deletions install-choria.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ case "${FLAVOUR?}" in

;;

noble_64)
wget -O /tmp/puppet.deb http://apt.puppetlabs.com/puppet8-release-noble.deb

;;

*)
echo "Uknown test flavour '${FLAVOUR}'"
exit 1
Expand Down

0 comments on commit ac63eaf

Please sign in to comment.