Skip to content

Conversation

@gaurav
Copy link
Member

@gaurav gaurav commented May 7, 2025

Docker images are now the best way to run packages on UF HiPerGator, so this PR adds a Dockerfile and a GitHub Action to generate a Docker package on releases.

@gaurav gaurav marked this pull request as ready for review June 17, 2025 05:57
@gaurav gaurav requested a review from hlapp June 17, 2025 06:19
@hlapp hlapp requested a review from Copilot June 17, 2025 15:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces containerization support by adding a Dockerfile, updating webhook scripts/configs, and creating a GitHub Action to publish the Docker image on releases.

  • Add a multi-stage Dockerfile to build and run JPhyloRef in a container
  • Update webhook start script, hooks configuration, and helper script for container paths and defaults
  • Introduce a GitHub Actions workflow to publish the Docker image on release and refine the Maven CI workflow

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
webhook/start.sh Add shebang, default PORT, and URL prefix
webhook/klados-backend.container New Quadlet unit file for systemd-based container launch
webhook/hooks.json Update execute-command paths, working directory, CORS headers, and base64 decoding
webhook/exec_jphyloref.sh New helper script to uncompress input and invoke JPhyloRef
webhook/README.md Document updated scripts and the new container definition
pom.xml Set <finalName> so the built JAR matches expectations
Dockerfile Add multi-stage build for Maven and runtime image
.github/workflows/maven.yaml Upgrade setup-java action, enable Maven caching, and adjust triggers
.github/workflows/docker.yaml Add release-triggered workflow to build and push Docker image
Comments suppressed due to low confidence (1)

.github/workflows/maven.yaml:7

  • [nitpick] Removing push events means merges and direct commits to main won’t trigger CI. Consider re-adding push (optionally limited to specific branches or tags) to ensure all changes are validated.
on: [pull_request, workflow_dispatch]

gaurav and others added 2 commits June 17, 2025 13:47
Also added documentation and did a bit of cleanup.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
gaurav and others added 2 commits June 17, 2025 13:55
Replace `bash` invocation with an `env` invocation instead.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gaurav gaurav merged commit 2753132 into master Jun 18, 2025
1 check passed
@gaurav gaurav deleted the add-docker branch June 18, 2025 15:13
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.

3 participants