Docker¶
The CellPACK server, which is used for running packings for CellPACK Studio, is run in a Docker container using a Docker image built in this repo.
Prerequisites¶
Install docker
Clone the repository locally, if you haven’t already:
git clone https://github.com/mesoscope/cellpack.gitEnsure that you have valid AWS access key and secret to access the
cellpack-resultsS3 bucket, usually stored in a~/.aws/credentialsfile. If you have multiple accounts in your credentials files, ensure that the desured account is thedefaultoption.
Building and Running the Docker Container¶
Build image, running
docker build -f docker/Dockerfile.ecs -t [CONTAINER-NAME] .Run packings in the container, running:
docker run -v ~/.aws:/root/.aws -p 80:80 [CONTAINER-NAME]Try hitting the test endpoint on the server, by navigating to
http://0.0.0.0:80/helloin your browser.Try running a packing on the server, install and run CellPACK Studio locally, with the
SUBMIT_PACKING_ECSconstant pointing to your local Docker instance