Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
/ blog-docker Public archive

Git and Markdown powered, containerised blog experiment

Notifications You must be signed in to change notification settings

clux/blog-docker

Repository files navigation

blog

build status docker pulls docker image info docker tag

Dockerised rust blog serving content from a directory of markdown posts.

Deploying

Pull docker image and run:

docker pull clux/blog
docker run -p 8000:80 -t --rm clux/blog

Once the container is running, open http://0.0.0.0:8000/ in your web browser.

The production build of this blog is entirely self-contained (FROM scratch - statically linked using muslrust), and uses no database.

Developing

Clone this repo, the dependent post repo, then build and link.

git clone [email protected]:clux/blog.git && cd blog
git clone [email protected]:clux/posts.git
rustup override set $(cat .rustup)
cargo build
cargo run

Iterate and verify:

cargo run
cargo fmt
cargo test
cargo doc

Check that the docker version works:

make build
make run

About

Git and Markdown powered, containerised blog experiment

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •