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
Show 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
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/
COPY
cfg/config.properties /opt/mcx/config/
RUN
chmod +x /usr/run.sh
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
WORKDIR
/usr
#EXPOSE 32015
#EXPOSE 32015
ENTRYPOINT
["/usr/run.sh","/usr/LocationService.jar"]
ENTRYPOINT
["/usr/run.sh","/usr/mde.jar"]
\ No newline at end of file
\ No newline at end of file
build.gradle
View file @
f2efc933
...
@@ -32,7 +32,7 @@ task buildDockerImage(type:Exec) {
...
@@ -32,7 +32,7 @@ task buildDockerImage(type:Exec) {
dependsOn
jar
dependsOn
jar
mustRunAfter
jar
mustRunAfter
jar
println
'building docker image'
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
commandLine
commandWirhArgs
}
}
...
@@ -73,7 +73,7 @@ publishing {
...
@@ -73,7 +73,7 @@ publishing {
}
}
}
}
mavenJava
(
MavenPublication
)
{
mavenJava
(
MavenPublication
)
{
artifactId
'
location-servic
e'
artifactId
'
md
e'
from
components
.
java
from
components
.
java
}
}
}
}
...
...
docker-compose.yml
View file @
f2efc933
location-servic
e
:
md
e
:
environment
:
environment
:
IPG_ENV_PARAMS
:
"
-Dds.IpAddress=172.16.1.97:8080#
\
IPG_ENV_PARAMS
:
"
-Dds.IpAddress=172.16.1.97:8080#
\
-Dredis.host=172.16.1.244"
-Dredis.host=172.16.1.244"
USE_DEBUG
:
yes
USE_DEBUG
:
yes
image
:
172.16.1.132:5000/ipgallery/
location-servic
e
image
:
172.16.1.132:5000/ipgallery/
md
e
ports
:
ports
:
-
"
8000:8000"
-
"
8000:8000"
-
"
32015:32015"
-
"
50040:50040"
\ No newline at end of file
\ No newline at end of file
run-docker.sh
View file @
f2efc933
#!/bin/sh
#!/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 {
...
@@ -41,6 +41,8 @@ public class MdeHandler extends BaseHandler {
@Override
@Override
public
void
doRead
(
RequestContext
requestContext
)
{
public
void
doRead
(
RequestContext
requestContext
)
{
int
i
=
0
;
i
++;
}
}
@Override
@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