X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fcr%2FREADME.md;h=b8c4ad171d6d691efeb1bffc65e4ba3b2c143a3a;hb=7b36db6ef1b31daa41e115b7f199bb04f1cd0725;hp=becace1a5c05d575950842cb7770ee93ba725e61;hpb=6a39814272307d0207222c9229b0d765ac062bf0;p=nonrtric.git diff --git a/test/cr/README.md b/test/cr/README.md index becace1a..b8c4ad17 100644 --- a/test/cr/README.md +++ b/test/cr/README.md @@ -53,10 +53,10 @@ All counters also support the query parameter "id" to fetch counter for one indi ### Build and start ### >Build image
-```docker build -t callback-receiver .``` +```docker build --build-arg NEXUS_PROXY_REPO=nexus3.onap.org:10001/ -t callback-receiver .``` >Start the image on both http and https
-```docker run -it -p 8090:8090 -p 8091:8091 callback-receiver``` +```docker run --rm -it -p 8090:8090 -p 8091:8091 callback-receiver``` It will listen to http 8090 port and https 8091 port(using default certificates) at the same time. @@ -69,16 +69,16 @@ file "pass" stores the password when you run the shell script This certificates/key can be overriden by mounting a volume when using "docker run" or "docker-compose" In 'docker run', use field: --volume "$PWD/certificate:/usr/src/app/cert" a1test -```docker run -it -p 8090:8090 -p 8091:8091 -v "/PATH_TO_CERT/cert:/usr/src/app/cert" callback-receiver``` +```docker run --rm -it -p 8090:8090 -p 8091:8091 -v "/PATH_TO_CERT/cert:/usr/src/app/cert" callback-receiver``` In 'docker-compose.yml', use field: volumes: - ./certificate:/usr/src/app/cert:ro -The script ```crstub-build-start.sh``` do the above two steps in one go. This starts the callback-receiver container in stand-alone mode for basic test.
If the callback-receiver should be executed manually with the agent, replace docker run with this command to connect to the docker network with the correct service name (--name shall be aligned with the other components, i.e. the host named given in all callback urls). -```docker run -it -p 8090:8090 -p 8091:8091 --network nonrtric-docker-net --name callback-receiver callback-receiver``` +The script ```cr-build-start.sh``` do the above two steps in one go. This starts the callback-receiver container in stand-alone mode for basic test.
If the callback-receiver should be executed manually with the agent, replace docker run with this command to connect to the docker network with the correct service name (--name shall be aligned with the other components, i.e. the host named given in all callback urls). +```docker run --rm -it -p 8090:8090 -p 8091:8091 --network nonrtric-docker-net --name callback-receiver callback-receiver``` >Start the image on http only
-```docker run -it -p 8090:8090 callback-receiver``` +```docker run --rm -it -p 8090:8090 callback-receiver``` ### Basic test ###