Copying the Files on the Target Machine

To Copy the Files on the Target Machine

  1. Compress the deployment files gathered in the folder deployment/docker in your Platform application source folder.

    It is basically structured in three main folders: app, dbos and infra:

    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
  2. 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 is platform.

    platform_src ~> scp deployment/docker/deployment_docker.zip  platform@environment_host:~/deployment/deployment_docker.zip
  3. Decompress the deployment files:

             ~ ~> cd deployment
    deployment ~> unzip deployment_docker.zip -d .