Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Text in bold denotes commands to be run at the prompt.

 

  1. Open a Command Prompt, or console and create a working directory (mkdir unimus), then change into that directory (cd unimus).
  2. Create a sub-directory called content (mkdir content), and download a copy of Unimus.jar into the content directory.
  3. In the working folder, create a file called Dockerfile, with the following contents:

 

FROM java:8
ADD content /usr/src/app
WORKDIR /usr/src/app
ENTRYPOINT ["java", "-jar", "./Unimus.jar"]
EXPOSE 8085

 

 

 

Tips

  1. Run "docker build -t unimus ." to build an image called unimus from the current directory
  2. You can now run the image with the command docker run -P 8085:8085 unimus
  3. You should be able to access the Unimus UI by navigating to http://localhost:8085 in your web browser

Tips

You can push the image to a local instance of Docker Registry if you need to run it on another machine.

We recommend using a separate database, rather than the file-based HSQL option.
This will allow you to update Unimus easily without losing any data.

Credit

All credit for this guide goes to X-Cubed, here is the original forum topic:
https://forum.unimus.net/viewtopic.php?f=4&t=39