njtimgeorge / njtimgeorge.github.io

Open Source version of the GitHub Pages theme, now for Jekyll. Demo at http://pietro.menna.net.br/jekyll-architect-theme/
0 stars 0 forks source link

create AWS workspace to build jekyll site #7

Closed njtimgeorge closed 3 years ago

njtimgeorge commented 3 years ago

s3 bucket filesystem

ruby. Bundle?

jekyll install

njtimgeorge commented 3 years ago

Create a standard Amazon Linux workspace. This will be left as an exercise to the reader.

If you're on a budget, watch the directory service.

Set up github credentials: new secret key.

AWS on Amazon linux: https://www.aarondodd.com/aws/amazon/linux/jekyll/2019/02/17/running_jekyll_on_amazon_linux_2.html

amazon-linux-extras list sudo amazon-linux-extras install ruby2.6 sudo gem install jekyll bundler

Get ruby

Get jekyll

AWS workspace is expensive, complicated.

How about a Ruby docker container for all of the jekyll activities? Or even the jekyll container. Set up git. Set up AWS CLI. Etc

njtimgeorge commented 3 years ago

New strategy: download latest jekyll docker container and build in the container. Set up AWS CLI and github from within container.

make (build) make serve make deploy: deploy to S3 bucket as a zip

njtimgeorge commented 3 years ago

OK, new plan:

1) Console: create release bucket 2) Util: build 3) Util deploy.sh (deploy as zip?) 4) Console: create public bucket 5) CLoudshell: unzip and deploy

njtimgeorge commented 3 years ago

The workspace was too much administration, too heavyweight, and too expensive when considering recurring directory services charges. Got the job done anyway.