Go to file
CrimsonTome 3e797fa3c5 update dockerfile in readme 2022-09-04 15:31:01 +00:00
.github Create docker-publish.yml 2022-08-28 20:36:36 +01:00
.idea/.idea.crimsontome-blog.dir/.idea keybase 2022-03-24 00:25:36 +00:00
_data update feed 2022-07-02 11:22:28 +00:00
_includes Update base.njk 2021-11-18 00:21:32 +00:00
about update about 2022-07-17 20:57:49 +00:00
css cleanup some css 2022-09-04 14:29:25 +00:00
feed Initial commit 2021-10-15 22:30:12 +01:00
img finish vps update post 2022-09-04 03:12:58 +00:00
posts rm redundant packages and fix code blocks in previous posts 2022-09-04 14:41:13 +00:00
.editorconfig Initial commit 2021-10-15 22:30:12 +01:00
.eleventy.js actually fixed? 2021-11-17 19:04:26 +00:00
.eleventyignore Initial commit 2021-10-15 22:30:12 +01:00
.gitignore update .gitignore 2022-09-04 14:57:08 +00:00
404.md update 404 2021-10-31 00:26:39 +01:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-10-21 05:50:07 +01:00
Dockerfile bump node version in dockerfile to allow 11ty to run 2022-09-04 15:24:37 +00:00
LICENSE Initial commit 2021-10-15 22:30:12 +01:00
README.md update dockerfile in readme 2022-09-04 15:31:01 +00:00
archive.njk Initial commit 2021-10-15 22:30:12 +01:00
index.njk typos 2022-02-12 15:38:38 +00:00
package.json bump 11ty version from 0.12.1 to 1.0.2 2022-09-04 15:11:59 +00:00
page-list.njk Initial commit 2021-10-15 22:30:12 +01:00
robots.txt Update robots.txt 2022-04-16 01:34:30 +01:00
sitemap.xml.njk Initial commit 2021-10-15 22:30:12 +01:00
tags-list.njk Initial commit 2021-10-15 22:30:12 +01:00
tags.njk Initial commit 2021-10-15 22:30:12 +01:00

README.md

CrimsonTome's Blog

My personal blog documenting my journey into open-source development alongside other things.
Created with 11ty, hosted in a docker container on my VPS

CI Publish Docker image Repo Size Commit Activity /month Last git commit

Development

  • clone the repo
  • run npm i to install dependencies
  • npm run serve
  • make some changes and watch them update in the browser

Building

Node

  • run npm run build

Docker

The site can also be built and ran inside a docker container when you are in the base of the repo:

  • sudo docker build -t crimsontome-blog .
  • sudo docker run -itd -p unused-port-number:80 crimsontome-blog
  • visit localhost:port or ip:port if you are hosting on a VPS and the site should be available to view

Dockerfile

FROM node:18-alpine3.15 as npmpackages
WORKDIR /app
COPY package.json .
RUN npm install

FROM node:18-alpine3.15 as builder
WORKDIR /app
COPY --from=npmpackages /app /app
COPY . .
RUN npm run build

FROM nginx:1.17.10-alpine
RUN rm -r /usr/share/nginx/html/
COPY --from=builder /app/_site/ /usr/share/nginx/html/

Ouroboros

Using a tool like Ouroboros, you can automatically update containers without the need for restarts. This site is setup with that so you can (instead of building it yourself like above) with sudo docker run -d -p unused-port-number:80 crimsontome427:crimsontome-blog

Contributing

See CONTRIBUTING.md for information on adding to this repository.

License

crimsontome-blog is released under the MIT License. The full license text is included in the LICENSE file in this repository. Tldr legal have a great summary of the license if you're interested.