From ebdedcca46da1dcad8932ee223a32d6994871c3a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Nov 2019 12:06:44 -0500 Subject: [PATCH 1/3] docker-compose and instructions added --- README.md | 36 ++++++++++++++++++++++++++++++++++++ docker-compose.yaml | 8 ++++++++ index.html | 18 ------------------ 3 files changed, 44 insertions(+), 18 deletions(-) create mode 100644 docker-compose.yaml delete mode 100644 index.html diff --git a/README.md b/README.md index 66b7fd6..68db1dc 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,42 @@ 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 + +git clone https://gitlab.com/arguser/oxhead.git + +* navigate to the oxhead/src folder + +cd oxhead/src + +* run the build + +elm make src/OxHead.elm + +* deploy using docker-compose + +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: + +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 0000000..37396a0 --- /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 1d4a07c..0000000 --- a/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - -
- - - - - - \ No newline at end of file -- GitLab From 50e67b23efa31f97da9e691490e9d779d2fab293 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 26 Nov 2019 12:14:18 -0500 Subject: [PATCH 2/3] fix README.md highlights --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 68db1dc..791ed09 100644 --- a/README.md +++ b/README.md @@ -21,31 +21,40 @@ Thor catch Jörmungandr by preparing a strong line and a large hook which baits ### Build steps -* pull the code + 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 src/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.) +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 -- GitLab From 77cb35e2e0283a99b6f88f2a7ed5870d9f352d9c Mon Sep 17 00:00:00 2001 From: leo422 Date: Tue, 26 Nov 2019 17:16:25 +0000 Subject: [PATCH 3/3] minor fix to README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 791ed09..1c97936 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ cd oxhead/src * run the build ```sh -elm make src/OxHead.elm +elm make OxHead.elm ``` * deploy using docker-compose -- GitLab