Skip to content

Commit

Permalink
Migrate to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
n1tr0-5urf3r authored Sep 3, 2024
1 parent 3ff4d33 commit 79dc9f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: UniCorn-P4 CI
run: cd docker && docker-compose build
run: cd docker && docker compose build

- name: Run Backend Container
run: docker-compose up -d backend
run: docker compose up -d backend
working-directory: docker

- name: Run Frontend Container
run: docker-compose up -d frontend
run: docker compose up -d frontend
working-directory: docker

- name: Run Mininet Container
run: docker-compose up -d netsim
run: docker compose up -d netsim
working-directory: docker

- name: Wait for Containers to Start
Expand All @@ -37,4 +37,4 @@ jobs:
run: curl --fail http://localhost:3000 || (echo "Frontend test failed" && exit 1)

- name: Test Mininet
run: curl --fail http://localhost:5001/switches/online || (echo "Mininet test failed" && exit 1)
run: curl --fail http://localhost:5001/switches/online || (echo "Mininet test failed" && exit 1)

0 comments on commit 79dc9f4

Please sign in to comment.