Introduce 'make run' to run the respective container

changes/84/7384/1
Harald Welte 6 years ago
parent 460247905d
commit 4bda77175e
  1. 2
      ggsn-test/Makefile
  2. 3
      ggsn-test/start.sh
  3. 2
      m3ua-test/Makefile
  4. 2
      m3ua-test/start.sh
  5. 4
      make/Makefile
  6. 2
      osmo-ggsn-master/Makefile
  7. 3
      osmo-ggsn-master/start.sh
  8. 2
      osmo-stp-master/Makefile
  9. 2
      osmo-stp-master/start.sh
  10. 2
      sua-test/Makefile
  11. 2
      sua-test/start.sh

@ -1 +1,3 @@
RUN_ARGS?=run --rm --network sigtran --ip 172.18.0.202 -v ggsn-test-vol:/data
include ../make/Makefile

@ -1,3 +0,0 @@
#!/bin/sh
docker volume rm ggsn-test-vol
docker run --rm --network sigtran --ip 172.18.0.202 -v ggsn-test-vol:/data -it ggsn-test

@ -1 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.2
include ../make/Makefile

@ -1,2 +0,0 @@
#!/bin/sh
docker run --rm --network sigtran --ip 172.18.0.2 -it m3ua-test

@ -106,3 +106,7 @@ check-status:
check-release: .release
@. $(RELEASE_SUPPORT) ; tagExists $(TAG) || (echo "ERROR: version not yet tagged in git. make [minor,major,patch]-release." >&2 && exit 1) ;
@. $(RELEASE_SUPPORT) ; ! differsFromRelease $(TAG) || (echo "ERROR: current directory differs from tagged $(TAG). make [minor,major,patch]-release." ; exit 1)
run:
docker run $(RUN_ARGS) -it $(NAME)

@ -1 +1,3 @@
RUN_ARGS?= --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --rm --network sigtran --ip 172.18.0.201 -v ggsn-vol:/data
include ../make/Makefile

@ -1,3 +0,0 @@
#!/bin/sh
docker volume rm ggsn-vol
docker run --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun --rm --network sigtran --ip 172.18.0.201 -v ggsn-vol:/data -it osmo-ggsn-master

@ -1 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.200
include ../make/Makefile

@ -1,2 +0,0 @@
#!/bin/sh
docker run --rm --network sigtran --ip 172.18.0.200 -it osmo-stp-master

@ -1 +1,3 @@
RUN_ARGS?=--rm --network sigtran --ip 172.18.0.3
include ../make/Makefile

@ -1,2 +0,0 @@
#!/bin/sh
docker run --rm --network sigtran --ip 172.18.0.3 -it sua-test
Loading…
Cancel
Save