Skip to content
This repository was archived by the owner on Aug 3, 2025. It is now read-only.

Conversation

@bcongdon
Copy link
Member

Changing docker setup to have each service/client in its own Docker container.

- groot-events-service
- groot-users-service
- groot-groups-service
- groot-quotes-service
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not entirely sure what depends_on does but are these the correct service dependencies?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends_on just specifies the startup order of services

- groot
restart: always

volumes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do log files go? like the access_log also I would eventually like to move towards log files

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make a volume for log files. We also can grab the logs of each service through docker logs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, this is setup now, assuming we use the config defaults I added to groot-api-gateway: https://github.com/acm-uiuc/groot/blob/4a1ed0def4570d09d9b8bd7839d58b74842d30fd/README.md#config-values

- "3306:3306"
restart: always

groot:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be changed to groot-api-gateway

@@ -1,6 +1,10 @@
CREATE DATABASE IF NOT EXISTS groot_caffeine_service_dev;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a separate setup for prod dbs?

Copy link
Member Author

@bcongdon bcongdon Apr 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're currently running services with the _dev suffix in prod...

I guess it could be worth making the _dev and _prod databases in this script, though I'm not sure the _prod databases are enumerated anywhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I was just following a convention of a _dev suffix for development environments and just the service name with no suffix for prod (at least for ruby services).

ports:
- "8000:8000"
volumes:
- groot_api_gateway_volume:/var/groot/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the /var/groot need to change as well?

@narendasan
Copy link
Member

In this PR can you also include the readme updates for the preferred development and deployment instructions (since there are theoretically 3 options)?

@narendasan
Copy link
Member

Also docker_settings_init.sh needs to be updated (both to match arbor and the new docker urls)

@bcongdon
Copy link
Member Author

bcongdon commented Apr 6, 2017

I'm inclined to make the singular docker container deployment method unsupported. It's just not a good solution.

This would make docker_settings_init obsolete.

@narendasan
Copy link
Member

Sounds good

@narendasan
Copy link
Member

narendasan commented Apr 6, 2017

Well actually it might be useful for setting up non docker setups if we want to continue to support that, since it creates the config files

@narendasan
Copy link
Member

Perhaps that and the documentation surrounding non-docker development if that is going to be a secondary way of working should be moved to a wiki on this repo

@bcongdon bcongdon changed the title [WIP] Dockerized Services Dockerized Services Apr 7, 2017
Copy link
Member

@narendasan narendasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, modify the documentation as needed before merge (so new devs can get going) and are we going to change the db setup stuff?

@bcongdon bcongdon merged commit c09cd48 into master Apr 9, 2017
@aashishkapur aashishkapur deleted the docker-for-prod branch April 18, 2017 19:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants