Browse Source

added Dockerfile with all the autonomous installation

master
arnaucode 7 years ago
parent
commit
fb9856a0d9
4 changed files with 61 additions and 5 deletions
  1. +26
    -0
      Dockerfile
  2. +28
    -1
      README.md
  3. +1
    -1
      css/grayscale.css
  4. +6
    -3
      index.html

+ 26
- 0
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

+ 28
- 1
README.md

@ -1 +1,28 @@
# commonroutesLandingPage
# 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

+ 1
- 1
css/grayscale.css

@ -62,7 +62,7 @@ a {
a:hover, a:hover,
a:focus { a:focus {
text-decoration: none; text-decoration: none;
color: #1390ab;
color: #633ea8;
} }
.light { .light {
font-weight: 400; font-weight: 400;

+ 6
- 3
index.html

@ -57,6 +57,9 @@
<li class="hidden"> <li class="hidden">
<a href="#page-top"></a> <a href="#page-top"></a>
</li> </li>
<li>
<a class="page-scroll" href="../commonroutesWebApp">Access App</a>
</li>
<li> <li>
<a class="page-scroll" href="#download">Download</a> <a class="page-scroll" href="#download">Download</a>
</li> </li>
@ -108,7 +111,7 @@
<div class="col-lg-3 col-md-6 text-center"> <div class="col-lg-3 col-md-6 text-center">
<div class="service-box"> <div class="service-box">
<i class="fa fa-4x fa-pencil-square-o text-primary sr-icons"></i> <i class="fa fa-4x fa-pencil-square-o text-primary sr-icons"></i>
<h3>Post a travel</h3>
<h3>Post travels</h3>
<p class="text-muted"> <p class="text-muted">
Can post 3 types of travel: offer car, ask for car, send package Can post 3 types of travel: offer car, ask for car, send package
</p> </p>
@ -128,7 +131,7 @@
<i class="fa fa-4x fa-users text-primary sr-icons"></i> <i class="fa fa-4x fa-users text-primary sr-icons"></i>
<h3>Make comunity</h3> <h3>Make comunity</h3>
<p class="text-muted"> <p class="text-muted">
Enjoi the Common Routes community
Enjoy the Common Routes community
</p> </p>
</div> </div>
</div> </div>
@ -193,7 +196,7 @@
<footer> <footer>
<div class="container text-center"> <div class="container text-center">
<p> <p>
<a href="http://arnaucode.com" target="_blank">ArnauCode 2017</a>
<a href="http://arnaucode.com" target="_blank" style="font-size:60%;">ArnauCode 2017</a>
</p> </p>
</div> </div>
</footer> </footer>

Loading…
Cancel
Save