Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
KolbyML committed Jan 9, 2024
1 parent 3465cae commit 6bbee25
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run sim for 10 seconds
run: SCENARIO="droplist --delay=15ms --bandwidth=10Mbps --queue=25" timeout 10s docker compose -f docker-compose.yml up
46 changes: 46 additions & 0 deletions .github/workflows/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: "3.5"

services:
sim:
build:
context: ../../sim
dockerfile: Dockerfile
container_name: sim
hostname: sim
stdin_open: true
tty: true
volumes:
- ./logs/sim:/logs
environment:
- SCENARIO=$SCENARIO
cap_add:
- NET_ADMIN
expose:
- "57832"
networks:
leftnet:
ipv4_address: 193.167.0.2
ipv6_address: fd00:cafe:cafe:0::2
rightnet:
ipv4_address: 193.167.100.2
ipv6_address: fd00:cafe:cafe:100::2

networks:
leftnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 193.167.0.0/24
- subnet: fd00:cafe:cafe:0::/64
rightnet:
driver: bridge
driver_opts:
com.docker.network.bridge.enable_ip_masquerade: 'false'
enable_ipv6: true
ipam:
config:
- subnet: 193.167.100.0/24
- subnet: fd00:cafe:cafe:100::/64

0 comments on commit 6bbee25

Please sign in to comment.