-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor Docker setup #186
base: master
Are you sure you want to change the base?
Conversation
baf1cc0
to
a5c866e
Compare
8ed0452
to
a7bb6cc
Compare
Sorry for taking so long to get back to this. It's not working for me :( The It looks like
Is that correct? I would have expected the remote host name. I'm guessing the Docker container is supposed to make that remote connection, but I can't verify that as I don't have It's very possible I'm merely doing something stupid on my end. I'm happy to just merge if you believe things are working as expected. |
Looks like a bit of an oversight on my part. The Trove host to be used is set by the I've added a n.b. You can get a shell into the container with |
a7bb6cc
to
8cc5060
Compare
Still no dice :(
My limited Docker skills had already got me that far, but I guess I didn't know where to install
And on my host machine:
Neither of these show the expected SSH tunneling on ports 4711-4718 and 4721. Comparing with using the
Is there some magic going on, or shouldn't the Docker setup also make use of SSH port forwarding? At any rate, my offer still stands: If you believe it's working as expected or I'm doing something dumb or both, I'll just merge :) |
Re-add ability to use Docker for development post-switch to Cloud VPS. Support for Trove has been added, along with a few tweaks (like moving execution to a non-root user, as required by Symfony). Also moved off of Toolforge images and onto global `php` images, since CopyPatrol isn't expected to run on Toolforge anymore.
8cc5060
to
07df2f9
Compare
@MusikAnimal It appears my approach here only ever worked because I had a I've removed the part of the entrypoint script which attempts to gather the username with the SSH config. This means SSH will handle usernames, if they appear in the configuration. If they don't, the user will have to provide the username manually, since info on who's running the Moving forward, the command you should use is: docker compose exec copypatrol start ssh musikanimal which should eventually later expand to
This assumes I think it's a good thing that we're catching these issues prior to merging so that other developers down the line of varying configuration setups and OSes don't have them! As long as you're alright with trying to make this work, I'm also happy to work it out with you. :) |
Re-add ability to use Docker for development post-switch to Cloud VPS. Support for Trove has been added, along with a few tweaks (like moving execution to a non-root user, as required by Symfony). Also moved off of Toolforge images and onto global
php
images, since CopyPatrol isn't expected to run on Toolforge anymore.This runs the same way as it did before: the main CopyPatrol Symfony server executes as the main program in a Docker Compose set, and the SSH tunnel is established from within that container with a separate terminal. See new README for more info.
I've done the prep work to allow the image to also run standalone, should that ever be needed. Some more optimization is in order; currently, the "production" image stands at 643 MB because it's built on top of the heavyweight
php:8.2
image which uses Debian. That can be done in the future, if CopyPatrol is ever put onto Kubernetes or something.