-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
460 changed files
with
12,576 additions
and
44,592 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
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 |
---|---|---|
@@ -1,17 +1,35 @@ | ||
FROM java:8 | ||
|
||
# Set our working driectory for the rest of this files | ||
WORKDIR /usr/src/alex | ||
|
||
# Install Firefox and Chrome, with all the needed deepencies, | ||
# including the Chrome Driver and the Marionette / Gecko Driver for Selenium. | ||
# This also includes the Xvfb to run them both in a headless mode. | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
chromium \ | ||
iceweasel \ | ||
xvfb \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/*e | ||
|
||
ADD ALEX-*.war /usr/src/alex/ALEX.war | ||
ADD run.sh /usr/src/alex/run.sh | ||
RUN chmod a+x /usr/src/alex/run.sh | ||
ADD chromedriver chromedriver | ||
ADD geckodriver geckodriver | ||
|
||
WORKDIR /usr/src/alex | ||
|
||
# Finally add ALEX and our startup script. | ||
ADD ALEX-*.war ALEX.war | ||
|
||
ADD run.sh run.sh | ||
RUN chmod a+x run.sh | ||
|
||
|
||
# Last refinements to the envoirment and the image. | ||
ENV DISPLAY :99 | ||
ENV WEBDRIVER.CHROME.DRIVER chromedriver | ||
ENV WEBDRIVER.GECKO.DRIVER geckodriver | ||
|
||
EXPOSE 8000 | ||
|
||
|
||
# here we go | ||
ENTRYPOINT "./run.sh" |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
Xvfb :99 -screen 0 1024x768x16 & | ||
java -jar ALEX.war | ||
java -Dwebdriver.chrome.driver=chromedriver -Dwebdriver.gecko.driver=geckodriver -jar ALEX.war |
Oops, something went wrong.