forked from cgourdin/MartServer
-
Notifications
You must be signed in to change notification settings - Fork 4
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
xia0ben
committed
Jun 6, 2017
1 parent
1ab5e0d
commit 5c684ad
Showing
7 changed files
with
46 additions
and
77 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,23 @@ | ||
# Use an official openjdk base image | ||
FROM ubuntu:latest | ||
|
||
# Set the working directory to /app | ||
WORKDIR /app | ||
|
||
# Copy the application and its configuration files | ||
COPY . /app | ||
|
||
# Get all required packages and install the project | ||
RUN apt-get update \ | ||
&& apt-get install -y git default-jre default-jdk maven \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& cd /app \ | ||
&& mvn initialize \ | ||
&& mvn clean install -Pwithoccinterface | ||
|
||
# Make ports 8080 (http) and 8180 (https) available to the world outside this container | ||
EXPOSE 8080 | ||
EXPOSE 8180 | ||
|
||
# Start the MartServer | ||
CMD cd org.occiware.mart.war && mvn jetty:run-war |
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,2 @@ | ||
server.port=8080 | ||
server.https.port=8180 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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