mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
install docker per docs as before_script step
This commit is contained in:
parent
7255d01c77
commit
f4164e5a81
1 changed files with 18 additions and 0 deletions
|
|
@ -36,6 +36,24 @@ test:
|
||||||
# Start E2E environment
|
# Start E2E environment
|
||||||
e2e-environment:
|
e2e-environment:
|
||||||
stage: e2e-setup
|
stage: e2e-setup
|
||||||
|
before_script:
|
||||||
|
# Install required packages
|
||||||
|
- sudo apt update
|
||||||
|
- sudo apt install -y ca-certificates curl
|
||||||
|
|
||||||
|
# Add Docker's official GPG key
|
||||||
|
- 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
|
||||||
|
|
||||||
|
# Add Docker's APT repository
|
||||||
|
- |
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||||
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
|
||||||
|
# Update APT sources and install docker
|
||||||
|
- sudo apt update && apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
script:
|
script:
|
||||||
- docker compose -f docker-compose.test.yml up -d --build
|
- docker compose -f docker-compose.test.yml up -d --build
|
||||||
- end=$((SECONDS + 30))
|
- end=$((SECONDS + 30))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue