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:focus {
text-decoration: none;
color: #1390ab;
color: #633ea8;
}
.light {
font-weight: 400;

+ 6
- 3
index.html

@ -57,6 +57,9 @@
<li class="hidden">
<a href="#page-top"></a>
</li>
<li>
<a class="page-scroll" href="../commonroutesWebApp">Access App</a>
</li>
<li>
<a class="page-scroll" href="#download">Download</a>
</li>
@ -108,7 +111,7 @@
<div class="col-lg-3 col-md-6 text-center">
<div class="service-box">
<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">
Can post 3 types of travel: offer car, ask for car, send package
</p>
@ -128,7 +131,7 @@
<i class="fa fa-4x fa-users text-primary sr-icons"></i>
<h3>Make comunity</h3>
<p class="text-muted">
Enjoi the Common Routes community
Enjoy the Common Routes community
</p>
</div>
</div>
@ -193,7 +196,7 @@
<footer>
<div class="container text-center">
<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>
</div>
</footer>

Loading…
Cancel
Save