Put GUI in container. 33/38333/1
authorasteroide <thomas.duval@orange.com>
Fri, 28 Jul 2017 12:03:50 +0000 (14:03 +0200)
committerasteroide <thomas.duval@orange.com>
Fri, 28 Jul 2017 12:03:50 +0000 (14:03 +0200)
Change-Id: Ib0b126e463461b20ced52e5b3dd7cc37045e1716

moonv4/moon_gui/Dockerfile [new file with mode: 0644]
moonv4/moon_gui/static/app/moon.constants.js

diff --git a/moonv4/moon_gui/Dockerfile b/moonv4/moon_gui/Dockerfile
new file mode 100644 (file)
index 0000000..ef80966
--- /dev/null
@@ -0,0 +1,11 @@
+FROM ubuntu:latest
+
+RUN apt update && apt install nodejs nodejs-legacy npm -y
+RUN npm install --global gulp-cli
+
+ADD . /root
+WORKDIR /root/
+RUN npm install
+RUN gulp delivery
+
+CMD ["gulp", "webServerDelivery"]
\ No newline at end of file
index ffe60f9..872dfd5 100644 (file)
                                }
                        })
                        .constant('REST_URI', {
-                PDP : 'http://192.168.102.118:38001/pdp/',
-                               MODELS : 'http://192.168.102.118:38001/models/',
-                               METARULES:  'http://192.168.102.118:38001/meta_rules/',
-                RULES:  'http://192.168.102.118:38001/rules/',
-                               POLICIES: 'http://192.168.102.118:38001/policies/',
+                PDP : 'http://interface:8081/pdp/',
+                               MODELS : 'http://interface:8081/models/',
+                               METARULES:  'http://interface:8081/meta_rules/',
+                RULES:  'http://interface:8081/rules/',
+                               POLICIES: 'http://interface:8081/policies/',
                                METADATA: {
-                       subject : 'http://192.168.102.118:38001/subject_categories/',
-                                       object : 'http://192.168.102.118:38001/object_categories/',
-                    action : 'http://192.168.102.118:38001/action_categories/'
+                       subject : 'http://interface:8081/subject_categories/',
+                                       object : 'http://interface:8081/object_categories/',
+                    action : 'http://interface:8081/action_categories/'
                 },
                                PERIMETERS :{
-                    subject : 'http://192.168.102.118:38001/subjects/',
-                    object : 'http://192.168.102.118:38001/objects/',
-                    action : 'http://192.168.102.118:38001/actions/'
+                    subject : 'http://interface:8081/subjects/',
+                    object : 'http://interface:8081/objects/',
+                    action : 'http://interface:8081/actions/'
                                },
-                KEYSTONE : 'http://192.168.102.118:5000/v3/'
+                KEYSTONE : 'http://keystone:5000/v3/'
                        });
 })();