Skip to content

Commit c7f6076

Browse files
committed
feat: Add support for Ubuntu 24.04
Signed-off-by: Sangam Kumar <sangamcse.dev@gmail.com>
1 parent 44e7591 commit c7f6076

File tree

446 files changed

+477
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

446 files changed

+477
-472
lines changed

.github/workflows/blackbox.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Blackbox
22
on:
33
push:
44
branches:
5-
- "2204"
5+
- "2404"
66
paths-ignore:
77
- ".github/workflows/ecr/**"
88
- ".github/workflows/ecr.yml"
99
- "Makefile.workflow"
1010
workflow_dispatch:
1111
jobs:
1212
main:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4

.github/workflows/ecr.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Amazon ECR private registry
22
on:
33
push:
44
branches:
5-
- "2204"
5+
- "2404"
66
paths:
77
- ".github/workflows/ecr.yml"
88
- ".github/workflows/ecr/**"
99
- "Makefile.workflow"
1010
workflow_dispatch:
1111
jobs:
1212
main:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
@@ -235,6 +235,11 @@ jobs:
235235
--file=Makefile.workflow \
236236
github:ecr:repository:initialize \
237237
hr/ubuntu
238+
make \
239+
--file=Makefile.workflow \
240+
github:ecr:repository:charge \
241+
public.ecr.aws/docker/library/ubuntu:24.04@sha256:6015f66923d7afbc53558d7ccffd325d43b4e249f41a6e93eef074c9505d2233 \
242+
hr/ubuntu:24.04
238243
make \
239244
--file=Makefile.workflow \
240245
github:ecr:repository:charge \

Makefile.blackbox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ BLACKBOX_USER?=$(shell id -u):$(shell id -g)
3030
BLACKBOX_USER_NAME:=ubuntu
3131
BLACKBOX_USER_HOME:=/home/$(BLACKBOX_USER_NAME)
3232
BLACKBOX_USER_QUESTION_DIR=$(BLACKBOX_USER_HOME)/$(shell basename $(call blackbox/pwd))
33-
BLACKBOX_VERSION:=2204
33+
BLACKBOX_VERSION:=2404
3434

3535
BLACKBOX_AWS_DEFAULT_REGION:="us-east-1"
3636
BLACKBOX_AWS_ACCESS_KEY_ID:=$(shell base64 -d <(base64 -d <<<"UVV0SlFWSTJUemRIU2s1WVdVSk1RVXBGTlRNSwo="))
@@ -51,7 +51,7 @@ all: uninstall install setup solve check
5151

5252
install:
5353
docker login --username AWS --password-stdin 134148934511.dkr.ecr.us-east-1.amazonaws.com < <(docker run -it --env="AWS_DEFAULT_REGION=$(BLACKBOX_AWS_DEFAULT_REGION)" --env="AWS_ACCESS_KEY_ID=$(BLACKBOX_AWS_ACCESS_KEY_ID)" --env="AWS_SECRET_ACCESS_KEY=$(BLACKBOX_AWS_SECRET_ACCESS_KEY)" --rm amazon/aws-cli:2.11.25 ecr get-login-password)
54-
cat <(echo FROM 134148934511.dkr.ecr.us-east-1.amazonaws.com/hr/blackbox_2204:abstract) <(echo RUN groupadd docker) | docker buildx build --build-arg="BLACKBOX_USER=$(BLACKBOX_USER)" --build-arg="BLACKBOX_USER_NAME=$(BLACKBOX_USER_NAME)" --build-arg="BLACKBOX_USER_HOME=$(BLACKBOX_USER_HOME)" --build-arg="BLACKBOX_VERSION=$(BLACKBOX_VERSION)" --network="host" --progress="plain" --tag="blackbox:$(BLACKBOX_HOST)" -
54+
cat <(echo FROM 134148934511.dkr.ecr.us-east-1.amazonaws.com/hr/blackbox_2404:abstract) <(echo RUN groupadd docker) | docker buildx build --build-arg="BLACKBOX_USER=$(BLACKBOX_USER)" --build-arg="BLACKBOX_USER_NAME=$(BLACKBOX_USER_NAME)" --build-arg="BLACKBOX_USER_HOME=$(BLACKBOX_USER_HOME)" --build-arg="BLACKBOX_VERSION=$(BLACKBOX_VERSION)" --network="host" --progress="plain" --tag="blackbox:$(BLACKBOX_HOST)" -
5555
docker run -di --group-add docker --hostname="blackbox" --name="$(BLACKBOX_HOST)" --privileged --cgroupns=host $(if $(filter debug,$(MAKECMDGOALS)),--volume="$(BLACKBOX_DIR):/blackbox:ro") --volume="$(call blackbox/pwd)/setup.sh:$(BLACKBOX_USER_HOME)/setup.sh:ro" --volume="$(call blackbox/pwd)/check.sh:$(BLACKBOX_USER_HOME)/check.sh:ro" --volume="$(call blackbox/pwd)/solve.sh:$(BLACKBOX_USER_HOME)/solve.sh:ro" blackbox:$(BLACKBOX_HOST) >/dev/null
5656

