Skip to content

Commit b6a3a6e

Browse files
committed
ubuntu24.04 ci pipeline fix
Signed-off-by: shiva kumar <[email protected]>
1 parent c83f607 commit b6a3a6e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/holodeck_ubuntu24.04.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,23 @@ spec:
2121
image:
2222
architecture: amd64
2323
imageId: ami-0da424eb883458071
24+
preInstall:
25+
- name: "Add Docker repository and key"
26+
run: |
27+
# Create the directory for apt keyrings with appropriate permissions
28+
sudo install -m 0755 -d /etc/apt/keyrings
29+
30+
# Download the Docker GPG key and store it
31+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
32+
33+
# Set the GPG key file to be readable by all users
34+
sudo chmod a+r /etc/apt/keyrings/docker.gpg
35+
36+
# Add the Docker repository with the appropriate architecture and signed keyring
37+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
38+
39+
# Update the package index
40+
sudo apt-get update
2441
# containerRuntime:
2542
# install: true
2643
# name: containerd
@@ -29,3 +46,4 @@ spec:
2946
installer: kubeadm
3047
version: v1.30.0
3148
crictlVersion: v1.30.0
49+
containerRuntimeInstall: true

0 commit comments

Comments
 (0)