Skip to content

Commit 96e4aa7

Browse files
committed
rm sudo
1 parent 11efa79 commit 96e4aa7

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@ substitutions:
1717
_TEST_IMAGE_ID: "test-image:latest"
1818
_VERSION_CODENAME: "bookworm"
1919
steps:
20-
- name: gcr.io/cloud-builders/docker
21-
args: [
22-
"build",
23-
"-t",
24-
"${_TEST_IMAGE_ID}",
25-
"--file",
26-
".cloudbuild/library_generation/library_generation.Dockerfile",
27-
"."
28-
]
29-
env:
30-
- "DOCKER_BUILDKIT=1"
31-
id: library-generation-build
32-
waitFor: ["-"]
20+
#- name: gcr.io/cloud-builders/docker
21+
# args: [
22+
# "build",
23+
# "-t",
24+
# "${_TEST_IMAGE_ID}",
25+
# "--file",
26+
# ".cloudbuild/library_generation/library_generation.Dockerfile",
27+
# "."
28+
# ]
29+
# env:
30+
# - "DOCKER_BUILDKIT=1"
31+
# id: library-generation-build
32+
# waitFor: ["-"]
3333

3434
- name: ubuntu:25.04
3535
entrypoint: bash
3636
args:
3737
- "-c"
3838
- |
3939
# Install docker, see https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
40-
sudo apt-get update
41-
sudo apt-get install ca-certificates curl
42-
sudo install -m 0755 -d /etc/apt/keyrings
43-
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
44-
sudo chmod a+r /etc/apt/keyrings/docker.asc
40+
apt-get update
41+
apt-get install ca-certificates curl
42+
install -m 0755 -d /etc/apt/keyrings
43+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
44+
chmod a+r /etc/apt/keyrings/docker.asc
4545
echo \
4646
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
4747
$(. /etc/os-release && echo "${_VERSION_CODENAME}") stable" | \
48-
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
49-
sudo apt-get update
50-
sudo apt-get install \
48+
tee /etc/apt/sources.list.d/docker.list > /dev/null
49+
apt-get update
50+
apt-get install \
5151
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
5252
maven python
5353
# Install python dependencies
@@ -57,7 +57,7 @@ steps:
5757
pip install --require-hashes -r hermetic_build/library_generation/requirements.txt
5858
pip install hermetic_build/library_generation
5959
python -m unittest hermetic_build/library_generation/tests/integration_tests.py
60-
waitFor: ["library-generation-build"]
60+
waitFor: ["-"]
6161
id: integration-test
6262

6363
options:

0 commit comments

Comments
 (0)