Public Repository

Last pushed: 10 months ago
Short Description
ScionCC capability container
Full Description

===========================================================

Dockerfile for a SciON Capability Container image

DESCRIPTION

Based on scioncc/scion_python

Separates files needed for build in ./build and ./run for files for code build
and files for startup. This way startup can be modified without requiring a
rebuild of previous layers.

DOCKER IMAGE

sudo docker build -t scioncc/scion_cc:3.0.0 .

USAGE

Set ENV variables:
NO_PYCC: if non-empty, don't start pycc
PYCC_ARGS: arguments for bin/pycc on startup (default -n)
POSTGRES_PASSWORD: password for postgres superuser (named postgres by default)
POSTGRES_ION_PASSWORD: password for postgres ion user (defaulting to superuser password)

Run detached ScionCC with linked RabbitMQ and Postgres (no processes)

sudo docker run --name cc --link pg:postgres --link rabbit:rabbitmq -e POSTGRES_PASSWORD=foo -e POSTGRES_ION_PASSWORD=bar -it scioncc/scion_cc:3.0.0 /sbin/my_init

NOTE: To expose UI server ports, run with -p 4000:4000 -p 8080:8080 option as needed

NOTE: To start processes or admin UI set PYCC_ARGS variable:

... -e PYCC_ARGS="-fc --mx -r res/deploy/basic.yml"

Boot without pycc and drop into shell

sudo docker run --name cc --rm -e NO_PYCC=1 -it scioncc/scion_cc:3.0.0 /sbin/my_init -- bash -l

From the docker host, open shell in docker container:

sudo docker exec -it cc bash -l

From the docker host, access a running ScionCC using manhole:

Note: exit via Ctrl-D or quit(), never exit() which would kill the ScionCC

sudo docker exec -it cc bash -l bin/manhole

From the docker host, start an ipython:

sudo docker exec -it cc bash -l bin/ipython

Stop container

sudo docker stop cc

Remove container

sudo docker rm cc

Docker Pull Command
Owner
scioncc

Comments (0)