Copying the Files on the Target Machine
To Copy the Files on the Target Machine
-
Compress the deployment files gathered in the folder
deployment/dockerin your Platform application source folder.It is basically structured in three main folders:
app,dbosandinfra:platform_src ~> tree -L 1 deployment/docker deployment/docker |- app # A dedicated docker compose for all the Platform micro services. |- dbos # A dedicated docker compose for the Optimization server infrastructure. |- infra # A dedicated docker compose for general infrastructure services.
The first thing to do is to copy these files on the target machine.
We can zip them with the following command, for example:
platform_src ~> (cd deployment/docker && zip -r deployment_docker.zip .) platform_src ~> # We now have a deployment_docker.zip file platform_src ~> # in deployment/docker folder
-
Moving the deployment files to the target machine. You may use the tool of your choice to move the file, WinSCP for example.
For example, if the target machine answers to the hostname
environment_host; and the Unix user on the target machine that will host your Platform application isplatform.platform_src ~> scp deployment/docker/deployment_docker.zip platform@environment_host:~/deployment/deployment_docker.zip
-
Decompress the deployment files:
~ ~> cd deployment deployment ~> unzip deployment_docker.zip -d .