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

Latest commit

 

History

History
49 lines (37 loc) · 1.32 KB

README.md

File metadata and controls

49 lines (37 loc) · 1.32 KB

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