-
Notifications
You must be signed in to change notification settings - Fork 190
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
Add support for existing and new docker compose syntax #171
Conversation
- Dynamically detect the version of docker compose and adjust the calling syntax appropriately. - resolves bcgov#170 Signed-off-by: Wade Barnes <wade@neoterictech.ca>
@Moopli, here is the fix for the issue you reported. Could you try this out and see if it resolves the issue for you? |
When I run
I get the logs for the webserver but not the nodes. If I open http://localhost:9000 in a browser I get |
The nodes seem to be sleeping:
|
It starts cleanly for me, and aries agent test harness tests using the local von pass, thanks! |
@ianco, They shouldn't be sleeping. I didn't change any of the startup commands in the docker-compose file. |
Not sure what's going on, I tried deleting & rebuilding the images (cleaned out the docker cache), re-started, and the nodes never seem to start. |
@ianco, What does your docker-compose file look like? |
... also:
|
@ianco, you have them sleeping for 4h:
It looks like you still have remnants of the configuration from when we were debugging the ledger issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Docker version 20.10.8, build 3967b7d and all good.
Nice work! |
Aha thanks @WadeBarnes good catch, you're right that is a local change, my local von-network is checked out on a branch :-( oops |
I’m having trouble with ~/repos/von-network [docker-compose-fixes] 08:13 $ ./manage down
Stopping and removing any running containers ...
Docker version 20.10.8, build 3967b7d
Removing project volumes ...
Error response from daemon: remove von_node1-data: volume is in use - [6d2746ac9d16ce2eee0414b51521e3ee269307e18258f32f31824aa6fd3c0a84]
Error response from daemon: remove von_node2-data: volume is in use - [e78547b9fccae345322091ea5cf76c75d13aca6a00b44405aa1380075aaf856d]
Error response from daemon: remove von_node3-data: volume is in use - [a234e41be056e9f1506894a889b971489f0562863f480c7cf6c319e63bffcdfa]
Error response from daemon: remove von_node4-data: volume is in use - [bdedc51f5b8b882f9467505175ab94b76c601ee0a3d624bd2d94a5c7f0e5d197]
Error response from daemon: remove von_webserver-cli: volume is in use - [4246f4da90a79093c3150d133e68ed27e87cb6a833daec1f8213636453fe4342]
Error response from daemon: remove von_webserver-ledger: volume is in use - [4246f4da90a79093c3150d133e68ed27e87cb6a833daec1f8213636453fe4342]
~/repos/von-network [docker-compose-fixes] 08:13 $ ./manage stop
Stopping von_node2_1 ... done
Stopping von_webserver_1 ... done
Stopping von_node1_1 ... done
Stopping von_node3_1 ... done
Stopping von_node4_1 ... done
~/repos/von-network [docker-compose-fixes] 08:14 $ |
@swcurran, I see a couple things I missed. Another PR is coming shortly, just testing. |
Add support for existing and new docker compose syntax
Signed-off-by: Wade Barnes wade@neoterictech.ca