Skip to content

Commit

Permalink
Merge pull request #6071 from mysteriumnetwork/add-ubuntu-noble
Browse files Browse the repository at this point in the history
Add support for Ubuntu 24.04 LTS Noble Numbat
  • Loading branch information
soffokl authored Aug 14, 2024
2 parents adb6758 + d93013b commit cb2af09
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/release/debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func releaseDebianPPA(opts *releaseDebianOpts) error {
return err
}

for _, codename := range []string{"bionic", "focal", "jammy"} {
for _, codename := range []string{"bionic", "focal", "jammy", "noble"} {
err := shell.NewCmdf("bin/release_ppa %s %s %s %s", opts.repository, opts.version, opts.buildNumber, codename).Run()
if err != nil {
return err
Expand Down
34 changes: 34 additions & 0 deletions ci/test/testinstall/Dockerfile.ubuntu-noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:24.04

ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND noninteractive

RUN apt update \
&& apt install -y systemd \
&& apt-get clean

RUN cd /lib/systemd/system/sysinit.target.wants/ \
&& ls | grep -v systemd-tmpfiles-setup | xargs rm -f $1

RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/basic.target.wants/* \
/lib/systemd/system/anaconda.target.wants/* \
/lib/systemd/system/plymouth* \
/lib/systemd/system/systemd-update-utmp*

# https://github.com/moby/moby/issues/1297
RUN echo resolvconf resolvconf/linkify-resolvconf boolean false | debconf-set-selections

RUN apt update \
&& apt install -y \
sudo \
curl

VOLUME ["/sys/fs/cgroup"]

CMD ["/lib/systemd/systemd"]
1 change: 1 addition & 0 deletions ci/test/testinstall/install_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestInstall(t *testing.T) {
"ubuntu-focal",
"ubuntu-impish",
"ubuntu-jammy",
"ubuntu-noble",
}
for _, img := range images {
t.Run(img, func(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions e2e/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func NewRunner(composeFiles []string, testEnv, services string) (runner *Runner,
args = append(args, "-p", testEnv)

runner = &Runner{
compose: sh.RunCmd("docker-compose", args...),
composeOut: sh.OutCmd("docker-compose", args...),
compose: sh.RunCmd("docker", append([]string{"compose"}, args...)...),
composeOut: sh.OutCmd("docker", append([]string{"compose"}, args...)...),
testEnv: testEnv,
services: services,
}
Expand Down
5 changes: 3 additions & 2 deletions localnet/localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ import (
"time"

"github.com/magefile/mage/sh"
"github.com/mysteriumnetwork/node/logconfig"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"

"github.com/mysteriumnetwork/node/logconfig"
)

const composeFile = "./docker-compose.localnet.yml"
Expand Down Expand Up @@ -61,7 +62,7 @@ func newRunner(composeFiles ...string) *runner {
args = append(args, "-p", envName)

return &runner{
compose: sh.RunCmd("docker-compose", args...),
compose: sh.RunCmd("docker", append([]string{"compose"}, args...)...),
envName: envName,
}
}
Expand Down

0 comments on commit cb2af09

Please sign in to comment.