commit | 86457ed120fc236b1485ad3251589aedad2401bd | [log] [tgz] |
---|---|---|
author | Eran (ev672n), Vosk <ev672n@att.com> | Mon Aug 06 17:02:39 2018 +0300 |
committer | Eran (ev672n), Vosk <ev672n@att.com> | Mon Aug 06 17:02:39 2018 +0300 |
tree | a473c2faf16ffbb34aad75d4fef8afc3b2541f21 | |
parent | 735b58119b37ead5013c40afd941d63ef28ca053 [diff] |
Changing the dcae dt main code Updating DCAE-dt-main code for Dockerizing the DCAE-CI code Change-Id: Ia50d24e60e9ddc9bbc58dd8651d7a4f7e0dc8270 Issue-ID: SDC-1605 Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Composition Refactoring
$ docker login -u <user> -p <password> <docker_registry> $ mkdir -p docker/target $ cp dcaedt_be/target/dcae.war docker/target/dcae.war $ cd docker $ docker build --no-cache -t dcaed-be -f Dockerfile .
The environment file must include the following new definition under "override_attributes": "SDC": { "BE":{ "fqdn" : "zldcrdm2sdc4cbe01.3f1a87.rdm2.tci.att.com" } },
The environment json file should be injected into the docker by one of the following ways:
<host>:/data/environments
. Run the docker with volume: --volume /data/environments:/root/chef-solo/environments
docker cp
to copy the json file into the docker /root/chef-solo/environments
$ docker run -dit -p 8444:8444 --restart="always" --name=dcaed-be \ --env ENVNAME=<environment_name> \ --env JAVA_OPTIONS="-XX:MaxPermSize=256m -Xmx4713m \ -Dconfig.home=\${JETTY_BASE}/config \ -Dlog.home=/opt/logs/be \ -Dlogging.config=\${JETTY_BASE}/config/dcae-be/logback-spring.xml" \ [ --volume /data/environments:/root/chef-solo/environments ] \ dcaed-be:latest \ /bin/sh