Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma-impl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eccochu
ma-impl
Commits
ebea56ff
Commit
ebea56ff
authored
9 years ago
by
Eike Cochu
Browse files
Options
Downloads
Patches
Plain Diff
updated docker scripts, accept configuration
parent
2e455499
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/docker-build.sh
+18
-0
18 additions, 0 deletions
docker/docker-build.sh
docker/docker-run.sh
+20
-1
20 additions, 1 deletion
docker/docker-run.sh
with
38 additions
and
1 deletion
docker/docker-build.sh
+
18
−
0
View file @
ebea56ff
#!/bin/sh
#!/bin/sh
#######################################################################################
# CONFIGURATION
BUILD_WITH_BACKEND
=
1
BUILD_WITH_FRONTEND
=
1
#######################################################################################
DIR
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
if
[
$BUILD_WITH_BACKEND
-ne
1
]
;
then
find webapps
-maxdepth
1
-not
-name
".*"
-not
-path
webapps
-exec
rm
-rf
{}
\;
fi
if
[
$BUILD_WITH_FRONTEND
-ne
1
]
;
then
find webroot
-maxdepth
1
-not
-name
".*"
-not
-path
webroot
-exec
rm
-rf
{}
\;
fi
docker build
-t
eikecochu/vipra
.
docker build
-t
eikecochu/vipra
.
exit
0
exit
0
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/docker-run.sh
+
20
−
1
View file @
ebea56ff
#!/bin/sh
#!/bin/sh
#######################################################################################
# CONFIGURATION
# set host machine ports
HOST_NGINX
=
80
HOST_NGINX
=
80
HOST_TOMCAT
=
8080
HOST_TOMCAT
=
8080
HOST_ELASTICSEARCH_REST
=
9200
HOST_ELASTICSEARCH_REST
=
9200
HOST_ELASTICSEARCH_API
=
9300
HOST_ELASTICSEARCH_API
=
9300
HOST_MONGODB
=
27017
HOST_MONGODB
=
27017
# set to 1 to override built in webapps and webroot
REPLACE_WEBAPPS
=
1
REPLACE_WEBROOT
=
1
#######################################################################################
DIR
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
DIR
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
PORT_MAPPING
=
"-p
$HOST_NGINX
:80 -p
$HOST_TOMCAT
:8080 -p
$HOST_ELASTICSEARCH_REST
:9200 -p
$HOST_ELASTICSEARCH_API
:9300 -p
$HOST_MONGODB
:27017"
if
[
$REPLACE_WEBAPPS
-eq
1
]
;
then
VOLUME_WEBAPPS
=
"-v
$DIR
/webapps:/tomcat/webapps"
fi
if
[
$REPLACE_WEBROOT
-eq
1
]
;
then
VOLUME_WEBROOT
=
"-v
$DIR
/webroot:/webroot"
fi
docker run
-d
-p
$HOST_NGINX
:80
-p
$HOST_TOMCAT
:8080
-p
$HOST_ELASTICSEARCH_REST
:9200
-p
$HOST_ELASTICSEARCH_API
:9300
-p
$HOST_MONGODB
:27017
-v
$DIR
/webroot:/webroot
-v
$DIR
/webapps:/tomcat/webapps eikecochu/vipra
docker run
-d
$PORT_MAPPING
$VOLUME_WEBAPPS
$VOLUME_WEBROOT
eikecochu/vipra
\ No newline at end of file
\ No newline at end of file
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