Skip to content

Commit

Permalink
Moving config generation in docker files
Browse files Browse the repository at this point in the history
This allow random users to launch the images.
The behavior is needed for OpenShift.
Cf. issue 3 from ddavison/selenium-openshift-templates
  • Loading branch information
Remi-p committed Jun 7, 2017
1 parent 60eeed0 commit 5ac51de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion NodeBase/entry_point.sh
@@ -1,7 +1,6 @@
#!/bin/bash

source /opt/bin/functions.sh
/opt/bin/generate_config > /opt/selenium/config.json

export GEOMETRY="$SCREEN_WIDTH""x""$SCREEN_HEIGHT""x""$SCREEN_DEPTH"

Expand Down
3 changes: 3 additions & 0 deletions NodeChrome/Dockerfile.txt
Expand Up @@ -39,3 +39,6 @@ COPY generate_config /opt/bin/generate_config
# Chrome Launch Script Modification
#=================================
COPY chrome_launcher.sh /opt/google/chrome/google-chrome

# Generating config inside the image rather than with entry_point.sh
RUN /opt/bin/generate_config > /opt/selenium/config.json
1 change: 0 additions & 1 deletion NodeDebug/entry_point.sh
Expand Up @@ -3,7 +3,6 @@
# IMPORTANT: Change this file only in directory NodeDebug!

source /opt/bin/functions.sh
/opt/bin/generate_config > /opt/selenium/config.json

export GEOMETRY="$SCREEN_WIDTH""x""$SCREEN_HEIGHT""x""$SCREEN_DEPTH"

Expand Down
3 changes: 3 additions & 0 deletions NodeFirefox/Dockerfile.txt
Expand Up @@ -35,3 +35,6 @@ COPY generate_config /opt/bin/generate_config
# To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details.
# When logging into the container
RUN sudo echo ""

# Generating config inside the image rather than with entry_point.sh
RUN /opt/bin/generate_config > /opt/selenium/config.json

0 comments on commit 5ac51de

Please sign in to comment.