SAGE Edge Code Repository
Add registry.local
to docker daemon settings: (OSX -> Docker Desktop -> Preferences... -> Docker Engine)
{
"experimental": true,
"debug": true,
"insecure-registries" : ["registry.local:5001"]
}
Add registry.local
to /etc/hosts
:
sudo ./scripts/add_etc_hosts_entry.sh
The test environment uses docker-compose but has to be invoked by a wrapper script:
./run.sh -d
Option -d
will deamonize the docker-compose environment.
Option --build
will build docker images first.
To stop:
./run.sh stop
Visit Jenkins in your browser via: http://localhost:8082
Note: After the start of Jenkins you have to login as user ecrdb
with password test
. You can skip the "Getting Started" dialogue but clicking the X
in the upper right corner. Then click on the blue button Start using Jenkins
. After that your are logged in, but that is not a requirement. Users can view the Jenkins instance without logging in.
for an existing docker-compose enviornment:
docker exec -ti sage-ecr_sage-ecr_1 /bin/ash -c 'coverage run -m pytest -v --runslow && coverage report -m'
docker exec -ti sage-ecr_db_1 mysql -u sage -p SageECR