Skip to content

Commit 5135b9b

Browse files
author
rubytester
committed
cleanup template generation
- rename Dockerfile.txt makes explicit this is template folder prevents accidental docker build on this folder - remove template text from polluting final Dockerfile - add missing MAINTAINER field - generate_all convenience to update Dockerfiles without running docker build
1 parent 2412f6b commit 5135b9b

File tree

15 files changed

+26
-14
lines changed

15 files changed

+26
-14
lines changed

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ PLATFORM := $(shell uname -s)
44

55
all: hub chrome firefox chromedebug firefoxdebug standalone_chrome standalone_firefox standalone_debug_chrome standalone_debug_firefox
66

7+
generate_all: \
8+
generate_hub \
9+
generate_nodebase \
10+
generate_chrome \
11+
generate_firefox \
12+
generate_chromedebug \
13+
generate_firefoxdebug \
14+
generate_standalone_firefox \
15+
generate_standalone_chrome \
16+
generate_standalone_debug_firefox \
17+
generate_standalone_debug_chrome
18+
719
build: all
820

921
ci: build test
@@ -118,6 +130,11 @@ test:
118130
ci \
119131
firefox \
120132
firefoxdebug \
133+
generate_all \
134+
generate_hub \
135+
generate_nodebase \
136+
generate_chrome \
137+
generate_firefox \
121138
generate_chromedebug \
122139
generate_firefoxdebug \
123140
generate_standalone_chrome \

NodeChromeDebug/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM selenium/node-chrome:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
32
MAINTAINER Selenium <[email protected]>
43

54
USER root

NodeDebug/Dockerfile renamed to NodeDebug/Dockerfile.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
21
MAINTAINER Selenium <[email protected]>
32

43
USER root

NodeDebug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Debug image template
22

3-
This folder is not meant to be build directly from the `docker build .` It only stands as a template for creating debug images derived from Selenium Node Browser images. Note usage in the Makefile at the root of this repo.
3+
This folder serves as a template for creating debug images derived from Selenium Node Browser images. Note usage in the Makefile at the root of this repo.

NodeDebug/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm -rf $FOLDER
88
mkdir -p $FOLDER
99

1010
echo FROM selenium/$BASE:$VERSION > $FOLDER/Dockerfile
11-
cat ./Dockerfile >> $FOLDER/Dockerfile
11+
cat ./Dockerfile.txt >> $FOLDER/Dockerfile
1212

1313
cat ../NodeBase/entry_point.sh \
1414
| sed 's/^xvfb-run/sudo -E -i -u seluser \\\

NodeFirefoxDebug/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM selenium/node-firefox:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
32
MAINTAINER Selenium <[email protected]>
43

54
USER root

Standalone/Dockerfile renamed to Standalone/Dockerfile.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
1+
MAINTAINER Selenium <selenium[email protected]>
22

33
USER root
44

Standalone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Debug image template
22

3-
This folder is not meant to be build directly from the `docker build .` It only stands as a template for creating standalone server images derived from Selenium Node Browser images. Note usage in the Makefile at the root of this repo.
3+
This folder servers as a template for creating standalone server images derived from Selenium Node Browser images. Note usage in the Makefile at the root of this repo.

Standalone/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm -rf $FOLDER
88
mkdir -p $FOLDER
99

1010
echo FROM selenium/$BASE:$VERSION > $FOLDER/Dockerfile
11-
cat ./Dockerfile >> $FOLDER/Dockerfile
11+
cat ./Dockerfile.txt >> $FOLDER/Dockerfile
1212

1313
cp ./entry_point.sh $FOLDER
1414

StandaloneChrome/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM selenium/node-chrome:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
2+
MAINTAINER Selenium <selenium[email protected]>
33

44
USER root
55

StandaloneDebug/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Debug image template
22

3-
This folder is not meant to be build directly from the `docker build .` It only stands as a template for creating standalone server debug images. Note usage in the Makefile at the root of this repo.
3+
This folder serves as a template for creating standalone server debug images. Note usage in the Makefile at the root of this repo.

StandaloneDebug/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rm -rf $FOLDER
88
mkdir -p $FOLDER
99

1010
echo FROM selenium/$BASE:$VERSION > $FOLDER/Dockerfile
11-
cat ../NodeDebug/Dockerfile >> $FOLDER/Dockerfile
11+
cat ../NodeDebug/Dockerfile.txt >> $FOLDER/Dockerfile
1212

1313
cp ./entry_point.sh $FOLDER
1414

StandaloneDebugChrome/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM selenium/standalone-chrome:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
32
MAINTAINER Selenium <[email protected]>
43

54
USER root

StandaloneDebugFirefox/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM selenium/standalone-firefox:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
32
MAINTAINER Selenium <[email protected]>
43

54
USER root

StandaloneFirefox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM selenium/node-firefox:2.46.0
2-
#FROM selenium/node-*:2.46.0 Proper FROM attr will be applied throuh generate.sh
2+
MAINTAINER Selenium <selenium[email protected]>
33

44
USER root
55

0 commit comments

Comments
 (0)