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

Test collab changes #4041

Draft
wants to merge 1 commit into
base: test-collab
Choose a base branch
from

Conversation

apsinghdev
Copy link
Member

This PR make changes to run all the services using a single docker-compose file

build: https://github.com/sugarlabs/musicblocks.git#collaboration
# build: https://github.com/sugarlabs/musicblocks.git#test-collab
build:
context: ./
Copy link
Member

Choose a reason for hiding this comment

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

Seems this was needed for a test, the idea here is to build from this repo and not local sources.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I tried this lots of time but it was not building the image from the remote repo (my network can be the reason, I'll try again). Just for testing purpose, I tried to build using the local repo as it contains the same code.

Copy link
Member

Choose a reason for hiding this comment

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

It's probably an issue with your network, did you try again and did it work?

If it's your network then you can do this locally without committing it.

MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: planet
volumes:
- /Users/ajeetpratapsingh/Developer/os/planet-server/planet.sql
Copy link
Member

Choose a reason for hiding this comment

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

It'll be great if you don't hard code values like this because if I was testing, I wouldn't have that directory and that'll break things.

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 have created a local db planet-mysql for testing purpose and I assume, we will also have a db on our remote server to reference a volume like this and this path /Users/ajeetpratapsingh/Developer/os/planet-server/planet.sql will be changed to server's local path. is there any better way to add volume, like fetching from somewhere?

Copy link
Member

@chimosky chimosky Nov 7, 2024

Choose a reason for hiding this comment

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

You could just reference a volume with it's name and it'll automatically be created if it doesn't exist, no need for a path to an existing volume.

If you want to mount a db that's part of the repo in the container, then that's something you can still do.

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

Successfully merging this pull request may close these issues.

2 participants