Configuration Env Works
diff --git a/xos/configurations/common/xos_common_config b/xos/configurations/common/xos_common_config
index b86d618..df30b54 100644
--- a/xos/configurations/common/xos_common_config
+++ b/xos/configurations/common/xos_common_config
@@ -40,6 +40,5 @@
[gui]
disable_minidashboard=True
-#branding_name=CORD
-#branding_css=/static/cord.css
-#branding_icon=/static/onos-logo.png
+branding_name=Open Cloud
+branding_icon=/static/logo.png
diff --git a/xos/configurations/cord/Makefile b/xos/configurations/cord/Makefile
index a24befa..7714d2a 100644
--- a/xos/configurations/cord/Makefile
+++ b/xos/configurations/cord/Makefile
@@ -3,6 +3,7 @@
LAST_CONTAINER=$(shell sudo docker ps -l -q)
cord: common_cloudlab ceilometer_dashboard virtualbng_json
+ rm ../../xos/xos_configuration/*
echo "# Autogenerated -- do not edit" > Dockerfile
cat ../common/Dockerfile.common Dockerfile.cord >> Dockerfile
cp ../common/xos_common_config ../../xos/xos_configuration/
diff --git a/xos/configurations/cord/xos_cord_config b/xos/configurations/cord/xos_cord_config
index 3085da5..8dd0ae5 100644
--- a/xos/configurations/cord/xos_cord_config
+++ b/xos/configurations/cord/xos_cord_config
@@ -1,4 +1,4 @@
[gui]
branding_name=CORD
#branding_css=/static/cord.css
-branding_icon=/static/onos-logo.png
+branding_icon=/static/cord_logo_3.png
diff --git a/xos/configurations/devel/Makefile b/xos/configurations/devel/Makefile
index 39ce3ac..44a2559 100644
--- a/xos/configurations/devel/Makefile
+++ b/xos/configurations/devel/Makefile
@@ -3,6 +3,7 @@
LAST_CONTAINER=$(shell sudo docker ps -l -q)
test: common_cloudlab
+ rm ../../xos/xos_configuration/*
echo "# Autogenerated -- do not edit" > Dockerfile
cat ../common/Dockerfile.common Dockerfile.devel >> Dockerfile
cp ../common/xos_common_config ../../xos/xos_configuration/
diff --git a/xos/configurations/frontend/Makefile b/xos/configurations/frontend/Makefile
index 884c5da..ae1dbce 100644
--- a/xos/configurations/frontend/Makefile
+++ b/xos/configurations/frontend/Makefile
@@ -6,19 +6,20 @@
all: frontend
frontend:
+ rm ../../xos/xos_configuration/*
sudo apt-get -y install httpie
cat ../common/Dockerfile.common Dockerfile.frontend > Dockerfile
cp ../common/xos_common_config ../../xos/xos_configuration/
- cp ./xos_frontend_config ../../xos/xos_configuration/
cd ../../..; sudo docker build -t xos -f xos/configurations/frontend/Dockerfile .
sudo docker run -v $(XOS_FOLDER)/../../core/xoslib:/opt/xos/core/xoslib -p 9999:8000 --add-host="0.0.0.0:127.0.0.1" xos
bash ../common/wait_for_xos.sh
echo $(RUNNING_CONTAINER)
interactive:
+ rm ../../xos/xos_configuration/*
cat ../common/Dockerfile.common Dockerfile.frontend > Dockerfile
cp ../common/xos_common_config ../../xos/xos_configuration/
- cp ./xos_frontend_config ../../xos/xos_configuration/
+ #cp ../cord/xos_cord_config ../../xos/xos_configuration/
cd ../../..; sudo docker build -t xos -f xos/configurations/frontend/Dockerfile .
echo "Inside the container run: /usr/bin/make -C /opt/xos/configurations/frontend -f Makefile.inside"
sudo docker run -it -v $(shell pwd)/../..:/opt/xos -p 9999:8000 --add-host="0.0.0.0:127.0.0.1" xos
diff --git a/xos/configurations/frontend/Makefile.inside b/xos/configurations/frontend/Makefile.inside
index f3fc898..48046b2 100644
--- a/xos/configurations/frontend/Makefile.inside
+++ b/xos/configurations/frontend/Makefile.inside
@@ -3,7 +3,7 @@
setup_xos:
chmod +x /opt/xos/scripts/opencloud;
/opt/xos/scripts/opencloud genkeys;
- /opt/xos/scripts/opencloud remigrate;
+# /opt/xos/scripts/opencloud remigrate;
bash /opt/xos/tosca/install_tosca.sh;
bash /opt/xos/scripts/docker_setup_xos
python /opt/xos/tosca/run.py padmin@vicci.org /opt/xos/configurations/frontend/sample.yaml
diff --git a/xos/configurations/frontend/xos_frontend_config b/xos/configurations/frontend/xos_frontend_config
deleted file mode 100644
index 8dd0ae5..0000000
--- a/xos/configurations/frontend/xos_frontend_config
+++ /dev/null
@@ -1,4 +0,0 @@
-[gui]
-branding_name=CORD
-#branding_css=/static/cord.css
-branding_icon=/static/cord_logo_3.png
diff --git a/xos/core/static/xos.css b/xos/core/static/xos.css
index 22d2b10..40cfcc3 100644
--- a/xos/core/static/xos.css
+++ b/xos/core/static/xos.css
@@ -27,6 +27,15 @@
min-height: 100%;
}*/
+/* ************************* LOGIN PAGE ************************* */
+
+body.login img.logo{
+ width: 250px;
+ display: block;
+ margin: 20px auto;
+ padding-top: 20px;
+}
+
/* ************************* SIDENAV TOGGLE ************************* */
#wrapper {
diff --git a/xos/templates/admin/login.html b/xos/templates/admin/login.html
index 5b7ec4d..87bccd0 100644
--- a/xos/templates/admin/login.html
+++ b/xos/templates/admin/login.html
@@ -40,7 +40,7 @@
{% endif %}
<div id="wrap">
<div id="content-main">
-<h1><i class="icon-lock icon-white"></i> OpenCloud</h1>
+ <img class="logo" src="{% static XOS_BRANDING_ICON %}"/>
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
<div class="form-row">
{% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}