ministryofjustice / justice-gov-uk

Justice UK website
https://www.justice.gov.uk/
MIT License
2 stars 0 forks source link

Add a container to allow wp-cli over ssh #26

Closed EarthlingDavey closed 7 months ago

EarthlingDavey commented 7 months ago

This will allow the migration script (in a different local project) to use wp-cli remotely.

It can be used with the following arguments: wp --ssh=ssh-user@host.docker.internal:2222/var/www/html db check and will be useful for importing from an xml file.

It cannot use dory because it's not http traffic. So it exposes the port to the host, and ssh commands for other containers use host.docker.internal

@wilson1000-MoJ do you mind taking a look, please.