Docker image with OpenSSH, based in Alpine
docker build . -t eduardoshanahan/node:latest
Running an interactive test
docker run --rm -it eduardoshanahan/node:latest
Or with Docker Compose
docker-compose run --rm shell
Creating a key
After running docker-compose, you will be standing in the /keys directory in your openssh container.
When asked where to save the key:
Enter an empty passphrase if the key is going to be used to automate processes.
Building an image in Docker Hub
If for any reason the tagged build fails, you can fire a fresh one running
To send the commits to the remote server, you can use the script
which will also create a new tag if the version is updated.