Versions Compared

Key

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

...

  1. Open a console and go into the directory clamp/packages

    Code Block
    $cd clamp/packages


  2. Run below command

    Code Block
    $mvn clean install -P docker

    Note: This command when run from clamp main directory will build all docker images of Clamp. When run in clamp/packages folder will build
    ControlLoop docker images alone.

  3. There is a fabric8, docker-maven-plugin in clamp/packages/policy-clamp-docker/pom.xml which builds 3 docker images and pushes to ONAP nexus docker registry nexus3.onap.org:10003

    Code Block
    onap/policy-controlloopclamp-cl-runtime
    onap/policy-participant-clamp-cl-k8s-ppnt
    onap/policy-clamp-cl-http-ppnt
    onap/dcae-participantpolicy-clamp-cl-pf-ppnt


  4. Configuration to build docker images is present in following files

    Code Block
    $cd clamp/packages/policy-clamp-docker/src/main/docker


  5. Docker images once built can be brought up manually on localhost using docker commands, or through docker-compose in CSIT
    Clone policy docker repo

    Code Block
    $cd docker/csit/
    $./run-project-csit.sh clamp

    Note: More detailed information on CSIT is in Testing CLAMP

  6. Docker images from docker-compose file in /policy/docker/csit for clamp

    Code Block
    $docker ps
    CONTAINER ID   IMAGE                                                                    COMMAND                  CREATED          STATUS          PORTS                               NAMES
    b2266ab66cbc   onap/policy-controlloopclamp-cl-runtime:latest                                      "/opt/app/policy/bin…"   28 seconds ago   Up 27 seconds   6970/tcp                            policy-controlloop-runtime
    c6475277e750    onap/policy-participantclamp-cl-pf-ppnt:latest                                           "/opt/app/policy/bin…"   29 seconds ago   Up 28 seconds   6972/tcp                            policy-participant
    5a83596fd963   nexus3.onap.org:10001/onap/policy-api:2.5-SNAPSHOT-latest                "./wait_for_port.sh …"   30 seconds ago   Up 29 seconds   6969/tcp                            policy-api
    77746467d139    onap/dcae-participantpolicy-clamp-cl-k8s-ppnt:latest                                             "/opt/app/policy/bin…"   30 seconds ago   Up 29 seconds   6971/tcp                            dcaekubernetes-participant
    6053cdad35fd   nexus3.onap.org:10001/onap/policy-models-simulator:2.5-SNAPSHOT-latest   "bash simulators.sh"     31 seconds ago   Up 30 seconds   3905/tcp, 6666/tcp, 6668-6670/tcp   simulator
    17cf42071531   nexus3.onap.org:10001/mariadb:10.5.8                                     "docker-entrypoint.s…"   32 seconds ago   Up 30 seconds   3306/tcp                            mariadb