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

JDBC connection arguments for UnifiedViews FE #2

Open
joasilva opened this issue Oct 14, 2016 · 0 comments
Open

JDBC connection arguments for UnifiedViews FE #2

joasilva opened this issue Oct 14, 2016 · 0 comments

Comments

@joasilva
Copy link

Hi!

Let me just suggest a change in your the docker run command of Unified Views FE from:

docker run --name unified-views
-p 8080:8080 --link my-mysql:mysql
-v /path/to/lib:/unified-views/lib
-v /path/to/dpus:/dpus
-e UV_DATABASE_SQL_URL=jdbc:mysql://188.12.34.56:3306/unified_views_db?characterEncoding=utf8
-e UV_DATABASE_SQL_USER=unified_views_user
-e UV_DATABASE_SQL_PASSWORD=unified_views_pwd
-e MASTER_API_USER=master
-e MASTER_API_PASSWORD=mysecretpassword
-d tenforce/unified-views

to:

docker run --name unified-views
-p 8080:8080 --link my-mysql:mysql
-v /path/to/lib:/unified-views/lib
-v /path/to/dpus:/dpus
-e UV_DATABASE_SQL_URL=jdbc:mysql://mysql:3306/unified_views_db?characterEncoding=utf8
-e UV_DATABASE_SQL_USER=unified_views_user
-e UV_DATABASE_SQL_PASSWORD=unified_views_pwd
-e MASTER_API_USER=master
-e MASTER_API_PASSWORD=mysecretpassword
-d tenforce/unified-views

The reason is that you're starting the default name for the BE host is "mysql":

$ docker exec -it backstabbing_hopper less /etc/hosts
WARNING: terminal is not fully functional
127.0.0.1 localhost)
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 mysql 84687fd5fca8 sleepy_roentgen
172.17.0.3 65a2abc50dff
/etc/hosts (END)

Regards,

JMS

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