Browse Source

Add batch build and run

Maurits van der Schee 6 years ago
parent
commit
dcb2088be3
2 changed files with 20 additions and 0 deletions
  1. 10
    0
      docker/build_all.sh
  2. 10
    0
      docker/run_all.sh

+ 10
- 0
docker/build_all.sh View File

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

@@ -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…
Cancel
Save