Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

These instructions have been verified on OSX High Sierra 10.13.4 using Docker for Mac Version 18.05.0-ce-rc1-mac63 (24246), which is latest edge version, stable channel will work as well.

Requirements:

  1. Recent Docker for Mac (tested with latest edge and stable release)
  2. Docker for Mac has to be sized to allow running all SDC containers, see instructions.
  3. Code changes from: https://gerrit.onap.org/r/#/c/45921/


Instructions:

Make sure your docker is up and running, and is fully updated. Once docker is up and running (you can pull images and run them, ie docker pull ubuntu && docker run -it ubuntu /bin/bash), set resources for docker to something like this(these work on my MacBook Pro 15 Retina):

Save settings and restart docker.


These instructions assume, you have installed git, java, maven etc.. on your OSX. Installing these basic development tools are out of scope of these instructions.

  1. Clone the SDC project, and run: mvn clean install -Pdocker
  2. Once this completes (and it will take a while since everything will be built), create new folder called data in SDC project directory, and add it to .gitignore, since we dont want to commit this ever.
  3. Export variable WORKSPACE=$(pwd) where in this case, $(pwd) is SDC project root, so change directory to SDC project root, and run: export WORKSPACE=$(pwd)
  4. Follow instructions 1,2 and 3 from Deploying SDC on a Linux VM for Development section Initial Setup, placing files in above created data directory
  5. In above mentioned file AUTO.json, update yyy with IP adress of your mac (usually en0 interface)

Running containers:

Run this command to start containers (from SDC root project directory): sdc-os-chef/scripts/docker_run.sh -e AUTO -l

After sometime you should have:


All containers will be exposed (as per Docker for OSX) on localhost and your machine IP (en0 interface).

Troubleshooting:

  1. All scripts are located here: sdc-os-chef/scripts/, in case something isnt going right, modify first line /bin/bash to /bin/bash -xv for additional debugging.
  2. Make sure docker_run.sh command is executed only after WORKSPACE env var is defined, otherwise scripts will use / as path for data directory (look for files in /data and /opt)


  • No labels