From 93ec5fd376e2cb9612d8a1c5529fde4635e9b946 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 6 Sep 2024 23:41:47 +0300 Subject: [PATCH] Update Debian commands to Alpine --- .github/workflows/options-tests-with-docker-build.yml | 8 ++++---- .github/workflows/rest-api-tests-with-docker-image.yml | 8 ++++---- .github/workflows/test-dkr-image.yml | 2 +- .../services/bindMountLocalFiles/steps_in_docker.sh | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/options-tests-with-docker-build.yml b/.github/workflows/options-tests-with-docker-build.yml index b93afca6..c74a1bca 100644 --- a/.github/workflows/options-tests-with-docker-build.yml +++ b/.github/workflows/options-tests-with-docker-build.yml @@ -33,11 +33,11 @@ jobs: echo whoami: $(whoami) mkdir ./results - sudo apt-get update -y - sudo apt install git -y + sudo apk update -y + sudo apk add git -y - sudo apt-get install python3 -y - sudo apt-get install python3-pip -y + sudo apk add python3 -y + sudo apk add python3-pip -y sudo pip install junit2html diff --git a/.github/workflows/rest-api-tests-with-docker-image.yml b/.github/workflows/rest-api-tests-with-docker-image.yml index 03c4094e..1d344c3a 100644 --- a/.github/workflows/rest-api-tests-with-docker-image.yml +++ b/.github/workflows/rest-api-tests-with-docker-image.yml @@ -25,11 +25,11 @@ jobs: echo pwd: $PWD echo dir: $(ls ./) - apt-get update -y - apt-get install python3 -y - apt-get install python3-pip -y + apk update -y + apk add python3 -y + apk add python3-pip -y echo install python3-venv -y - apt-get install python3-venv -y + apk add python3-venv -y echo python3 -m venv .venv python3 -m venv .venv diff --git a/.github/workflows/test-dkr-image.yml b/.github/workflows/test-dkr-image.yml index 565c0e6b..6258fc6c 100644 --- a/.github/workflows/test-dkr-image.yml +++ b/.github/workflows/test-dkr-image.yml @@ -15,7 +15,7 @@ jobs: - 8080:8080 steps: - name: Install wget - run: apt-get update; apt-get install wget -y + run: apk update; apk add wget -y - name: Test Profiles endpoint run: wget -O- http://verarest:8080/api/profiles - name: Test 1B profile endpoint diff --git a/tests/Options/services/bindMountLocalFiles/steps_in_docker.sh b/tests/Options/services/bindMountLocalFiles/steps_in_docker.sh index f87a4f5c..6db052a4 100755 --- a/tests/Options/services/bindMountLocalFiles/steps_in_docker.sh +++ b/tests/Options/services/bindMountLocalFiles/steps_in_docker.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash ls -la /home/ -apt-get update -apt-get install curl -y +apk update +apk add --no-cache curl cd /home/Res_tmp/ echo -e "\n"