forked from ezsystems/ezpublish-docker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ezsystems#20 from ezsystems/behat
Add support for running Behat tests in containers
- Loading branch information
Showing
18 changed files
with
720 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
dockerfiles/ezpublish/prepare/setupwizard_ezstep_welcome.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- ezpublish_legacy/kernel/setup/steps/ezstep_welcome.php.org 2014-09-05 11:06:31.718258749 +0000 | ||
+++ ezpublish_legacy/kernel/setup/steps/ezstep_welcome.php 2014-09-05 11:07:45.724225972 +0000 | ||
@@ -64,6 +64,11 @@ | ||
$this->PersistenceList['tests_run'] = $testsRun; | ||
$this->PersistenceList['optional_tests_run'] = $testsRun; | ||
|
||
+ if ( $this->hasKickstartData() ) | ||
+ { | ||
+ return $this->kickstartContinueNextStep(); | ||
+ } | ||
+ | ||
return false; // Always show welcome message | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM ezpublishdocker_sahibase | ||
|
||
RUN apt-get install -y \ | ||
firefox | ||
|
||
|
||
#wget -nv -O sahi_20130429.zip "http://downloads.sourceforge.net/project/sahi/sahi-v44/sahi_20130429.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsahi%2Ffiles%2Fsahi-v44%2F&ts=1376728867&use_mirror=garr" | ||
ADD sahi_20130429.zip /tmp/sahi.zip | ||
|
||
# Travis tests uses this one : https://github.com/ezsystems/ezpublish-community/blob/master/bin/.travis/sahi/browser_types.xml-dist | ||
# However, we'll use the default one for now.... | ||
#ADD browser_types.xml-dist /tmp/browser_types.xml-dist | ||
|
||
RUN adduser sahi | ||
|
||
RUN unzip /tmp/sahi.zip | ||
RUN chmod +x /sahi/bin/sahi.sh /sahi/bin/dashboard.sh | ||
RUN chown sahi:sahi -R /sahi | ||
#RUN cp /tmp/browser_types.xml-dist /sahi/userdata/config/browser_types.xml | ||
|
||
ADD run.sh /run.sh | ||
|
||
ADD x_session.sh /x_session.sh | ||
|
||
USER sahi | ||
CMD ["/run.sh"] | ||
|
||
EXPOSE 9999 5900 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ezpublishdocker_ubuntu | ||
|
||
RUN apt-get install -y \ | ||
xvfb \ | ||
xterm \ | ||
x11vnc \ | ||
default-jre \ | ||
mwm \ | ||
unzip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
xvfb-run -n 99 -f /home/sahi/.Xauthority --server-args="-screen 0, 1024x768x24" /x_session.sh & | ||
x11vnc -auth /home/sahi/.Xauthority -display :99 & | ||
|
||
while [ 1 ]; do echo -n .; sleep 2; done |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
|
||
mwm & | ||
cd /sahi/bin/; xterm -e /sahi/bin/sahi.sh & | ||
cd / | ||
xterm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.