-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Dockerfile: - Accept HOST_UID as an ARG and set a default value - compose.yaml: - Persist /usr/local/bundle as a volume - Pass HOST_UID to avoid permission issues - Set a default value for HOST_UID if not provided - Update usage comments
- Loading branch information
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
# usage: | ||
# | ||
# docker compose build | ||
# docker compose build --build-arg HOST_UID=$(id -u) | ||
# docker compose run --rm rurema rake -T | ||
# docker compose run --rm rurema rake generate:2.7.0 statichtml:2.7.0 | ||
# open _site/2.7.0/index.html instead of /tmp/html/2.7.0/index.html | ||
# docker compose run --rm rurema rake generate:3.4 statichtml:3.4 | ||
# open _site/3.4/index.html instead of /tmp/html/3.4/index.html | ||
services: | ||
rurema: | ||
build: . | ||
build: | ||
context: . | ||
args: | ||
HOST_UID: ${HOST_UID:-1000} | ||
volumes: | ||
- ..:/workspaces:cached | ||
- "./_site:/tmp/html/" | ||
- "bundle_cache:/usr/local/bundle" | ||
web: | ||
image: nginx | ||
ports: | ||
- "8080:80" | ||
- "8080:80" | ||
volumes: | ||
- "./_site:/usr/share/nginx/html:ro" | ||
- "./_site:/usr/share/nginx/html:ro" | ||
|
||
volumes: | ||
bundle_cache: |