From fb9856a0d99324bbb350ae8ab182b776c341cd3f Mon Sep 17 00:00:00 2001 From: arnaucode Date: Sun, 22 Oct 2017 20:25:17 +0200 Subject: [PATCH] added Dockerfile with all the autonomous installation --- Dockerfile | 26 ++++++++++++++++++++++++++ README.md | 29 ++++++++++++++++++++++++++++- css/grayscale.css | 2 +- index.html | 9 ++++++--- 4 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc02bfe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM node:4 + +ENV HTTP_SERVER_VERSION 0.9.0 +ENV PUBLIC_FOLDER /commonroutesLandingPage + +RUN mkdir -p $PUBLIC_FOLDER +RUN npm install -g http-server@0.9.0 +RUN npm install -g bower + +RUN git clone https://github.com/arnaucode/commonroutesLandingPage.git + +RUN cd commonroutesLandingPage && \ + git clone https://github.com/arnaucode/commonroutesWebApp.git +RUN cd commonroutesLandingPage/commonroutesWebApp && \ + npm install && \ + bower install --allow-root + +RUN cd commonroutesLandingPage && \ + mv commonroutesWebApp app + +CMD http-server $PUBLIC_FOLDER + +EXPOSE 8085 + +#docker build -t landingpage . +#docker run -ti -d -p 80:8080 landingpage diff --git a/README.md b/README.md index 390c7e5..2618d4f 100644 --- a/README.md +++ b/README.md @@ -1 +1,28 @@ -# commonroutesLandingPage \ No newline at end of file +# commonroutesLandingPage + +# Instructions +1 - download the repository (just need the Dockerfile) + +2 - build the docker image +``` +docker build -t webCommonRoutes . +``` +3 - launch a container with the image +``` +docker run -ti -d -p 80:8080 webCommonRoutes +``` + +The landingpage && webapp will be able in the ip/domain. + + + + +- server code: https://github.com/arnaucode/commonroutesServer +- frontend app code: https://github.com/arnaucode/commonroutesApp +- frontend webapp code: https://github.com/arnaucode/commonroutesWebApp +- images server: https://github.com/arnaucode/goImgServer +- admin web: https://github.com/arnaucode/commonroutesAdminWeb +- landing page: https://github.com/arnaucode/commonroutesLandingPage + +send files over ssh +scp dataset.tar.gz root@SERVERIP:/root/galdric diff --git a/css/grayscale.css b/css/grayscale.css index de962ce..1389e9d 100755 --- a/css/grayscale.css +++ b/css/grayscale.css @@ -62,7 +62,7 @@ a { a:hover, a:focus { text-decoration: none; - color: #1390ab; + color: #633ea8; } .light { font-weight: 400; diff --git a/index.html b/index.html index 3049d2d..136211d 100755 --- a/index.html +++ b/index.html @@ -57,6 +57,9 @@ +
  • + Access App +
  • Download
  • @@ -108,7 +111,7 @@
    -

    Post a travel

    +

    Post travels

    Can post 3 types of travel: offer car, ask for car, send package

    @@ -128,7 +131,7 @@

    Make comunity

    - Enjoi the Common Routes community + Enjoy the Common Routes community

    @@ -193,7 +196,7 @@