Ver código fonte

Add batch build and run

Maurits van der Schee 6 anos atrás
pai
commit
dcb2088be3
2 arquivos alterados com 20 adições e 0 exclusões
  1. 10
    0
      docker/build_all.sh
  2. 10
    0
      docker/run_all.sh

+ 10
- 0
docker/build_all.sh Ver arquivo

@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+FILES=*
3
+
4
+for f in $FILES
5
+do
6
+if [[ -d "$f" ]]
7
+then
8
+  docker build "$f" -t "php-crud-api:$f"
9
+fi
10
+done

+ 10
- 0
docker/run_all.sh Ver arquivo

@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+FILES=*
3
+
4
+for f in $FILES
5
+do
6
+if [[ -d "$f" ]]
7
+then
8
+  docker run -ti --name "php-crud-api_$f" "php-crud-api:$f"
9
+fi
10
+done

Carregando…
Cancelar
Salvar