Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hibernate/awestruct-build-env

Open more actions menu

Awestruct build environment for Hibernate websites

Docker Repository on Quay

Building and running Awestruct-based websites in Docker

The following instructions allow you to build/run Awestruct-based websites such as hibernate.org or in.relation.to within a docker container while still being able to edit your sources locally.

This is not a Docker introduction. At least you will need a running Docker daemon. If you want an intro to Docker, start here

First, go to your local clone of the website:

cd <your locally cloned website>

Then run the container:

docker run --pull always --rm -t -i -u $UID:$GID -p 4242:4242 -v $(pwd):/home/dev/website:rw,Z quay.io/hibernate/awestruct-build-env:latest

Note that, on Linux, you might need to use sudo to execute docker commands. If you want to avoid that have a look here.

Alternatively, with Podman:

podman run --pull always --rm -t -i --userns=keep-id -u $UID:$GID -p 4242:4242 -v $(pwd):/home/dev/website:rw,Z quay.io/hibernate/awestruct-build-env:latest

This will launch a shell from which you can build/run the website.

For example, to serve the website locally:

rake setup
rake clean preview

The website should be accessible at http://localhost:4242.

You can also use this one-liner to run arbitrary commands non-interactively:

docker run --rm=true -t -i -p 4242:4242 --security-opt label:disable -v $(pwd):/home/dev/website quay.io/hibernate/awestruct-build-env:latest "rake setup && rake clean gen[staging]"

Contributing

See CONTRIBUTING.md

About

A container image for building websites using awestruct.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.