-
Notifications
You must be signed in to change notification settings - Fork 3
Hyperion
: Prepare service for Artemis integration
#176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
c3c31b9
Add Java gRPC client support and update documentation
FelixTJDietrich 38f9e15
Refactor build.gradle: Remove unnecessary buildscript section and cle…
FelixTJDietrich e5d58b9
Remove build_java_client script and update README and build.gradle fo…
FelixTJDietrich 01906cd
Update hyperion.code-workspace: Adjust folder structure for clarity
FelixTJDietrich 55f2181
Update hyperion.code-workspace: Normalize folder paths for consistency
FelixTJDietrich 07351f4
Update gRPC dependencies and add TLS certificate generation script
FelixTJDietrich 6d367b7
Remove README.md for the Java gRPC client
FelixTJDietrich b59c74a
Remove unused project_meta module and clean up imports in main.py
FelixTJDietrich 42207cb
Update hyperion/compose.yaml
FelixTJDietrich d8a4250
Update hyperion/app/main.py
FelixTJDietrich e14917f
Add 'bin/' to .gitignore to exclude build artifacts
FelixTJDietrich 8c0db02
Add GitHub Actions workflow for publishing Hyperion Java client and u…
FelixTJDietrich 717660d
Update Java distribution in GitHub Actions workflow to 'temurin'
FelixTJDietrich f26172a
Refactor GitHub Actions workflow for Hyperion Java Client: update job…
FelixTJDietrich ffd63e7
Enhance snapshot versioning in GitHub Actions workflow: build meaning…
FelixTJDietrich 0580bf2
Add permissions for GitHub Actions workflow to enable package publishing
FelixTJDietrich be85042
Remove Gradle wrapper validation step from GitHub Actions workflow
FelixTJDietrich b3a1f32
Improve snapshot versioning by handling branch names for pull request…
FelixTJDietrich d790948
Add Review and Refine functionality for programming exercises
FelixTJDietrich 6f0bf6f
Implement Review and Refine functionality with inconsistency checking…
FelixTJDietrich e333bb9
oops
FelixTJDietrich 9554d13
feat: migrate Hyperion Java client from Gradle to Maven
FelixTJDietrich 40c13d6
feat: enhance publishing logic for snapshots and releases in CI/CD wo…
FelixTJDietrich 7159cb4
fix: update groupId to include 'edutelligence' for proper namespace
FelixTJDietrich 476989a
fix: update groupId to include 'edutelligence' in dependency declarat…
FelixTJDietrich 512ff54
fix: update groupId to include 'edutelligence' in dependency declarat…
FelixTJDietrich ac6bcab
remove java client
FelixTJDietrich 5a5cbea
black and flake8
FelixTJDietrich 438e6c8
update readme
FelixTJDietrich b760d78
remove empty init file for scripts package
FelixTJDietrich f3270d5
Merge branch 'main' into hyperion/artemis-integration
FelixTJDietrich eb06a8e
Merge branches 'hyperion/artemis-integration' and 'hyperion/artemis-i…
FelixTJDietrich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,31 +1,52 @@ | ||
FROM python:3.13-alpine | ||
|
||
RUN apk update && \ | ||
apk add --no-cache gcc musl-dev postgresql-dev rust cargo curl | ||
|
||
FROM python:3.13-slim | ||
|
||
# Install minimal dependencies and grpc_health_probe | ||
RUN apt-get update && apt-get install -y \ | ||
gcc \ | ||
libpq-dev \ | ||
curl \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install grpc_health_probe for proper gRPC health checking | ||
ARG GRPC_HEALTH_PROBE_VERSION=v0.4.25 | ||
RUN wget -qO/bin/grpc_health_probe \ | ||
https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 \ | ||
&& chmod +x /bin/grpc_health_probe | ||
|
||
# Install poetry | ||
RUN pip install poetry==2.1.1 | ||
|
||
WORKDIR /app | ||
|
||
# Create the proper directory structure | ||
RUN mkdir -p /app/hyperion /app/shared | ||
# Create the directory structure to match pyproject.toml expectations | ||
RUN mkdir -p hyperion | ||
|
||
# Copy shared library into the right location | ||
COPY shared/ /app/shared/ | ||
# Copy shared library to parent directory (for path dependency) | ||
COPY shared/ ./shared/ | ||
|
||
# Copy hyperion files | ||
COPY hyperion/pyproject.toml hyperion/poetry.lock /app/hyperion/ | ||
COPY hyperion/app/ /app/hyperion/app/ | ||
COPY hyperion/playground/ /app/hyperion/playground/ | ||
# Copy hyperion files to hyperion subdirectory | ||
COPY hyperion/pyproject.toml ./hyperion/ | ||
COPY hyperion/app/ ./hyperion/app/ | ||
|
||
# Set working directory to hyperion folder where the poetry config is | ||
# Change to hyperion directory for poetry install | ||
WORKDIR /app/hyperion | ||
|
||
# Install dependencies but don't try to install the current project | ||
RUN poetry install --no-root | ||
# Install dependencies (without lock file to avoid path issues) | ||
RUN poetry config virtualenvs.create false && \ | ||
poetry install --only=main --no-root | ||
|
||
# Create non-root user | ||
RUN useradd --create-home --shell /bin/bash hyperion | ||
|
||
# Create certificates directory | ||
RUN mkdir -p /certs && chown hyperion:hyperion /certs | ||
|
||
# Switch to non-root user | ||
USER hyperion | ||
|
||
# Expose the gRPC port | ||
EXPOSE 50051 | ||
|
||
# Use our custom entrypoint script | ||
ENTRYPOINT ["poetry", "run", "hyperion"] | ||
# Start the application | ||
ENTRYPOINT ["python", "-c", "from app.main import serve; serve()"] |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.