Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
473 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
############################################################ | ||
# Dockerfile to build Neji Webservices | ||
# Based on airdock/oracle-jdk:1.7 | ||
############################################################ | ||
|
||
# Set the base image to Ubuntu | ||
FROM lwieske/java-8:jdk-8u77 | ||
MAINTAINER David Campos | ||
|
||
# Update and install unzip | ||
RUN yum install -y unzip | ||
|
||
# Install | ||
ADD neji-server.zip /opt/neji-server.zip | ||
WORKDIR /opt | ||
RUN unzip neji-server.zip | ||
RUN ls /opt | ||
RUN rm -rf neji-server.zip | ||
RUN chmod u+x neji-server/neji-server.sh | ||
|
||
# Setup symbolic links for persistent data | ||
RUN ln -s /opt/neji-resources /opt/neji-server/resources | ||
|
||
# Expose the default port | ||
EXPOSE 8017 | ||
|
||
# Add run.sh to Docker | ||
ADD ./run.sh /opt/run.sh | ||
|
||
# Set default container command | ||
ENTRYPOINT ["/opt/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
cd /opt/neji-server/ | ||
./neji-server.sh -port 8017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
docker stop neji-webservices | ||
|
||
docker rm neji-webservices | ||
|
||
docker rmi -f neji-webservices | ||
|
||
docker build --force-rm=true --no-cache=true -t neji-webservices . | ||
|
||
docker run -d -p 8017:8017 --name neji-webservices -v /opt/neji-resources:/opt/neji-resources neji-webservices /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo off | ||
|
||
set cp=target/neji-2.1.0-SNAPSHOT-jar-with-dependencies.jar | ||
set memory=6144m | ||
set encoding=UTF-8 | ||
set class=pt.ua.tm.neji.train.cli.TrainMain | ||
|
||
:run | ||
|
||
java -Xmx%memory% -ea -Dfile.encoding=%encoding% -classpath %cp% %class% %* | ||
|
||
:eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo off | ||
|
||
set cp=target/neji-2.1.0-SNAPSHOT-server.jar | ||
set memory=6144m | ||
set encoding=UTF-8 | ||
set class=pt.ua.tm.neji.web.cli.WebMain | ||
|
||
:run | ||
|
||
java -Xmx%memory% -ea -Dfile.encoding=%encoding% -classpath %cp% %class% %* | ||
|
||
:eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.