Permalink
Browse files

Added Dockerfile to build custom docker containers.

  • Loading branch information...
David Campos
David Campos committed Mar 30, 2017
1 parent 7077065 commit 6ca6ada3e8cd0b858b9f67b68ca8d6197cbdfb48
Showing with 46 additions and 0 deletions.
  1. +31 −0 docker/Dockerfile
  2. +4 −0 docker/run.sh
  3. +11 −0 docker/update.sh
View
@@ -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"]
View
@@ -0,0 +1,4 @@
#!/bin/bash
cd /opt/neji-server/
./neji-server.sh -port 8017
View
@@ -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

0 comments on commit 6ca6ada

Please sign in to comment.