...
- Tested with Ubuntu 16.04 LTS with openjava 1.8, mvn 3.3.9, git 2.7.4 (newer version should work also)
- Further tools:
- chromium, curl
- docker 18.09.2
- xmllint (sudo apt install libxml2-utils)
- Hava a user with admin rights.
- Add user to "docker" group.
Note |
---|
HINT: You need to log out from server completely to activate this setting!! |
Code Block | ||
---|---|---|
| ||
sudo usermod -aG docker $USER |
- Maven configuration for ONAP Nexus (onap should be within settings file) Warning: Previouse configuration is overwritten by command!
Code Block | ||
---|---|---|
| ||
mkdir "$HOME/.m2"#Warning: Previouse configuration is overwritten by command! wget git.onap.org/oparent/plain/settings.xml -P ~$HOME/.m2 |
- Download and clone repository with onap-oof-pci project to ~$HOME/ccsdk
Code Block |
---|
cd $HOME git clone https://github.com/onap-oof-pci-poc/ccsdk.git |
...
Login to nexus repository (for first time) .. see here: Docker DevOps
Code Block |
---|
docker login -u docker -p dockernexus3.onap.org:10001 |
- Build
Code Block |
---|
cd $HOME/ccsdk/distribution/odlwt-alpine-standalone-master mvn clean install -P docker |
...
Code Block |
---|
(1) docker run --detach --name sdnr --env SDNRWT="true" oof-pci/ccsdk-odlwt-alpine-image:latest (2) docker run --detach --name sdnr -p8181:8181 --env SDNRWT="true" -p8181:8181 oof-pci/ccsdk-odlwt-alpine-image:latest |
...