Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
mde
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2efc933
authored
Jun 09, 2016
by
Eli Ben Baruch
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
796deeff
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
12 deletions
Dockerfile
build.gradle
docker-compose.yml
run-docker.sh
settings.gradle
src/main/java/handlers/MdeHandler.java
Dockerfile
View file @
f2efc933
FROM
172.16.1.132:5000/ipgallery/base-microservice-java
COPY
build/libs/
LocationServic
e-*.jar /usr/
COPY
build/libs/
md
e-*.jar /usr/
COPY
cfg/config.properties /opt/mcx/config/
RUN
chmod +x /usr/run.sh
RUN
mv /usr/
LocationService-
*
.jar /usr/LocationServic
e.jar
RUN
mv /usr/
mde-
*
.jar /usr/md
e.jar
WORKDIR
/usr
#EXPOSE 32015
ENTRYPOINT
["/usr/run.sh","/usr/LocationService.jar"]
\ No newline at end of file
ENTRYPOINT
["/usr/run.sh","/usr/mde.jar"]
\ No newline at end of file
build.gradle
View file @
f2efc933
...
...
@@ -32,7 +32,7 @@ task buildDockerImage(type:Exec) {
dependsOn
jar
mustRunAfter
jar
println
'building docker image'
def
commandWirhArgs
=
[
"docker"
,
"build"
,
"-t"
,
"172.16.1.132:5000/ipgallery/
location-servic
e"
,
"."
]
def
commandWirhArgs
=
[
"docker"
,
"build"
,
"-t"
,
"172.16.1.132:5000/ipgallery/
md
e"
,
"."
]
commandLine
commandWirhArgs
}
...
...
@@ -73,7 +73,7 @@ publishing {
}
}
mavenJava
(
MavenPublication
)
{
artifactId
'
location-servic
e'
artifactId
'
md
e'
from
components
.
java
}
}
...
...
docker-compose.yml
View file @
f2efc933
location-servic
e
:
md
e
:
environment
:
IPG_ENV_PARAMS
:
"
-Dds.IpAddress=172.16.1.97:8080#
\
-Dredis.host=172.16.1.244"
USE_DEBUG
:
yes
image
:
172.16.1.132:5000/ipgallery/
location-servic
e
image
:
172.16.1.132:5000/ipgallery/
md
e
ports
:
-
"
8000:8000"
-
"
32015:32015"
\ No newline at end of file
-
"
50040:50040"
\ No newline at end of file
run-docker.sh
View file @
f2efc933
#!/bin/sh
docker run
-e
IPG_ENV_PARAMS
=
-Dds
.IpAddress
=
172.16.1.97:8080#-Dredis.host
=
172.16.1.244
-e
USE_DEBUG
=
yes
-p
8000:8000
-p
32015:32015 172.16.1.132:5000/ipgallery/location-servic
e
docker run
-e
IPG_ENV_PARAMS
=
-Dds
.IpAddress
=
172.16.1.97:8080#-Dredis.host
=
172.16.1.244
-e
USE_DEBUG
=
yes
-p
8000:8000
-p
50040:50040 172.16.1.132:5000/ipgallery/md
e
settings.gradle
View file @
f2efc933
rootProject
.
name
=
'
M
de'
rootProject
.
name
=
'
m
de'
src/main/java/handlers/MdeHandler.java
View file @
f2efc933
...
...
@@ -41,6 +41,8 @@ public class MdeHandler extends BaseHandler {
@Override
public
void
doRead
(
RequestContext
requestContext
)
{
int
i
=
0
;
i
++;
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment