Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mtas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Küstermann, Yvonne
mtas
Commits
35bd13b6
Commit
35bd13b6
authored
6 years ago
by
Matthijs Brouwer
Browse files
Options
Downloads
Patches
Plain Diff
Update dockerfile to version 7.6.0.0
parent
3f8c875e
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
docker/Dockerfile
+16
-16
16 additions, 16 deletions
docker/Dockerfile
with
16 additions
and
16 deletions
docker/Dockerfile
+
16
−
16
View file @
35bd13b6
# Automatically generated Dockerfile
# Automatically generated Dockerfile
# - Build 201
8-11-06 15:12
# - Build 201
9-01-12 11:24
# - Lucene/Solr version 7.
5
.0
# - Lucene/Solr version 7.
6
.0
# - Mtas release 7.
5
.0.0
# - Mtas release 7.
6
.0.0
#
#
FROM
ubuntu:16.04
FROM
ubuntu:16.04
...
@@ -15,7 +15,7 @@ WORKDIR "/root"
...
@@ -15,7 +15,7 @@ WORKDIR "/root"
RUN
mkdir
lib
RUN
mkdir
lib
ADD
https://github.com/textexploration/mtas/releases/download/v7.
5
.0.0/mtas-7.
5
.0.0.jar /root/lib/
ADD
https://github.com/textexploration/mtas/releases/download/v7.
6
.0.0/mtas-7.
6
.0.0.jar /root/lib/
RUN
apt-get update
&&
apt-get
install
-y
locales lsof software-properties-common python-software-properties apache2 curl subversion
&&
\
RUN
apt-get update
&&
apt-get
install
-y
locales lsof software-properties-common python-software-properties apache2 curl subversion
&&
\
locale-gen en_US.UTF-8 en_US
&&
update-locale
LANG
=
en_US.UTF-8
LANGUAGE
=
en_US:en
locale-gen en_US.UTF-8 en_US
&&
update-locale
LANG
=
en_US.UTF-8
LANGUAGE
=
en_US:en
...
@@ -40,17 +40,17 @@ RUN add-apt-repository -y ppa:webupd8team/java && \
...
@@ -40,17 +40,17 @@ RUN add-apt-repository -y ppa:webupd8team/java && \
apt-get
install
-y
oracle-java8-installer
&&
\
apt-get
install
-y
oracle-java8-installer
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
RUN
solrurl
=
$(
curl
-s
'http://www.apache.org/dyn/closer.lua/lucene/solr/7.
5
.0/solr-7.
5
.0.tgz'
|
grep
-o
'<strong>[^<]*</strong>'
|
sed
's/<[^>]*>//g'
|
head
-1
)
&&
\
RUN
solrurl
=
$(
curl
-s
'http://www.apache.org/dyn/closer.lua/lucene/solr/7.
6
.0/solr-7.
6
.0.tgz'
|
grep
-o
'<strong>[^<]*</strong>'
|
sed
's/<[^>]*>//g'
|
head
-1
)
&&
\
if
echo
"
$solrurl
"
|
grep
-q
'^.*[^ ].*$'
;
then
\
if
echo
"
$solrurl
"
|
grep
-q
'^.*[^ ].*$'
;
then
\
curl
-f
-o
/root/solr-7.
5
.0.tgz
-O
$solrurl
||
true
;
\
curl
-f
-o
/root/solr-7.
6
.0.tgz
-O
$solrurl
||
true
;
\
fi
&&
\
fi
&&
\
if
[
!
-f
/root/solr-7.
5
.0.tgz
]
;
then
\
if
[
!
-f
/root/solr-7.
6
.0.tgz
]
;
then
\
echo
"Solr 7.
5
.0 not found in mirror, falling back to apache archive"
;
\
echo
"Solr 7.
6
.0 not found in mirror, falling back to apache archive"
;
\
solrurl="http://archive.apache.org/dist/lucene/solr/7.
5
.0/solr-7.
5
.0.tgz"; \
solrurl="http://archive.apache.org/dist/lucene/solr/7.
6
.0/solr-7.
6
.0.tgz"; \
curl -f -o /root/solr-7.
5
.0.tgz -O $solrurl; \
curl -f -o /root/solr-7.
6
.0.tgz -O $solrurl; \
fi && \
fi && \
tar xzf solr-7.
5
.0.tgz solr-7.
5
.0/bin/install_solr_service.sh --strip-components=2 && \
tar xzf solr-7.
6
.0.tgz solr-7.
6
.0/bin/install_solr_service.sh --strip-components=2 && \
bash ./install_solr_service.sh solr-7.
5
.0.tgz && rm install_solr_service.sh && rm -rf solr-7.
5
.0.tgz
bash ./install_solr_service.sh solr-7.
6
.0.tgz && rm install_solr_service.sh && rm -rf solr-7.
6
.0.tgz
RUN
service apache2 stop
&&
\
RUN
service apache2 stop
&&
\
echo
"ServerName localhost"
|
tee
/etc/apache2/conf-available/fqdn.conf
&&
\
echo
"ServerName localhost"
|
tee
/etc/apache2/conf-available/fqdn.conf
&&
\
...
@@ -74,9 +74,9 @@ RUN service apache2 stop && \
...
@@ -74,9 +74,9 @@ RUN service apache2 stop && \
chmod
-R
755 /var/www/html
&&
\
chmod
-R
755 /var/www/html
&&
\
printf
"echo
\n
"
>>
/start.sh
&&
\
printf
"echo
\n
"
>>
/start.sh
&&
\
printf
"echo
\"
================ Mtas -- Multi Tier Annotation Search =================
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
================ Mtas -- Multi Tier Annotation Search =================
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Timestamp 201
8-11-06 15:12
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Timestamp 201
9-01-12 11:24
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Lucene/Solr version 7.
5
.0
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Lucene/Solr version 7.
6
.0
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Mtas release 7.
5
.0.0
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
Mtas release 7.
6
.0.0
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
See https://textexploration.github.io/mtas/ for more information
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
See https://textexploration.github.io/mtas/ for more information
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
=======================================================================
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\"
=======================================================================
\"\n
"
>>
/start.sh
&&
\
printf
"echo
\n
"
>>
/start.sh
&&
\
printf
"echo
\n
"
>>
/start.sh
&&
\
...
@@ -85,7 +85,7 @@ RUN service apache2 stop && \
...
@@ -85,7 +85,7 @@ RUN service apache2 stop && \
mkdir
demo1
&&
mkdir
demo1/lib
&&
mkdir
demo1/conf
&&
\
mkdir
demo1
&&
mkdir
demo1/lib
&&
mkdir
demo1/conf
&&
\
echo
"name=demo1"
>
demo1/core.properties
&&
\
echo
"name=demo1"
>
demo1/core.properties
&&
\
cp
lib/commons-math3-3.6.1.jar demo1/lib/
&&
\
cp
lib/commons-math3-3.6.1.jar demo1/lib/
&&
\
cp
lib/mtas-7.
5
.0.0.jar demo1/lib/
&&
\
cp
lib/mtas-7.
6
.0.0.jar demo1/lib/
&&
\
cp
data/solrconfig.xml demo1/conf/
&&
\
cp
data/solrconfig.xml demo1/conf/
&&
\
cp
data/schemaBasic.xml demo1/conf/schema.xml
&&
\
cp
data/schemaBasic.xml demo1/conf/schema.xml
&&
\
cp
-r
data/mtas demo1/conf/
&&
cp
data/mtas.xml demo1/conf/
&&
\
cp
-r
data/mtas demo1/conf/
&&
cp
data/mtas.xml demo1/conf/
&&
\
...
...
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