Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAJOR - Valid Docker image can be altered unexpectedly and break everything #90

Open
franck-boullier opened this issue Feb 15, 2020 · 1 comment

Comments

@franck-boullier
Copy link
Member

The problem:

The current version of the deployment script (.travis.yml) systematically updates the Docker image and uploads it to Dockerhub without any proper tests or validation.

This is true EVERY TIME Travis CI runs:

  • On the master branch for this repo (which is expected) but also,
  • On ANY branch of this repo,
  • On ANY PR in this repo.

Consequence of the problem:

In the following scenario:

  • I create a branch.
  • I update the Dockerfile.
  • The update I did breaks the Docker image and creates errors and bug.
  • I push my new branch to the origin repo on GH (this repo).
  • THEN the Docker image in Dockerhub is automatically updated.
  • ANY update to the DEV. PROD and DEMO environments from that point on will be done using this latest, incorrect, and potentially harmful Docker image.

Solution:

Option 1 (quick fix):

Make sure that the only Docker image that we push on Dockerhub are images that have been tested and validated.

Option 2 (more complex - more robust):

  • create a new tag stable for Docker images on Dockerhub
  • Keep building the DEV environment using the latest Docker image on Dockerhub.
  • Define a release process to update the stable version of the Docker image.
  • Only build the DEMO and PROD environment using the stable image and NOT the latest image.
franck-boullier added a commit that referenced this issue Feb 15, 2020
This also forces a rebuild of the Docker image in Dockerhub to a tried and tested version.

See #90 for more details
@kaihendry
Copy link
Contributor

The deploy script for demo/prod can only deploy a tagged release. So I am not sure about the severity of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants