Procházet zdrojové kódy

Add batch build and run

Maurits van der Schee před 6 roky
rodič
revize
dcb2088be3
2 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. 10
    0
      docker/build_all.sh
  2. 10
    0
      docker/run_all.sh

+ 10
- 0
docker/build_all.sh Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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

Loading…
Zrušit
Uložit