Commit Graph

237 Commits

Author SHA1 Message Date
Collin J. Doering df02a2a62d
README.org: Add droneci badge and adjust title a last time
Note: there is a bug in gitea rendering of org-mode files which results in additional space
at the top of the document.
2021-11-26 08:07:36 -05:00
Collin J. Doering a1dbf95c49
.drone.yml: Fix reference to renamed file blog-rekahsoft-ca.scm -> guix.scm 2021-11-26 01:51:31 -05:00
Collin J. Doering b40ff4f4ad
README.org: Fix title spacing 2021-11-26 01:46:49 -05:00
Collin J. Doering 2f3d052cd6
README.org: Fix title spacing 2021-11-26 01:41:54 -05:00
Collin J. Doering 7d679dd94b
README.org: Add more known issues and fix title spacing 2021-11-26 01:39:46 -05:00
Collin J. Doering a15def12bc
Replace README.md with README.org 2021-11-25 22:56:24 -05:00
Collin J. Doering d3ae74879b
Move blog-rekahsoft-ca.scm -> guix.scm and update references 2021-11-25 21:21:36 -05:00
Collin J. Doering b22b7e04b4
Fix bug where are javascript files were incorrectly processed
The compressCssCompiler has been used for javascript for a long time for this website.
Despite this not being a wise decision, it worked up until some version of Hakyll. I should
minify the javascript as part of the site building process, but for now will simply copy the
javascript files as is.
2021-11-25 21:17:29 -05:00
Collin J. Doering 2620a711fb
Update jquery from v1.11.2 -> v1.12.3 2021-11-25 21:16:18 -05:00
Collin J. Doering 06e473583a
image-src: Add inkscape svg's that were used to build site graphics 2021-11-25 14:46:18 -05:00
Collin J. Doering b0cb08f624
Move ghc-* packages to the rekahsoft-guix channel
* channels.scm: Update rekahsoft-guix channel
* blog-rekahsoft-ca.scm: Removed ghc-* packages that are now part of rekahsoft-guix channel;
                         these ghc-* packages can be contributed upstream to guix.
2021-11-25 11:49:45 -05:00
Collin J. Doering f691f99210
WIP: Use newly added channel.scm guix channel file for ci 2021-11-24 21:36:10 -05:00
Collin J. Doering 94e74df3be
WIP: guix development workflow 2021-11-23 22:58:24 -05:00
Collin J. Doering 368d1c4880
stack.yaml: Use system ghc 2020-10-05 20:39:59 -04:00
Collin J. Doering 501549942a
.drone.yml: Use fcpo/stack-build docker image 2020-10-05 20:29:58 -04:00
Collin J. Doering 083f859128
.drone.yml: Add simple drone ci configuration 2020-10-04 14:46:10 -04:00
Collin J. Doering a53afcf1bd
.gitignore: Ignore generated plan files 2019-12-15 21:29:44 -05:00
Collin J. Doering f446b27455
stack.yaml.lock: Add stack lock file 2019-12-15 21:29:39 -05:00
Collin J. Doering 6e3e9bf5e1
Update business card photo
* clay/PageComponents.hs: Better fit most images
* images/business-card.png: Replace business card image
2019-12-15 21:21:26 -05:00
Collin J. Doering d9fc946d33
infra/main.tf: Always trigger deployment of static files upon apply 2019-12-15 21:21:06 -05:00
Collin J. Doering 5cd1823faa
posts/mikrotik-hap-ac-openwrt-installation.md: New post 2019-12-15 20:42:43 -05:00
Collin J. Doering 6fb3d3046b
Add AAAA records for native ipv6 reach-ability
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2019-10-26 19:53:06 -04:00
Collin J. Doering a220c1efce Merge branch 'terraform-0.12-upgrade' of rekahsoft/blog-rekahsoft-ca into master 2019-06-14 03:02:50 +00:00
Collin J. Doering 9b779ec31b
Upgrade terraform from 0.11.x to 0.12
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2019-06-13 22:57:31 -04:00
Collin J. Doering 1ee07aab1f
Update terraform providers to the latest version
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2019-06-13 22:53:47 -04:00
Collin J. Doering 9148afaa92 Merge branch '2-update-codebase' of rekahsoft/blog-rekahsoft-ca into master 2018-12-16 03:08:54 +00:00
Collin J. Doering fea601558d
Update .gitignore
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:25 -05:00
Collin J. Doering 6c146bc9c0
Update gpg public key uids
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:23 -05:00
Collin J. Doering 84735e9a7b
Remove test suite and update README.md
The test suite depends on hspec-webdriver, which appears to have issues and is not well
supported. Future plans for the site include using hakyll to generate json that will be
consumed by a frontend vuejs application. This will make selenium testing of the hakyll
become absolute (as well as generation of css using clay).

Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:21 -05:00
Collin J. Doering 44094948cf
Update site script and hookup hakyll static file deploy
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:18 -05:00
Collin J. Doering c053c6a3ed
Use stack to run gencss (clay pre-processed css)
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:16 -05:00
Collin J. Doering 1f7c01b31f
Update README.md deployment section
Additionally, remove the old gitlab-ci badge.

Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-15 21:58:14 -05:00
Collin J. Doering c0498bff65
Initial work blowing the dust off this codebase
This primarily includes updating dependencies, and using stack for sane dependency management.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2018-12-15 21:57:29 -05:00
Collin J. Doering 164503707f Merge branch '4-use-www-domain-instead-of-naked' of rekahsoft/blog-rekahsoft-ca into master 2018-12-08 18:13:45 +00:00
Collin J. Doering e83ccfb521
Use temporary config/credentials files when deploying app
This is primarily useful when testing locally, so that the users aws config/credentials aren't
polluted, and adds little no value otherwise.

Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-08 13:06:21 -05:00
Collin J. Doering ac8d11ca8f
Add versions for null, random, and template providers
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-08 11:37:42 -05:00
Collin J. Doering f911d8bd74
Add staging workspace and corresponding environment
Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-08 11:37:39 -05:00
Collin J. Doering 7116e5e16f
Redirect naked domain to www when enable_naked_domain=false
Adds the variables:

