Permalink
Browse files

added nginx with include after body style with materialize CSS

  • Loading branch information...
earthquakesan committed May 18, 2016
1 parent a8bbe0d commit b3522d1662a0a7ab47f6cd8daad38433f11a2aeb
Showing with 264 additions and 0 deletions.
  1. +71 −0 docker-compose-nginx.yml
  2. +11 −0 docker-compose.yml
  3. +6 −0 nginx/Dockerfile
  4. +59 −0 nginx/bde-hadoop.css
  5. +77 −0 nginx/custom.html
  6. +24 −0 nginx/default.conf
  7. +16 −0 nginx/materialize.min.css
View
@@ -0,0 +1,71 @@
nginx:
build: ./nginx
hostname: nginx
net: hadoop
container_name: nginx
ports:
- "8080:80"
namenode:
image: bde2020/hadoop-namenode:1.0.0
hostname: namenode
container_name: namenode
domainname: hadoop
net: hadoop
volumes:
- ./data/namenode:/hadoop/dfs/name
environment:
- CLUSTER_NAME=test
env_file:
- ./hadoop.env
resourcemanager:
image: bde2020/hadoop-resourcemanager:1.0.0
hostname: resourcemanager
container_name: resourcemanager
domainname: hadoop
net: hadoop
env_file:
- ./hadoop.env
historyserver:
image: bde2020/hadoop-historyserver:1.0.0
hostname: historyserver
container_name: historyserver
domainname: hadoop
net: hadoop
volumes:
- ./data/historyserver:/hadoop/yarn/timeline
env_file:
- ./hadoop.env
nodemanager1:
image: bde2020/hadoop-nodemanager:1.0.0
hostname: nodemanager1
container_name: nodemanager1
domainname: hadoop
net: hadoop
env_file:
- ./hadoop.env
datanode1:
image: bde2020/hadoop-datanode:1.0.0
hostname: datanode1
container_name: datanode1
domainname: hadoop
net: hadoop
volumes:
- ./data/datanode1:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode2:
image: bde2020/hadoop-datanode:1.0.0
hostname: datanode2
container_name: datanode2
domainname: hadoop
net: hadoop
volumes:
- ./data/datanode2:/hadoop/dfs/data
env_file:
- ./hadoop.env
View
@@ -61,3 +61,14 @@ datanode2:
- ./data/datanode2:/hadoop/dfs/data
env_file:
- ./hadoop.env
datanode3:
image: bde2020/hadoop-datanode:1.0.0
hostname: datanode3
container_name: datanode3
domainname: hadoop
net: hadoop
volumes:
- ./data/datanode3:/hadoop/dfs/data
env_file:
- ./hadoop.env
View
@@ -0,0 +1,6 @@
FROM nginx
MAINTAINER "Ivan Ermilov <mailto:ivan.s.ermilov@gmail.com>"
COPY default.conf /etc/nginx/conf.d/default.conf
COPY custom.html /data/bde-css/custom.html
View
@@ -0,0 +1,59 @@
body {
background: #F1F1F1;
}
body > .container {
margin: 5rem auto;
background: white;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
header.bs-docs-nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 3rem;
border: none;
background: #A94F74;
box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
header.bs-docs-nav .navbar-brand {
background: inherit;
}
#ui-tabs .active a {
background: #B96A8B;
}
#ui-tabs > li > a {
color: white;
}
.navbar-inverse .navbar-nav > .dropdown > a .caret {
border-top-color: white;
border-bottom-color: white;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #B96A8B;
}
.dropdown-menu > li > a {
color: #A94F74;
}
.modal-dialog .panel-success {
border-color: lightgrey;
}
.modal-dialog .panel-heading {
background-color: #A94F74 !important;
}
.modal-dialog .panel-heading select {
margin-top: 1rem;
}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,24 @@
server {
listen 80;
server_name localhost;
root /data;
add_after_body /bde-css/custom.html;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
proxy_redirect off;
proxy_pass http://namenode:50070;
#rewrite ^/sparql/(.*)$ /$1 break;
}
location /bde-css/ {
}
}
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit b3522d1

Please sign in to comment.