You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
ClinicalTrialsDataProcessing
This is used to build tools which process and standardize the data.
More data later.
Outline
Directory Tree
AACT_downloader
Key files index
Background on Docker
Docker uses the following flow
- configuration using
docker-compose.yamlor aDockerfile docker build .to generate an imagedocker run xxxxxxto take the image and create a container.- when the container is created, it starts, running commands as configured in the dockerfile.
- Consequently, the AACT database image when run must initialize the postgres db, then run the initalization details.
- Here is where bind mounts come into play.
Multistage builds
https://docs.docker.com/develop/develop-images/multistage-build/
Basically
Dockerfile vs docker-compose.yaml
A Dockerfile is used to create images.
A docker-compose.yaml is used to automate the deployment of containers.
Types of storage
COPY/ADD (Dockerfile)
In a dockerfile, this adds a file permanently to the image.
This adds files one way to or from the container when initialized.
Volumes (docker-compose.yaml && Dockerfile)
Useable in both docker-compose and Dockerfile's, this creates a permanent storage. It can be maintained by docker or stored in a particular location.
Good for longer term storage such as databases.
Bind mounts (docker-compose.yaml)
Bind mounts are used to make a host filesystem resource available