Skip to content
Snippets Groups Projects
Commit c590fcbb authored by trantzas's avatar trantzas
Browse files

removing obsolete files

parent 582bde82
No related branches found
No related tags found
No related merge requests found
Pipeline #7228 passed
Q3 2023 1.2.0-SNAPSHOT
Upgraded to java17 and SpingBoot3
Upgraded from ActiveMQ to Artemis
Upgrade Keycloak to 16
backup your previous database if necessary:
sudo docker exec amysql /usr/bin/mysqldump -u root --password=letmein ostmfdb > backup_ostmfdb.sql
restore your previous database:
cat backup_ostmfdb.sql | docker exec -i amysql /usr/bin/mysql -u root --password=letmein ostmfdb
Q3 2021
- There have been some minor changes in the databases. THerefore some older artifacts might be deleted. Especially RFS relationships
- The CONFIG attribute of RFSs must be renamed to OSM_CONFIG. OSM_CONFIG includes now the json configuration to pass to OSM when creating NSDs
- Edit your docker-compose.yaml and add oasapi section. Edit the oasapi section according to your needs (db password, keycloak etc)
- Edit your /openslice/org.etsi.osl.tmf.web/dist/io-openslice-portal-web/assets/config/config.prod.json with the new API endpoints. Please consult the config.prod.default.json
- Edit nginx.conf to add the new oas-api
backend API Development
nginx.conf:
- comment location /osapi
- comment location /tmf-api
- comment location /oas-api
fix auth location in nginx.conf as follows:
location /auth {
proxy_pass http://keycloak:8080/auth;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
docker-compose --profile dev down;docker-compose --profile dev up -d
Keycloak for development
Add 127.0.0.1 keycloak in your hosts file and replace http://localhost/auth/ with http://keycloak:8080/auth/ in your Keycloak config for TypeScript/Angular.
Hosts File Location:
In Linux/Unix, its location is at: /etc/hosts In windows, its location is at c:\Windows\System32\Drivers\etc\hosts.
Explanation:
The Nginx uses the http://keycloak:8080 URL which is the network inside the docker system.
The front-end (TS/Angular) uses the http://keycloak:8080
You will not get the invalid token error, as you are getting the token from http://keycloak:8080 and as well verifying with the same URL.
nginx serves already the frontend from the project org.etsi.osl.tmf.web
If you would like to use the frontend to test your backend config.prod.json should look similar to the following example
{
"TITLE": "Openslice demo",
"PORTALVERSION":"1.1.0-SNAPSHOT",
"WIKI": "http://wiki.localhost",
"BUGZILLA": "{BASEURL}/bugzilla/",
"STATUS": "http://status.localhost/",
"WEBURL": "{BASEURL}",
"PORTAL_REPO_APIURL": "{BASEURL}/osapi",
"ASSURANCE_SERVICE_MGMT_APIURL": "{BASEURL}/oas-api",
"APITMFURL": "http://localhost:13082/tmf-api",
"OAUTH_CONFIG" : {
"issuer": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"loginUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"tokenEndpoint": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token",
"redirectUri": "{BASEURL}/redirect",
"logoutUrl": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/logout",
"postLogoutRedirectUri": "{BASEURL}/services/services_marketplace",
"responseType": "code",
"oidc": false,
"clientId": "osapiWebClientId",
"dummyClientSecret": "secret",
"requireHttps": false,
"useHttpBasicAuth": true,
"clearHashAfterLogin": false,
"showDebugInformation": true
}
}
for the NFV frontend, config.js should be like the following:
var appConfig = angular.module('portalwebapp.config',[]);
appConfig.factory('APIEndPointService', function() {
return {
TITLE: "Openslice",
WIKI: "ROOTURL",
BUGZILLA: "ROOTURL/bugzilla/",
STATUS: "ROOTURL/status/",
APIURL: "http://localhost:13000",
WEBURL: "ROOTURL/nfvportal",
APIOAUTHURL: "http://keycloak:8080/auth/realms/openslice",
APITMFURL: "http://localhost:13082/tmf-api/serviceCatalogManagement/v4"
};
});
---
Run openslice on host
Build first
docker-compose --profile prod down;docker-compose --profile prod up -d --build
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment