Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add DOCKER_HOST to environment variables with the value: tcp://192.168.50.5
    (This is the ip of the vagrant, We're using private network settings in our vagrant to allow our dockers to comunicate with each other without using proxy configurations. The ip list can be found in the Vagrantfile int the nodes array)

  2. Run mvn clean install and build the whole project.

    After the build is finish you'll need to run the sdc-os-chef project with profile docker in order to build docker from your local code and upload them to your local vagrant.
    Run the following command in order to do so: (Need to check about the docker repository credentials)

    Code Block
    languagebash
    mvn clean install -pl sdc-os-chef -P
    Note

    You'll have to make sure that your vagrant is up and running before doing so or else it won't work

  3. After this process is done go to your vagrant and run docker images to check that your local images are on the machine
  4. In order to deploy your local images without pulling the latest images from the nexus you'll need to run the docker_run script with the local flag like so:

    Code Block
    languagebash
    /data/scripts/docker_run.sh -r 1.1-STAGING-latest -l


    (This command and all other commands can be found here: SDC Vagrant Common Commands)

...