Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Marketplace from Drive #1

Open
fdrsuisse opened this issue Oct 25, 2018 · 0 comments
Open

Installation Marketplace from Drive #1

fdrsuisse opened this issue Oct 25, 2018 · 0 comments

Comments

@fdrsuisse
Copy link

fdrsuisse commented Oct 25, 2018

Hi,
I installed the repository from:
https://drive.google.com/file/d/1c2MJvvJRiTMtDMETi6YmUJi4OEjd3PUQ/view
Following the instructions given by Angelo I modified the files:

  1. proxy-conf/config.js (sections: config.proxy, config.ouath2)

config.port = 8000;
config.host = 'proxy.docker';
config.proxy = {
enabled: true,
host: '10.4.17.170',
secured: true,
port: 443
}
// OAuth2 configuration
config.oauth2 = {
'server': 'https://keyrock.cityreport.org:443',
'clientID': '<>',
'clientSecret': '<>',
'callbackURL': 'http://10.10.10.12:8000/callback',
'roles': {
'admin': 'provider',
'customer': 'customer',
'seller': 'seller',
'orgAdmin': 'orgAdmin'
}
};

2)charging-settings/services_settings.py

from future import unicode_literals
VERIFY_REQUESTS = True
SITE = 'https://10.4.17.170/'
LOCAL_SITE = 'http://localhost:8006/'
CATALOG = 'http://apis.docker:8080/DSProductCatalog'
INVENTORY = 'http://apis.docker:8080/DSProductInventory'
ORDERING = 'http://apis.docker:8080/DSProductOrdering'
BILLING = 'http://apis.docker:8080/DSBillingManagement'
USAGE = 'http://apis.docker:8080/DSUsageManagement'
RSS = 'http://rss.docker:8080/DSRevenueSharing'
#Keyrock/Keystone settings
KEYSTONE_PROTOCOL = 'https'
KEYSTONE_HOST = 'keyrock.cityreport.org'
#Use Keyrock7 port for both e.g., 3000
KEYROCK_PORT = '443'
KEYSTONE_PORT = '443'
KEYSTONE_USER = <keyrock_user>
KEYSTONE_PWD = <key_rock_psw>
ADMIN_DOMAIN = ''
#APP SETTINGS (e.g., Orion context broker)
APP_CLIENT_ID = <ACCESS_TOKEN_FOR_ORION>
#PEP Proxy Wilma endpoint + /v2/entities
APP_URL = 'https://wilma.cityreport.org:4000/v2/entities/'
AUTHORIZE_SERVICE = 'http://proxy.docker:8000/authorizeService/token'

  1. docker-compose.yml ->by putting PAYPAL_CLIENT_ID & PAYPAL_CLIENT_SECRET

After launching docker-compose up I get some errors:

3.1 SynchroniCityDataMarketplace_logs.docx

3.2
charging_1 | INVENTORY APIs not deployed yet, retrying in 5 seconds...
proxy_1 | --2018-10-25 09:05:53-- http://apis.docker:8080/DSProductInventory
proxy_1 | Resolving apis.docker (apis.docker)... 172.18.0.5
proxy_1 | Connecting to apis.docker (apis.docker)|172.18.0.5|:8080... connected.
proxy_1 | HTTP request sent, awaiting response... 404 Not Found
proxy_1 | 2018-10-25 09:05:53 ERROR 404: Not Found.

3.3
curl -i http://apis.docker:8080/DSProductInventory/
curl: (6) Could not resolve host: apis.docker

  1. All running containers in docker engine: docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
35b8d9dd0bbc digicatsynch/logicproxy7:latest "/entrypoint.sh" 31 minutes ago Up 25 minutes 8004/tcp, 0.0.0.0:8004->8000/tcp marketplace_proxy_1
dcef18679837 digicatsynch/charging7:latest "/entrypoint.sh" 31 minutes ago Up 25 minutes 0.0.0.0:8006->8006/tcp marketplace_charging_1
341780001e83 digicatsynch/bae-apis-synchronicity:v6.4.0 "/entrypoint.sh" 31 minutes ago Up 25 minutes 0.0.0.0:4848->4848/tcp, 0.0.0.0:8080->8080/tcp marketplace_apis_1
130540dc9a9e conwetlab/biz-ecosystem-rss:v6.4.0 "/entrypoint.sh" 44 hours ago Up 25 minutes 0.0.0.0:4444->4848/tcp, 0.0.0.0:9999->8080/tcp, 0.0.0.0:1111->8181/tcp marketplace_rss_1
46b48e46ce15 mysql:5.7 "docker-entrypoint.s…" 44 hours ago Up 25 minutes 33060/tcp, 0.0.0.0:3333->3306/tcp marketplace_mysql_1
e297ab22ed5e mongo:3.2 "docker-entrypoint.s…" 44 hours ago Up 25 minutes 0.0.0.0:27017->27017/tcp marketplace_mongo_1

  1. Network interfaces Up & Open : sudo netstat -plnt

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6867/sshd
tcp6 0 0 :::8006 :::* LISTEN 13372/docker-proxy
tcp6 0 0 :::27017 :::* LISTEN 12548/docker-proxy
tcp6 0 0 :::9999 :::* LISTEN 12846/docker-proxy
tcp6 0 0 :::4848 :::* LISTEN 12889/docker-proxy
tcp6 0 0 :::8080 :::* LISTEN 12875/docker-proxy
tcp6 0 0 :::80 :::* LISTEN 5451/apache2
tcp6 0 0 :::22 :::* LISTEN 6867/sshd
tcp6 0 0 :::1111 :::* LISTEN 12808/docker-proxy
tcp6 0 0 :::443 :::* LISTEN 5451/apache2
tcp6 0 0 :::4444 :::* LISTEN 12861/docker-proxy
tcp6 0 0 :::8004 :::* LISTEN 13104/docker-proxy
tcp6 0 0 :::3333 :::* LISTEN 12500/docker-proxy

the port 3306 is not on the listening port

  1. Running Processes: ps -ewF | grep 'mongodb|mysql|python|node' | grep -v grep

999 12592 12555 0 664189 109516 1 11:04 ? 00:00:18 mysqld
root 14041 13138 0 313481 40012 2 11:06 ? 00:00:07 /business-ecosystem-logic-proxy/node-v6.9.1-linux-x64/bin/node server.js

I very appreciated any suggestion in order to install the repository.

Best Regards,
Francesco De Rose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant