Yes, I have looked at that. Now I know how to see the huge restore script. Thank you.
Now … how do I get the restore script and the tar file into the same “context” where the script needs to be executed. Specifically, does the tar file need to be moved into the “docker” world or the script need to be moved into the non-docker world before execution?
I could manually copy the contents of the restore script into a new restore.sh file and place it into the non-docker world. I’m not sure how I would go the other way tar-> docker world
I progressed a bit further. Now I know how to place the tar file and restore script into the /home directory inside the docker container. However, the restore script wants to execute under a bash shell, which apparently isn’t available. Attempting to execute the script under a ‘sh’ shell generates a huge number of errors and doesn’t seem to work either.
Note the database password in the sqlconf.php file
more /var/www/localhost/htdocs/openemr/sites/default/sqlconf.php
<?php
// OpenEMR
// MySQL Config
$host = 'hosthosthosthost.us-east-1.rds.amazonaws.com';
$port = '3306';
$login = 'openemr';
$pass = '(((password)))';
$dbase = 'openemr';
At this point, I run into a roadblock. The bash shell doesn't seem to be available:
ubuntu@ip-10-0-1-107:~$ sudo docker exec -it /bin/bash
rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory"
modifying the first line of the restore script from /bin/bash -> /bin/sh allows the script to execute, but it generates a huge number of errors .... I also tried correcting the name of the directory, but that did not work either.
I guess the next step is to attempt to execute the relevant statements of the restore script manually one-by-one at the command line ...
To be continued....
looks like you’re missing the . (period) at the end which completes the cp command by placing it with the name or restore in your current directory
so should be