...
sudo vi /etc/environment
...
OPENNSA=/data/dev/opennsa
TESTOPENNSA=/data/dev/testopennsa
OPENNSAMNGMT=/data/dev/opennsamngmt
Now clone these repositories in the correct place and switch to valid branches:
cd /data/dev
git clone ssh://git@code.geant.net:7999/ccs/opennsa.git opennsa
git clone ssh://git@code.geant.net:7999/ccs/onsa-tests.git testopennsa
git clone ssh://git@code.geant.net:7999/ccs/onsa-mngmt.git opennsamngmt
cd opennsa
git checkout domainaggregate
cd ../testopennsa
git checkout develop
...
The last command will verify if your docker installation is up-and-running. It will download the 'hello-world' image from the central Docker image repository, create a container using that image and start that container.
Info | ||
---|---|---|
| ||
In order to be able to run docker and docker-compose commands without sudo it is needed to add current user do docker group (the first step is optional, the docker group should already exists at this step): sudo groupadd docker sudo gpasswd -a $USER docker This step may be necessary if we want to use setup scripts (with sudo it is need to set e.g. environment variables for root also) |
Creating an OpenNSA image from a Dockerfile
...