Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sahi-phantomjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nimrod
sahi-phantomjs
Commits
99ac04af
Commit
99ac04af
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Use Java:8 base image.
- Cleanup after running apt and installing Sahi for smaller layers.
parent
44e5735a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-12
6 additions, 12 deletions
Dockerfile
with
6 additions
and
12 deletions
Dockerfile
+
6
−
12
View file @
99ac04af
FROM
ubuntu:14.04
FROM
java:8
MAINTAINER
Nimrod Adar <nimrod@shore.co.il>
RUN
echo
'deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main'
\
>
/etc/apt/sources.list.d/webupd8team-java-trusty.list
&&
\
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
EEA14886
&&
\
echo
oracle-java8-installer shared/accepted-oracle-license-v1-1
select
true
\
|
sudo
/usr/bin/debconf-set-selections
RUN
apt-get update
&&
apt-get
install
-yf
\
oracle-java8-installer phantomjs libicu52 wget
RUN
cd
/tmp
&&
wget
\
http://garr.dl.sourceforge.net/project/sahi/sahi-v5/install_sahi_v50_20141105.jar
RUN
apt-get update
&&
apt-get
install
-yf
phantomjs libicu52 wget
&&
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
COPY
silent_install.xml /tmp/silent_install.xml
RUN
cd
/tmp
&&
java
-jar
install_sahi_v50_20141105.jar silent_install.xml
RUN
cd
/tmp
&&
wget
\
http://garr.dl.sourceforge.net/project/sahi/sahi-v5/install_sahi_v50_20141105.jar
\
&&
java
-jar
install_sahi_v50_20141105.jar silent_install.xml
&&
rm
-rf
/tmp/
*
COPY
browser_types.xml /opt/sahi/userdata/config/browser_types.xml
COPY
phantomjs-sahi.js /opt/sahi/phantomjs-sahi.js
RUN
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
EXPOSE
9999
ENV
_JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
ENV
SAHI_HOME /opt/sahi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment