Commit 07b85f62 authored by dgiannopoulos's avatar dgiannopoulos
Browse files

feat: exposed configuration

parent c534badb
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -7,7 +7,7 @@ stages:


.default:
.default:
  variables:
  variables:
    DEFAULT_VERSION: "1.2.0-SNAPSHOT"
    DEFAULT_VERSION: "1.0.0-SNAPSHOT"
  before_script:
  before_script:
    - |
    - |
      if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then
      if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then
+1 −1
Original line number Original line Diff line number Diff line
@@ -20,4 +20,4 @@ version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.16.0
appVersion: 1.0.0-SNAPSHOT
+11 −0
Original line number Original line Diff line number Diff line
# create databases
CREATE DATABASE IF NOT EXISTS `{{ .Values.oscreds.mysql.openslicedb | default "osdb" }}`;
CREATE DATABASE IF NOT EXISTS `{{ .Values.oscreds.mysql.keycloak.database | default "keycloak" }}`;

# create portal user and grant rights
CREATE USER '{{ .Values.oscreds.mysql.portal.username | default "portaluser" }}'@'localhost' IDENTIFIED BY '{{ .Values.oscreds.mysql.portal.password | default "12345" }}';
GRANT ALL PRIVILEGES ON *.* TO '{{ .Values.oscreds.mysql.portal.username | default "portaluser" }}'@'%' IDENTIFIED BY '{{ .Values.oscreds.mysql.portal.password | default "12345" }}';

# create keycloak user and grant rights
CREATE USER '{{ .Values.oscreds.mysql.keycloak.username | default "keycloak" }}'@'localhost' IDENTIFIED BY '{{ .Values.oscreds.mysql.keycloak.password | default "password" }}';
GRANT ALL PRIVILEGES ON *.* TO '{{ .Values.oscreds.mysql.keycloak.username | default "keycloak" }}'@'%' IDENTIFIED BY '{{ .Values.oscreds.mysql.keycloak.password | default "password" }}';
+14 −0
Original line number Original line Diff line number Diff line
var appConfig = angular.module('portalwebapp.config',[]);

appConfig.factory('APIEndPointService', function() {
  return {      
    TITLE: "Openslice demo",
    WIKI: "{{ .Values.rooturl }}",
    BUGZILLA: "{{ .Values.rooturl }}/bugzilla/",
    STATUS: "{{ .Values.rooturl }}/",
    APIURL: "{{ .Values.rooturl }}",
    WEBURL: "{{ .Values.rooturl }}/nfvportal",
    APIOAUTHURL: "{{ .Values.rooturl }}/auth/realms/openslice",
    APITMFURL: "{{ .Values.rooturl }}/tmf-api/serviceCatalogManagement/v4"
  };
});
Loading