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

Deploy to staging (and production) with containers #23

Merged
merged 3 commits into from
Nov 8, 2019

Conversation

tahb
Copy link
Contributor

@tahb tahb commented Nov 7, 2019

Changes in this PR

  • automatic container deployment on staging when merges to develop
  • automatic container deployment to production when merges to master - this was done to help facilitate testing as production wasn't being used
  • fix Heroku container deployment problem. Containers would be built successfully but then fail during the release phase due to some low level compiler errors similar to this. On investigation we tracked down a commit that added standard.rb in our rails-template, this change bumped the version of the sass compiler to 2.2.1. When reverting this change the release then succeeds so to fix the problem we lock sassc to the minor version 2.0.x until they have a fix in place.

Currently this branch has been force pushed to master and can be reviewed at the URL to verify the assets are still compiled correctly and within Travis's build job to verify containers were deployed against the expected Git SHA: 677a310be6ca3858fa32462b23fd800026e81683.

Next steps

  • readd master branch protections via GitHub

tahb and others added 3 commits November 7, 2019 14:40
* During Heroku deploys we can build a new container successfully, but the release phase fails with a seg fault with similar output to sass/sassc-ruby#133
* After a lot of cross referencing between this app and a recent working example of Heroku containers (https://github.com/LBHackney-IT/report-a-defect) it worked until Standard.rb was added and bumped this gem. Setting it backwards until a new version can be made fixed the issue.
* Tests run, including standard. And the page is styled correctly with it's assets precompiled. There doesn't _look_ to be a negative impact of removing reverting minor update.
Along with this, we will use `heroku stack:set container` to tell Heroku to
use Docker for this app
@tahb tahb requested a review from lozette November 7, 2019 15:08
Copy link

@lozette lozette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for tracking this down 🙏

@tahb tahb merged commit c146c65 into develop Nov 8, 2019
@tahb tahb deleted the feature/45-deploy-to-staging-with-containers-2 branch November 8, 2019 09:51
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

Successfully merging this pull request may close these issues.

2 participants