mirror of
https://github.com/arnaucube/commonroutesLandingPage.git
synced 2026-02-06 19:06:42 +01:00
added Dockerfile with all the autonomous installation
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -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
|
||||
27
README.md
27
README.md
@@ -1 +1,28 @@
|
||||
# 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
|
||||
|
||||
@@ -62,7 +62,7 @@ a {
|
||||
a:hover,
|
||||
a:focus {
|
||||
text-decoration: none;
|
||||
color: #1390ab;
|
||||
color: #633ea8;
|
||||
}
|
||||
.light {
|
||||
font-weight: 400;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user