December 2018
Intermediate to advanced
500 pages
12h 19m
English
We need to have a target for deployment. In real life, this would be some sort of image of a VM/container, but here we will run a Docker container locally and deploy code on it. To run an Ubuntu container, use the following:
docker run -p 9000:9000 -p 32:22 -it ubuntu /bin/bash
This command will deploy an Ubuntu container and name it Ubuntu. It will also perform a couple of port mappings to allow for ssh and access to the HTTP server (which runs on port 9000).
We will be using SSH to transport artifacts onto the deployment target. Hence, we need to install the ssh server on the container. One can do this using the following commands:
apt-get updateapt-get install openssh-serverservice ssh restart
After this, one needs to ...
Read now
Unlock full access