diff --git a/README.md b/README.md index 66b7fd64cb2a4f92295a32da0f536704fb71ccd1..1c9793652675296fddfd8e9c6633bc4c9fa9bb09 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,51 @@ Thor catch Jörmungandr by preparing a strong line and a large hook which baits * Running Jörmungandr Node * Enable CORS for this domain in node config +## Build guid + +### Prerequisits + +* elm +* docker +* docker-compose + +### Build steps + + pull the code + +```sh +git clone https://gitlab.com/arguser/oxhead.git +``` + +* navigate to the oxhead/src folder + +```sh +cd oxhead/src +``` + +* run the build + +```sh +elm make OxHead.elm +``` + +* deploy using docker-compose + +```sh +cd .. +docker-compose up -d +``` + +The Oxhead deployment is now available on the IP of the mashine you are running on just type the IP in any browser(chrome,firefox etc.) + +Note: You can now make any changes to the code and rebuild, the changes will automaticaly update when you refresh the browser + +* To stop the application: + +```sh +docker-compose down +``` + ## Development Suggestions are welcome at the [Issue Board](https://gitlab.com/arguser/oxhead/-/boards) diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000000000000000000000000000000000000..37396a0058978dbcb73016f670c6cdfbc0a7977a --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,8 @@ +version: "3" +services: + ox-head: + image: nginx + ports: + - "80:80" + volumes: + - ./src:/usr/share/nginx/html diff --git a/index.html b/index.html deleted file mode 100644 index 1d4a07cc1adc71222a8295642dd8324dd0b4125b..0000000000000000000000000000000000000000 --- a/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -
- - - - - - - - - - - - \ No newline at end of file