-
Notifications
You must be signed in to change notification settings - Fork 30
feat: add manifest server #719
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 all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
9a162b2
feat: manifest runner service
pedroslopez 12f83d7
add missing
pedroslopez 12bb1b3
undo
pedroslopez 04df0a3
cli structure, openapi
pedroslopez 2d589ca
move tests over
pedroslopez 8314ca4
fewer deps
pedroslopez 0f5dc82
add dockerfile
pedroslopez 5bed676
auth, readme
pedroslopez 4d1c03a
exc
pedroslopez 5d81b46
add check/discover
pedroslopez 039cbbf
test, format
pedroslopez 9eca3a2
renames
pedroslopez 41a6abf
mypy
pedroslopez b844342
more mypy
pedroslopez e594212
revert lock
pedroslopez ef43855
lock
pedroslopez 87e97e5
Merge branch 'main' into pedro/add-manifest-runner
pedroslopez 65e53b4
fix for update
pedroslopez b2d6842
renames
pedroslopez c149b89
add to action
pedroslopez d6558c9
more
pedroslopez f0c7a2b
split jobs
pedroslopez b2da626
Potential fix for code scanning alert no. 35: Workflow does not conta…
pedroslopez 1280582
add custom components node
pedroslopez e2e6081
ensure liimits are set
pedroslopez 6d54a61
fix test
pedroslopez f75ff8e
manifest_runner -> manifest_server
pedroslopez 704da6b
move cli
pedroslopez 323134a
rename publish
pedroslopez c7eb646
pull out reusable tag check action
pedroslopez 487609e
dockerfile docs
pedroslopez 527a676
temp rename
pedroslopez a416994
typed capabilities
pedroslopez 902a7d3
fix dockerfile
pedroslopez d5695c6
fix test
pedroslopez 23b69db
add readme for pdoc
pedroslopez 3d02a12
permissions
pedroslopez 7f72f52
trace message handling
pedroslopez 5093a2e
Merge branch 'main' into pedro/add-manifest-runner
pedroslopez cde7fe0
concurrent cdk
pedroslopez 0bd0c44
format
pedroslopez 3bd4306
poe task
pedroslopez c6b1ffe
fix typing, tests
pedroslopez f8aa728
ai overlord review suggestions
pedroslopez 07abfda
ai fx
pedroslopez df890ed
deepcopy
pedroslopez b3b0787
deepcopy / dic ttype
pedroslopez 0ec16ed
StreamReadResponse naming
pedroslopez 24c2184
move to EntrypointOutput
pedroslopez 434c689
Merge branch 'main' into pedro/add-manifest-runner
pedroslopez c403e34
update type
pedroslopez 2982dca
docstring
pedroslopez c691373
remove extra keys
pedroslopez caa8b15
rename workflow
pedroslopez 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Check Docker Tag Exists' | ||
description: 'Check if a Docker tag exists on DockerHub to prevent overwrites' | ||
inputs: | ||
image_name: | ||
description: 'Docker image name (e.g. airbyte/source-declarative-manifest)' | ||
required: true | ||
tag: | ||
description: 'Docker tag to check' | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: "Check for existing tag (${{ inputs.image_name }}:${{ inputs.tag }})" | ||
shell: bash | ||
run: | | ||
image="${{ inputs.image_name }}" | ||
tag_input="${{ inputs.tag }}" | ||
if [ -z "$image" ] || [ -z "$tag_input" ]; then | ||
echo "Error: image_name and tag are required." | ||
exit 1 | ||
fi | ||
tag="${image}:${tag_input}" | ||
echo "Checking if tag '$tag' exists on DockerHub..." | ||
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then | ||
echo "The tag '$tag' already exists on DockerHub. Skipping publish to prevent overwrite." | ||
exit 1 | ||
fi | ||
echo "No existing tag '$tag' found. Proceeding with publish." |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Dockerfile for the Airbyte Manifest Server. | ||
# | ||
# This Dockerfile should be built from the root of the repository. | ||
# | ||
# Example: | ||
# docker build -f airbyte_cdk/manifest_server/Dockerfile -t airbyte/manifest-server . | ||
|
||
FROM python:3.12-slim-bookworm | ||
|
||
# Install git (needed for dynamic versioning) and poetry | ||
RUN apt-get update && \ | ||
apt-get install -y git && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install poetry==1.8.3 | ||
|
||
# Configure poetry to not create virtual environments and disable interactive mode | ||
ENV POETRY_NO_INTERACTION=1 \ | ||
POETRY_CACHE_DIR=/tmp/poetry_cache | ||
|
||
WORKDIR /app | ||
|
||
# Copy poetry files (build from project root) | ||
COPY pyproject.toml poetry.lock ./ | ||
|
||
# Copy the project source code (needed for dynamic versioning) | ||
COPY . /app | ||
|
||
# Install dependencies and package directly to system Python | ||
RUN --mount=type=cache,target=$POETRY_CACHE_DIR \ | ||
poetry config virtualenvs.create false && \ | ||
poetry install --extras manifest-server | ||
|
||
# Create a non-root user and group | ||
RUN groupadd --gid 1000 airbyte && \ | ||
useradd --uid 1000 --gid airbyte --shell /bin/bash --create-home airbyte | ||
|
||
# Change ownership | ||
RUN chown -R airbyte:airbyte /app | ||
|
||
# Run app as non-root user | ||
USER airbyte:airbyte | ||
|
||
EXPOSE 8080 | ||
|
||
CMD ["uvicorn", "airbyte_cdk.manifest_server.app:app", "--host", "0.0.0.0", "--port", "8080"] |
Oops, something went wrong.
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.