Skip to content
munk edited this page Nov 26, 2016 · 7 revisions

Required software

You'll need docker version 1.12 or above and a complete installation of [OpenHDS Rest] (https://github.com/benjamin-heasly/openhds-rest).

Build the container

For convenience, a script to build the container is provided. It cleans the project directory to ensure the container is built correctly, so you may have to run npm install after to run a local development instance.

./deploy.sh

This script will prompt you for the url to your OpenHDS Rest instance. It should be complete with the protocol and port like http://bhd.rcg.usm.maine.edu:8080

Run the application

This command will run the application on port 8081.

docker run -p 8081:3000 -it ohdsui

When you start it, the output may say OpenHDS UI listening on port 3000!. This is the port used inside the docker container. The above command maps that to 8081 on the host machine. The output can be changed by editing server.js.

Clone this wiki locally