Skip to content

Commit

Permalink
rm sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Dec 17, 2024
1 parent 11efa79 commit 96e4aa7
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,37 @@ substitutions:
_TEST_IMAGE_ID: "test-image:latest"
_VERSION_CODENAME: "bookworm"
steps:
- name: gcr.io/cloud-builders/docker
args: [
"build",
"-t",
"${_TEST_IMAGE_ID}",
"--file",
".cloudbuild/library_generation/library_generation.Dockerfile",
"."
]
env:
- "DOCKER_BUILDKIT=1"
id: library-generation-build
waitFor: ["-"]
#- name: gcr.io/cloud-builders/docker
# args: [
# "build",
# "-t",
# "${_TEST_IMAGE_ID}",
# "--file",
# ".cloudbuild/library_generation/library_generation.Dockerfile",
# "."
# ]
# env:
# - "DOCKER_BUILDKIT=1"
# id: library-generation-build
# waitFor: ["-"]

- name: ubuntu:25.04
entrypoint: bash
args:
- "-c"
- |
# Install docker, see https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
apt-get update
apt-get install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${_VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
maven python
# Install python dependencies
Expand All @@ -57,7 +57,7 @@ steps:
pip install --require-hashes -r hermetic_build/library_generation/requirements.txt
pip install hermetic_build/library_generation
python -m unittest hermetic_build/library_generation/tests/integration_tests.py
waitFor: ["library-generation-build"]
waitFor: ["-"]
id: integration-test

options:
Expand Down

0 comments on commit 96e4aa7

Please sign in to comment.