-
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.
Merge pull request #1118 from marquiz/release-0.9
Support Debian 11 and 12
- Loading branch information
Showing
18 changed files
with
62 additions
and
10 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
2 changes: 1 addition & 1 deletion
2
dockerfiles/cross-build/Dockerfile.debian-10 → dockerfiles/cross-build/Dockerfile.debian-11
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,25 @@ | ||
# pull in base + a minimal set of useful packages | ||
FROM debian:bookworm as debian-11-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 | ||
|
||
# pull in stuff for cgo | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
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 [ -n "$CREATE_USER" -a "$CREATE_USER" != "root" ] && \ | ||
useradd -m -s /bin/bash $CREATE_USER -u $USER_UID |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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/debian-11 |
File renamed without changes.
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 @@ | ||
debian-11 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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/debian-12 |
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 @@ | ||
debian-12 |
10 changes: 10 additions & 0 deletions
10
test/e2e/packages.test-suite/debian-12/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/debian-12/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/debian-12/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