-
Notifications
You must be signed in to change notification settings - Fork 1
Update project deployment tooling, add docker-compose development environment #226
Conversation
@CloudNiner could you weigh in on the switch to |
@@ -0,0 +1,75 @@ | |||
resource "aws_cloudfront_distribution" "cdn" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to tear down the old infrastructure once this PR is merged.
029199b
to
0e451ce
Compare
Is there any significant advantage to I'll defer to @flibbertigibbet regarding the karma conf, she was just updating dependencies in #228 so it's probably worth rebasing this against develop once that's merged to ensure you've got the most up to date packages and the testing config here still works. |
The main reasons for using Re: Karma, I'll try testing again after #228 is merged. Thanks! |
👍 to yarn then. |
I built the VM and then ran
It occurs regardless of whether I use the |
Did you build the VM using |
I just rebuilt after pulling down the latest commit via However, I can't hit localhost:4200 from my browser. Unsure if related, but I'm still seeing this yarn warning:
|
I was able to hit localhost:4200, even with the internet connection warning. Did you run |
deployment/terraform/storage.tf
Outdated
# | ||
# S3 resources | ||
# | ||
data "template_file" "read_only_bucket_policy" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that we have parts of this modularized in https://github.com/azavea/terraform-aws-s3-origin.
42c454d
to
faae188
Compare
@tnation14 sorry if you were waiting on me for this, I was able to hit the application after reprovisioning and doing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM once this has been rebased against current develop, tests pass and we validate that the yarn lockfile is up to date.
- Install docker-compose and NTP in the VM - cd to /vagrant on login - Add docker container with Node, NPM, and Karma dev dependencies - scripts/update now installs node dependencies
e407d2f
to
828e0a3
Compare
I'm not super worried about the "no internet" error. We see it in all of the other Yarn + Docker projects, but it doesn't appear to have any significant negative effects. See: yarnpkg/yarn#749 |
- Read-only static site bucket - Logs bucket - CloudFront distribution with S3 origin - DNS entry for CloudFront distribution - Remove s3_website gem
- Add docker-compose.ci.yml, with a terraform 0.9.11 container for deployments - Add STRATA script to deploy terraform changes and upload files to site bucket - Don’t run STRTA scripts in the VM - Make linter output available outside of app container
79d267f
to
840052d
Compare
Overview
This PR brings this project into alignment with our standard setup by updating the deployment tooling to use Terraform and AWS instead of the
s3_website
gem, and replacing the Vagrant development environment with a docker-compose based setup.Notable Changes
npm
package manager withyarn
s3_website
deployment with Terraform/AWS CLIDemo
Optional. Screenshots,curl
examples, etc.Notes
package-lock.json
is exactly the same as yarn.lock. However, I created yarn.lock using the following steps:I was able to get things working by creating a Karma custom launcher that passes
--no-sandbox
to Chomium. The custom launcher overrode the default launcher flags, so I had to include--disable-gpu
,--headless
, and--remote-debugging-port
as well.Testing Instructions
app
VM, ensure the process completes successfully.script/server
, make sure the site is visible at http://localhost:4200Closes #223