Open MickinSahni opened 7 years ago
@paulsmith I have added some subtasks here for soapbox to provision a static application. Let me know if anything is missing.
@malford Looks good. So there would be an a
and a b
S3 bucket for each app, at any time one or the other is blue or green? Makes sense to me.
One implementation thought: user's supplied Dockerfile should encapsulate building their site, and when we do a docker run
, we pass in a volume (using the --mount
flag) that is the target root of what the site generator should output to. In other words, the user should set up there site generator to output to a known directory local in the container (like /site
, perhaps -- maybe inject as a env var $SITE_OUTPUT_DIR
or something), that is mapped to the directory controlled by the Soapbox building process.
Problem: As is the case with dynamic apps, owners of static apps require hosting solutions so that they may build and deploy their apps.
*From roadmap:* Initial approach: repo + a dockerfile (that includes all depdencies e.g. jekyll, hugo) Tasks: creates cloudfront distribution + S3 bucket when creating an app; run docker, copy to s3, invalidate cache
Application Provision
CreateApplicaiton
has a function that run static terraformApplication Deploy