Skip to content
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

Create final build stage with just combined providers file #9

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3.12-alpine AS builder
RUN apk add --no-cache make
RUN apk add --no-cache make jq
WORKDIR /opt
RUN pip install uv
RUN uv venv
Expand All @@ -9,3 +9,8 @@ WORKDIR /app
COPY Makefile schema.yaml ./
COPY src src
RUN source /opt/.venv/bin/activate && make all

FROM alpine AS final

WORKDIR /app
COPY --from=builder /app/combined.yaml .
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ validate: $(ENTRIES) # Validate each entry in `./src/instances` against the sche
entry_id=$$(yq -r '.id' $$file)
if [ "$$file_id" != "$$entry_id" ]; then
echo " ✗ $$file_id != $$entry_id (entry ID and file name do not match)"
errored=true
fi;
output=$$(linkml-validate -s schema.yaml $$file 2>&1); status=$$?
if [ $$status -ne 0 ]; then
Expand Down