Skip to content

Commit

Permalink
use jammy as default release
Browse files Browse the repository at this point in the history
  • Loading branch information
piax93 committed Jun 26, 2024
1 parent 024da6d commit ca7ae12
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG OS_RELEASE=bionic
ARG OS_RELEASE=jammy
FROM pidtree-docker-base-bcc-${OS_RELEASE}

# Build python environment
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ARG BASE_IMAGE=ubuntu:bionic
ARG BASE_IMAGE=ubuntu:jammy
FROM ${BASE_IMAGE}
2 changes: 1 addition & 1 deletion Dockerfile.bcc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG OS_RELEASE=bionic
ARG OS_RELEASE=jammy
FROM pidtree-docker-base-${OS_RELEASE} as builder
ARG BCC_TOOLS_SOURCE=source
ARG BCC_VERSION=0.19.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FIFO = $(CURDIR)/pidtree-bcc.fifo
EXTRA_DOCKER_ARGS ?=
DOCKER_ARGS = $(EXTRA_DOCKER_ARGS) -v /etc/passwd:/etc/passwd:ro --privileged --cap-add sys_admin --pid host
DOCKER_BASE_IMAGE_TMPL ?= ubuntu:OS_RELEASE_PH
HOST_OS_RELEASE = $(or $(shell cat /etc/lsb-release 2>/dev/null | grep -Po '(?<=CODENAME=)(.+)'), bionic)
HOST_OS_RELEASE = $(or $(shell cat /etc/lsb-release 2>/dev/null | grep -Po '(?<=CODENAME=)(.+)'), jammy)
SUPPORTED_UBUNTU_RELEASES = bionic focal jammy noble
UPSTREAM_BCC_RELEASES = jammy noble
VERSION_FILE = $(PWD)/pidtree_bcc/__init__.py
Expand Down
4 changes: 2 additions & 2 deletions itest/itest_autoreload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ touch $TOPLEVEL/$OUTPUT_NAME
if [ -f /etc/lsb-release ]; then
source /etc/lsb-release
else
echo "WARNING: Could not source /etc/lsb-release, tentatively creating bionic docker image"
DISTRIB_CODENAME=bionic
echo "WARNING: Could not source /etc/lsb-release, tentatively creating jammy docker image"
DISTRIB_CODENAME=jammy
fi
docker build -t pidtree-itest-base --build-arg OS_RELEASE=$DISTRIB_CODENAME .
docker build -t pidtree-itest itest
Expand Down
4 changes: 2 additions & 2 deletions itest/itest_generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ function main {
if [ -f /etc/lsb-release ]; then
source /etc/lsb-release
else
echo "WARNING: Could not source /etc/lsb-release, tentatively creating bionic docker image"
DISTRIB_CODENAME=bionic
echo "WARNING: Could not source /etc/lsb-release, tentatively creating jammy docker image"
DISTRIB_CODENAME=jammy
fi
docker build -t pidtree-itest-base --build-arg OS_RELEASE=$DISTRIB_CODENAME .
# Run the setup.sh install steps in the image so we don't hit timeouts
Expand Down
4 changes: 2 additions & 2 deletions itest/itest_sourceipmap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ mkfifo $TOPLEVEL/$FIFONAME
if [ -f /etc/lsb-release ]; then
source /etc/lsb-release
else
echo "WARNING: Could not source /etc/lsb-release, tentatively creating bionic docker image"
DISTRIB_CODENAME=bionic
echo "WARNING: Could not source /etc/lsb-release, tentatively creating jammy docker image"
DISTRIB_CODENAME=jammy
fi
docker build -t pidtree-itest-base --build-arg OS_RELEASE=$DISTRIB_CODENAME .
docker build -t pidtree-itest itest
Expand Down

0 comments on commit ca7ae12

Please sign in to comment.