Skip to content

s3bw/scap-registry

Repository files navigation

Scap Registry

Server side application for note storage.

Environments

Name Purpose
prod production (runs with s3)
test Running in ci
dev For running locally

Setup local debugger for development

bash start_debugger.sh

Running tests

pip install setup.py dev
tox

Running the Container

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

Written requests

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

About

Server side application for note storage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published