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

Run of docker container comdb2-dev fails due to missing folder #64

Closed
dennisgove opened this issue May 26, 2017 · 4 comments
Closed

Run of docker container comdb2-dev fails due to missing folder #64

dennisgove opened this issue May 26, 2017 · 4 comments

Comments

@dennisgove
Copy link
Contributor

When running the container built with make docker-dev it fails to create a database because directory /var/cdb2 does not exist.

dennisgove added a commit to dennisgove/comdb2 that referenced this issue May 26, 2017
@mponomar
Copy link
Contributor

mponomar commented May 26, 2017

They should end up in /opt/bb/var/cdb2. Prefix is missing. Wonder if broken by #54.

@mponomar
Copy link
Contributor

Broken by #61. Which also breaks package builds.

@mponomar
Copy link
Contributor

Fixed by #66. Give that a shot.

mike@xps:~/comdb2/src$ docker run --name test -d comdb2-dev:latest db1 db2 db3
e9e5e0b22696c01be4cbb4c45421db0a5b9e5fdd9ca22e37e91eec0a1b469471
mike@xps:~/comdb2/src$ docker exec -ti test /bin/cdb2config > config
mike@xps:~/comdb2/src$ export CDB2_CONFIG_FILE=config
mike@xps:~/comdb2/src$ for db in db1 db2 db3; do cdb2sql $db default 'select comdb2_dbname()'; done
(comdb2_dbname()='db1')
(comdb2_dbname()='db2')
(comdb2_dbname()='db3')
mike@xps:~/comdb2/src$ docker kill test
test
mike@xps:~/comdb2/src$ for db in db1 db2 db3; do cdb2sql $db default 'select comdb2_dbname()'; done
cdb2_open rc -1 cdb2_get_dbhosts: can't do dbinfo query on db1 hosts.
cdb2_open rc -1 cdb2_get_dbhosts: can't do dbinfo query on db2 hosts.
cdb2_open rc -1 cdb2_get_dbhosts: can't do dbinfo query on db3 hosts.

@mponomar
Copy link
Contributor

mponomar commented May 26, 2017

This is fixed - was breaking due to a broken build.

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

2 participants