Skip to content

Dockerimage based env also now for test#574

Open
LeaSeep wants to merge 14 commits into
developfrom
docker_for_test
Open

Dockerimage based env also now for test#574
LeaSeep wants to merge 14 commits into
developfrom
docker_for_test

Conversation

@LeaSeep

@LeaSeep LeaSeep commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

addresses #571

The app's R environment is shipped now as a Docker image (pauljonasjost/comicsart) built from renv.lock
— no local renv restore needed.

For the github actions now 2 workflows:

  • build-image.yml — rebuilds the image only when the environment changes (renv.lock, Dockerfile, or start.sh), on any branch. It pushes a lock- tag (matched to the lockfile) and a tag on every branch; :latest Docker tag is updated only from main/develop.
  • start_check.yaml — runs on every push. It pulls the image whose lock- matches the current renv.lock (waiting for build-image.yml to finish if the lock just changed), mounts the checked-out app code into it, and smoke-tests that the app starts. - Fast image pull take ~1 minute, then test duration (at the moment just start of the app)

Net effect: change a package → push → the matching image builds and the smoke test runs against it; merging to main/develop publishes that environment as :latest

For Local use and development (to also use the docker-based env) - same image, two modes via MODE:

App mode (default):
docker run --rm -p 3838:3838 pauljonasjost/comicsart:latest
http://localhost:3838/
Development / RStudio mode:
docker run --rm -p 8787:8787 -e MODE=rstudio -e PASSWORD=… -v "$PWD/program":/home/rstudio/project pauljonasjost/comicsart:latest
http://localhost:8787/ (user rstudio)

The latest tag should be inline with what is on develop

@LeaSeep LeaSeep marked this pull request as ready for review July 8, 2026 07:03
@LeaSeep

LeaSeep commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

note that e1071 was is now installed. In the docs you finde how to add packages. Let me know if it works for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant