Name | Purpose |
---|---|
prod | production (runs with s3) |
test | Running in ci |
dev | For running locally |
bash start_debugger.sh
pip install setup.py dev
tox
docker build -t scap-registry .
# Running development container
docker container run -d \
-e APP_ENV=dev \
-p 5000:5000 \
--name cloud_dev scap-registry
# Running Production container
docker container run -d \
-e APP_ENV=prod \
-e S3_ACCESS_KEY=$S3_ACCESS_KEY \
-e S3_SECRET_KEY=$S3_SECRET_KEY \
-e S3_BUCKET=$S3_BUCKET \
-p 5000:5000 \
--name cloud_prod scap-registry
Stop container process
docker container rm cloud -f
I've written requests in example_usage.py
which will ping an active container/server and use the example note found in examples/
python example_usage.py --host localhost --port 5000