- `enable_naked_domain`

  Whether or not to enable access to the site only via a naked domain.

  When `enable_naked_domain=true`:

  - This corresponds to the previous configuration.

  When `enable_naked_domain=false`:

  - Sets the domain_name to the www version of the domain and adds the naked domain as a
    SAN (Subject Alternative Name) on the ACM certificate
  - Create dns validation records for both the naked domain and www domain
  - Creates a s3 bucket with redirect policy which redirects all requests to the www version
    of the site
  - Creates a cloudfront web distribution with a custom origin of the website bucket
    url (this is required as s3 origins do not handle redirects)

- `subdomain`

  The subdomain to use under the `dns_apex`, eg `<subdomain>.<dns_apex>`. Defaults to empty.
  Remember, `dns_apex` must correspond to a route53 public hosted zone.

Signed-off-by: Collin J. Doering <collin@rekahsoft.ca>
2018-12-08 11:31:44 -05:00
Collin J. Doering 30d39b002f Merge branch '1-migrate-to-terraform' of rekahsoft/blog-rekahsoft-ca into master 2018-07-15 20:22:19 +00:00
Collin J. Doering 186d04041d
Site infrastructure and deployment now managed with terraform
Create a classic static site deployment using cloudfront with a s3 origin. Provision, verify and
utilize a ACM certificate to enable (and force) https for cloudfront.

This assumes that the build resources are available at ./_site as a null_resource is used to
sync it to the s3 origin backing cloudfront. A IAM user and policy is provisioned prior to the
null_resource execution with least privilege access to the s3 bucket.

Note: The required terraform backend resources were manually provisioned.

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2018-07-15 03:01:18 -04:00
Collin J. Doering 81064e68aa
Remove gitlab-ci.yml and discontinue use of gitlab pipelines
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2018-07-13 17:18:08 -04:00
Collin J. Doering a35aa7743b
Remove cloudformation deployment
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2018-07-13 17:17:06 -04:00
Collin J. Doering 364762e223
Cosmetic spacing change in cabal file
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2018-07-13 17:01:09 -04:00
Collin J. Doering f8139b3718
Force reinstalls in docker-container build
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-11-04 22:49:57 -04:00
Collin J. Doering 972ebc793e
Resolve dependency issues after package and ghc 8.2 upgrade
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-11-04 22:45:55 -04:00
Collin J. Doering 1a26f68e09
Add published but uncommited Site updates post
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-11-04 22:28:01 -04:00
Collin J. Doering 842837dbb3
Initial implementation of gitlab-ci pipeline
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-07-08 13:38:09 -04:00
Collin J. Doering 975f6c42ee
Remove jsmin dependency from build process
Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-04-23 22:19:19 -04:00
Collin J. Doering e91eba5dfb
Update deployment to use cloudfront and s3
Bootstrap the environment using:

./site init-env <stack-name> <cf-bucket> <cnames>

- stack-name :: is the stack name used for the infrastructure bootstrap cloudformation template
- cf-bucket :: is the name of the S3 bucket that holds the cloudformation stack that will bootstrap
the environment
- cnames :: is a comma separated list of domains to be used as CNames with this deployment

Note: this can also be run directly with ./init-env.sh

Once the environment has been bootstraped, the site can be deployed using the variables given
in its output.

AWS_DEFAULT_REGION=<region> \
AWS_ACCESS_KEY_ID=<access-key> \
AWS_SECRET_ACCESS_KEY=<secret-key> \
S3_BUCKET=<s3-bucket> \
./site deploy

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-04-23 21:45:27 -04:00
Collin J. Doering 2e3e7c5906 Update to newer base
- Due to some issue with the firefox webdriver plugin, selenium tests are temporarily disabled
  for firefox

Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
2017-03-05 15:36:33 -05:00