Skip to content

Commit

Permalink
Fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
yavrsky committed Jan 6, 2025
1 parent 70d3dc3 commit b0aaebd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/comprehensive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,14 @@ jobs:
sudo apt-get install -y procps
sudo apt-get install -y curl
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker
uses: docker/setup-docker@v2

- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.32.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: INIT - reconfigure docker and restart its daemon
run: |
Expand Down Expand Up @@ -293,7 +299,7 @@ jobs:
cd sgxwallet/run_sgx_sim
rm -rf ../../local_sgxwallet_output_log.txt &> /dev/null
echo " --------------------------- stopping sgx wallet ------------------------------------------------------------------------------------------------------ "
docker compose down
docker-compose down
echo " --------------------------- fixing sgx wallets docker config ----------------------------------------------------------------------------------------- "
mv docker-compose.yml docker-compose.yml.old-previous || true
echo "version: '3'" > docker-compose.yml
Expand All @@ -318,7 +324,7 @@ jobs:
echo ' max-file: "4"' >> docker-compose.yml
echo ' command: -s -y -V -d' >> docker-compose.yml
echo " --------------------------- pulling sgx wallet ------------------------------------------------------------------------------------------------------- "
docker compose pull
docker-compose pull
cd ../..
cd ..
Expand All @@ -327,7 +333,7 @@ jobs:
run: |
cd comprehensive-test
cd sgxwallet/run_sgx_sim
docker compose up &> ../../local_sgxwallet_output_log.txt &
docker-compose up &> ../../local_sgxwallet_output_log.txt &
sleep 90
cd ../..
cd ..
Expand Down Expand Up @@ -404,7 +410,7 @@ jobs:
run: |
cd comprehensive-test
cd sgxwallet/run_sgx_sim
docker compose down
docker-compose down
cd ../..
cd ..
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/container-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ jobs:
cd sgxwallet/run_sgx_sim
rm -rf ../../local_sgxwallet_output_log.txt &> /dev/null
echo " --------------------------- stopping sgx wallet ------------------------------------------------------------------------------------------------------ "
docker compose down
docker-compose down
echo " --------------------------- fixing sgx wallets docker config ----------------------------------------------------------------------------------------- "
mv docker-compose.yml docker-compose.yml.old-previous || true
echo "version: '3'" > docker-compose.yml
Expand All @@ -353,7 +353,7 @@ jobs:
echo ' max-file: "4"' >> docker-compose.yml
echo ' command: -s -y -V -d' >> docker-compose.yml
echo " --------------------------- pulling sgx wallet ------------------------------------------------------------------------------------------------------- "
docker compose pull
docker-compose pull
cd ../..
cd ..
Expand All @@ -362,7 +362,7 @@ jobs:
run: |
cd comprehensive-test
cd sgxwallet/run_sgx_sim
docker compose up &> ../../local_sgxwallet_output_log.txt &
docker-compose up &> ../../local_sgxwallet_output_log.txt &
sleep 90
cd ../..
cd ..
Expand Down Expand Up @@ -457,7 +457,7 @@ jobs:
run: |
cd comprehensive-test
cd sgxwallet/run_sgx_sim
docker compose down
docker-compose down
cd ../..
cd ..
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/network-browser-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: oven-sh/setup-bun@v1
- name: Launch hardhat node
working-directory: hardhat-node
run: docker compose up -d
run: docker-compose up -d
- name: Deploy manager contracts
run: |
bash ./helper-scripts/deploy_test_manager.sh
Expand Down

0 comments on commit b0aaebd

Please sign in to comment.