5757
setup:

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Vagrant.configure("2") do |config|
2-
config.vm.box = "ubuntu/jammy64"
2+
config.vm.box = "ubuntu/noble64"
33
config.vm.hostname = "taskserver"
44
config.vm.provider "virtualbox" do |vb|
55
vb.name = ENV["BLACKBOX_HOST"]

blackbox

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
# @file blackbox
3-
# @brief https://github.com/ProblemSetters/devops-blackbox/blob/2204/blackbox
3+
# @brief https://github.com/ProblemSetters/devops-blackbox/blob/2404/blackbox
44
# @description Blackbox evaluation framework
55

66
# @description Main executable
@@ -48,7 +48,7 @@ blackbox() {
4848
# shellcheck disable=SC2155
4949
export BLACKBOX_USER_QUESTION_DIR=$(awk -v master="${BLACKBOX_USER_HOME}/${3}" -v user="$BLACKBOX_USER_QUESTION_DIR" 'END { print ($0 == "systemd") ? master : user }' <(ps -p 1 -o comm=))
5050
# shellcheck disable=SC2155
51-
export BLACKBOX_VERSION=$(awk -v master="2204" -v user="$BLACKBOX_VERSION" 'END { print ($0 == "systemd") ? master : user }' <(ps -p 1 -o comm=))
51+
export BLACKBOX_VERSION=$(awk -v master="2404" -v user="$BLACKBOX_VERSION" 'END { print ($0 == "systemd") ? master : user }' <(ps -p 1 -o comm=))
5252

5353
export BLACKBOX_FLAG__DEBUG_MODE=${BLACKBOX_FLAG__DEBUG_MODE:-no}
5454
# shellcheck disable=SC2155
@@ -270,7 +270,7 @@ blackbox() {
270270

271271
if [ ! -e "$BLACKBOX_DIR" ]; then
272272
wget -S --output-document="/tmp/blackbox.zip" --no-verbose "https://codeload.github.com/ProblemSetters/devops-blackbox/zip/refs/heads/${BLACKBOX_VERSION}" && {
273-
unzip /tmp/blackbox.zip -x "devops-blackbox-2204/.github/*" "devops-blackbox-2204/docs/*" "devops-blackbox-2204/.gitignore" "devops-blackbox-2204/Makefile.*" "devops-blackbox-2204/README.md" "devops-blackbox-2204/Vagrantfile" -d /tmp && {
273+
unzip /tmp/blackbox.zip -x "devops-blackbox-2404/.github/*" "devops-blackbox-2404/docs/*" "devops-blackbox-2404/.gitignore" "devops-blackbox-2404/Makefile.*" "devops-blackbox-2404/README.md" "devops-blackbox-2404/Vagrantfile" -d /tmp && {
274274
mv "/tmp/devops-blackbox-${BLACKBOX_VERSION}" "$BLACKBOX_DIR"
275275
rm -rf /tmp/*blackbox*
276276
}

docs/README.md

Lines changed: 1 addition & 1 deletion

docs/framework/exception.framework.md

Lines changed: 1 addition & 1 deletion

docs/framework/flag.framework.md

Lines changed: 1 addition & 1 deletion

docs/framework/inventory.framework.md

Lines changed: 1 addition & 1 deletion

docs/framework/inventory/ansible.inventory.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)