Src Docker - Tolfix/dmcd GitHub Wiki
The docker dicretory contains everything related to docker.
DockerCompose.ts
contains the following.
Function
: DockerCompose(dir: string)
Paremeters
-
dir
: Expects a string which should be the location where ourdocker-compose.yml
is located at.
Returns: Promise<String>
Description: This function runs docker-compose up -d
on a docker-compose.yml
file.
Paremeters
-
options
: ExpectsICreateDockerCompose
.
Returns: String
Description: This functions creates a docker-compose.yml
string which can be used to create the file.
DockerDown.ts
contains the following.
Function
: DockerRemove(dir: string)
Paremeters
-
dir
: Expects a directory where thedocker-compose.yml
file is located at
Returns: Boolean
Description: This functions removes the container and it volumes.
Pull.ts
contains the following.
Function
: PullImage(dir: string)
Paremeters
-
dir
: The location wheredocker-compose.yml
is located at.
Returns: Boolean
Description: This functions pulls the image of the service the docker-compose.yml
contains.