Skip to content

Commit

Permalink
use apt
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed Dec 19, 2024
1 parent 63d597a commit 8deab90
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
args:
- "-c"
- |
apt-get update && apt-get install -y git
apt update && apt install -y git
cd /workspace
git clone https://github.com/googleapis/googleapis
cd googleapis
Expand All @@ -46,7 +46,7 @@ steps:
args:
- "-c"
- |
apt-get update && apt-get install -y git
apt update && apt install -y git
cd /workspace
git clone https://github.com/googleapis/google-cloud-java
cd google-cloud-java
Expand All @@ -69,17 +69,17 @@ steps:
- "-c"
- |
# Install docker
apt-get update
apt-get install -y ca-certificates curl gnupg lsb-release
apt update
apt install -y ca-certificates curl gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get -y install \
apt update
apt -y install \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker run \
--rm \
Expand All @@ -103,7 +103,7 @@ steps:
args:
- "-c"
- |
apt-get update && apt-get install -y python3 python3.12-venv
apt update && apt install -y python3 python3.12-venv
python3 -m venv .venv
source .venv/bin/activate
pip install --require-hashes -r .cloudbuild/library_generation/scripts/requirements.txt
Expand Down

0 comments on commit 8deab90

Please sign in to comment.