Skip to content

Prod docker images#314

Merged
nickbeaird merged 5 commits intohackforla:developmentfrom
nickbeaird:prod_docker_images
Oct 4, 2020
Merged

Prod docker images#314
nickbeaird merged 5 commits intohackforla:developmentfrom
nickbeaird:prod_docker_images

Conversation

@nickbeaird
Copy link
Contributor

Overview: Update docker containers to be configurable for a CICD pipeline. The container setup with docker-compose works for local development purposes, but is not the most amenable for a CICD pipeline. The changes in this PR setup a multi-stage docker build to make for smaller images to be used in a pipeline, and also adds in docker start commands for each container to be used in isolation.

Acceptance:
[ ] The development containers work for a local development environment.
[ ] The containers can be run in isolation.

  • client
    -> cd client
    -> docker build -t CONTAINER_TAG --target client-production -f Dockerfile.client .
    -> docker run --rm -it --name CONTAINER_NAME -p DESIRED_PORT:3000 CONTAINER_TAG

@nickbeaird nickbeaird linked an issue Oct 4, 2020 that may be closed by this pull request
@nickbeaird nickbeaird merged commit a49dff0 into hackforla:development Oct 4, 2020
@nickbeaird nickbeaird deleted the prod_docker_images branch October 4, 2020 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dockerize application

2 participants