-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docker-compose to docker compose #7626
docker-compose to docker compose #7626
Conversation
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.
Thanks so much for all your work so far, @gobbledy-gook.
I made a first pass through the entire file. This is good progress.
Also, I am sorry for the ambiguity when I asked you to 'push an updated PR'. I should have made it more clear that you should push a new commit to your existing PR, possibly using --force
if necessary. :)
For all the yaml
-> yml
suggestions that have no comment and merely revert the change, that is just because the change was outside of the scope of Docker Compose.
Just to clarify, is there anything expected from my side at the moment ?? |
@gobbledy-gook, my apologies for leaving you hanging. Have you tried completely re-building and running the development server with all of these changes? If not, you should try that and let us know how it goes. :) Although there is more to do besides that, it may be more on me at this moment. I will try to set aside time tomorrow to look at the Jenkins stuff and report back how that goes for me. But first, sleep. :) |
I tried this PR out in Gitpod, and it seems good:
The development server also came up without apparent error and seems to work fine, both inside Gitpod and on my local computer. So I think we are good to go with Gitpod and the local development environment. With respect to Jenkins and Is there any reason I think with Gitpod and the Jenkins / solr_builder stuff out of the way, the last remaining task may be updating, to the extent necessary, Docker on any system that runs scripts which would use the |
b353922
to
7619cf8
Compare
I didn't intend to close the PR, I am trying to reopen it. I apologise for it ! |
@gobbledy-gook, I think we are getting close to being able to test this out. :) We have a few ways forward here:
OR If you get stuck we can schedule a Zoom call and work on it together. OR I can just make the changes. How would you like to proceed? |
Sincerely apologise for not being able to do something in past two day, got busy with my academics! Looking it now and will keep updated ! |
@cclauss @scottbarnes I have a doubt. When I don't see any necessary changes to be done how do I make sure that there are actually no changes needed ? What is a good method to check ? I ask this because currently I don't see any changes that should be made. That issue of unnecessary (deleted files), I feel has been resolved now |
@gobbledy-gook, this looks really close. I think the stuff from this comment still needs to be added to Great work on the rebasing by the way. I think this is just one step away from being able to deploy to a staging environmennt for testing. This issue is a bit hard for us to test on our own because of the need to test it in Jenkins, but we can get help with that once Edit: my mistake, there are a few other unresolved suggestions to process (e.g. to openlibrary/plugins/openlibrary/code.py), but once those are done, then I believe it's ready for testing. :D |
As mentioned by @scottbarnes |
Are there still changes to be made ?? @scottbarnes |
I think we are there, @gobbledy-gook. Thanks for all your hard work. :D There are a lot of changes, so I will make another pass through, test everything out the best I can locally, and if it's okay with you, I will squash everything and then we can hopefully get this more fully tested on the Solr staging server. |
Please give honest opinion about this @scottbarnes @cclauss after having done all this, I feel like this shouldn't have taken so long. I made many mistakes and hence the time delay... But that's how we learn I guess |
32e3a5f
to
49d2811
Compare
@gobbledy-gook, barring any additional input from @cclauss or @cdrini, I think we are good to go, but if for some reason you wish to make further updates to this PR, make sure you first pull the code down from your branch on GitHub so that you get the slightly modified code I pushed to the branch. With respect code and other things not always being perfect every time, you need only look at my own pull requests to see how many mistakes I make. It turns out perfection isn't easy! That's why we have wizards like @cclauss and @cdrini and others to help us. (And I will tell you a secret: even they make mistakes sometimes, as shocking as this may be.) :) I think there were lots of little gotchas in here, and I know it would have helped you had I given more background about which YAML references to update, etc., right at the start. Sometimes communication is hard because we might have a specific thing in our heads, and as obvious as this fact should be, it turns out not everyone can read our minds every time with exact accuracy. Having said that, I made some minor changes to the PR, as you can see if you look at the files changed tab. A few things that may make things smoother going forward:
Finally, Now, with bated breath, we await feedback from @cclauss before we pester @cdrini to put this on the Solr staging server. :) |
# Remove any old versions and install newer versions of Docker Engine and Docker Compose. | ||
# See https://docs.docker.com/engine/install/ubuntu/ for any possible changes. | ||
sudo apt-get remove docker docker-engine docker.io containerd runc | ||
DOCKER_VERSION=5:20.10.7~3-0~ubuntu-focal |
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.
This needs to be updated but I am unclear on how to create DOCKER_VERSION
that matches our current Docker versions.
See #7706
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.
In scripts/setup_olserver.sh
it is 5:20.10.7~3-0~ubuntu-focal
but in scripts/solr_builder/Dockerfile
it is 5:20.10.23~3-0~ubuntu-jammy
. Is it supposed to be like that ? And here (Current Docker Verisons) it is 23.0.1
.
So we need to change it to 23.0.1
?
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.
Yep switch to 5:23.0.6-1~ubuntu.20.04~focal
According to chatgpt, apt-cache madison docker-ce
displays all possible versions.
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.
LGTM.
Let's get @cdrini to review...
Any updates here ?! |
Alas, at the end of the day, @cdrini is still only human, and as with much of the Open Library team, has more to do than can be done. I know this isn't a satisfactory answer, but at least we are in the queue to get this PR tested further, but I am not sure how soon that will be. As with you, I am excited to see this get merged, though, so my fingers are crossed in the hope that we won't need to do anything more. |
This PR: - replaces references to "docker-compose" with "docker compose"; - removes the "docker-" prefix from Compose files; - changes Compose file suffixes to "yaml"; and - updates any filenames. E.g. "docker-compose.yml" > "compose.yaml". Docker guidance prefers 'compose.yaml', and this PR follows that: https://docs.docker.com/compose/compose-file/03-compose-file/ Co-authored-by: Scott Barnes <scottreidbarnes@gmail.com>
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.
Awesome work @gobbledy-gook &co! This was a meaty one 😊 I'm going to merge this now since the core is working, any comments can be done in a future PR. Thank you for your patience @gobbledy-gook !
3206e9c
to
51d0431
Compare
@gobbledy-gook, thanks for all your hard work on this. Your changes have been deployed and now Open Library is using the fruits of your labor. Even better, Open Library can now also use the most recent versions of Docker Compose. 🎉 |
Closes #7594
Closes #7621
Depends on:It tries to upgrade from current
docker-compose
command todocker compose
.Technical
Basically what I have done: Using
git grep docker-compose
and making necessary edits. Also the previous feedbacks were taken into consideration of not changing all the.yml
files to.yaml
files.Testing
%
pytest tests/test_docker_compose.py
-- #7626 (comment)When merging this PR, let's try:
pytest
the old version of this file on the old codebase and make sure it passes.pytest
the new version of this file on the old codebase and make sure it fails.pytest
the old version of this file on the new codebase and make sure it fails.pytest
the new version of this file on the new codebase and make sure it passes.Screenshot
Stakeholders
@cclauss @scottbarnes