-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# pull in base + a minimal set of useful packages | ||
FROM ubuntu:24.04 as ubuntu-24.04-build | ||
|
||
ARG GO_VERSION=x.yz | ||
ARG GOLICENSES_VERSION | ||
ARG CREATE_USER="test" | ||
ARG USER_UID="" | ||
ENV PATH /go/bin:/usr/local/go/bin:$PATH | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# pull in stuff for building | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
tzdata build-essential fakeroot devscripts \ | ||
bash git make sed debhelper ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD http://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz / | ||
|
||
RUN tar xf /go${GO_VERSION}.linux-amd64.tar.gz -C "/usr/local" && \ | ||
rm /go${GO_VERSION}.linux-amd64.tar.gz | ||
|
||
RUN GOBIN=/go/bin go install github.com/google/go-licenses@${GOLICENSES_VERSION} | ||
|
||
RUN if [ -n "$CREATE_USER" -a "$CREATE_USER" != "root" ]; then \ | ||
if getent passwd $USER_UID; then \ | ||
userdel `id -un $USER_UID`; \ | ||
fi; \ | ||
useradd -m -s /bin/bash $CREATE_USER -u $USER_UID; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
packages/ubuntu-24.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
policy: | ||
Active: topology-aware | ||
ReservedResources: | ||
CPU: 750m | ||
logger: | ||
Debug: cri-resmgr,resource-manager,cache,policy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ubuntu-24.04 |
10 changes: 10 additions & 0 deletions
10
test/e2e/packages.test-suite/ubuntu-24.04/pkgtest/test01-systemd/code.var.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Clear cri-resmgr output from previous runs. | ||
vm-command "journalctl --vacuum-time=1s" | ||
|
||
# Create a pod. | ||
create besteffort | ||
|
||
# Verify that new pod was created by systemd-managed cri-resource-manager. | ||
vm-command "journalctl -xeu cri-resource-manager | grep 'StartContainer: starting container pod0:pod0c0'" || { | ||
command-error "failed to verify that systemd-managed cri-resource-manager launched the pod" | ||
} |
3 changes: 3 additions & 0 deletions
3
test/e2e/packages.test-suite/ubuntu-24.04/pkgtest/topology.var.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[ | ||
{"mem": "2G", "cores": 2, "nodes": 2, "packages": 2} | ||
] |
1 change: 1 addition & 0 deletions
1
test/e2e/packages.test-suite/ubuntu-24.04/reinstall_cri_resmgr.var
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters