💾 Archived View for gemini.leafstorm.org › en › computer › capsule-code › agate-fly › Justfile captured on 2023-04-19 at 22:31:56.

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

set windows-powershell := true

hostname := "localhost"
image_tag := "leafstorm-capsule:latest"
here := justfile_directory()

# build the container
build:
    docker build -t {{image_tag}} "{{here}}"

# run the server in the foreground
run: build
    -docker run -it --rm -p 127.0.0.1:1965:1965 --env-file ".certificates/{{hostname}}" {{image_tag}}

# run the server in the foreground... with live updates!
live: build
    -docker run -it --rm -p 127.0.0.1:1965:1965 --env-file ".certificates/{{hostname}}" -v "{{here}}/content:/srv/gemini" {{image_tag}}

# update code in capsule-code
update-code:
    cp Dockerfile content/en/computer/capsule-code/agate-fly/
    cp Justfile content/en/computer/capsule-code/agate-fly/
    cp fly.toml content/en/computer/capsule-code/agate-fly/
    cp agate-launcher.sh content/en/computer/capsule-code/agate-fly/