forked from dlt-hub/dlt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds tests to build containers, removes psutil
- Loading branch information
Showing
10 changed files
with
210 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -9,5 +9,11 @@ __pycache__ | |
.egg-info | ||
_storage | ||
_test_storage | ||
.vscode | ||
Dockerfile | ||
.md | ||
.md | ||
_secrets | ||
docs | ||
tests | ||
logs | ||
experiments |
This file contains 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,37 @@ | ||
name: test build docker images | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- devel | ||
workflow_dispatch: | ||
|
||
jobs: | ||
get_docs_changes: | ||
uses: ./.github/workflows/get_docs_changes.yml | ||
|
||
run_airflow: | ||
name: Build alpine and airflow images | ||
needs: get_docs_changes | ||
if: needs.get_docs_changes.outputs.changes_outside_docs == 'true' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out | ||
uses: actions/checkout@master | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10.x" | ||
|
||
- name: Install Poetry | ||
uses: snok/install-poetry@v1.3.2 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
- name: Build images | ||
run: make test-build-images |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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,27 @@ | ||
FROM apache/airflow:2.5.2-python3.8 | ||
|
||
# Metadata | ||
LABEL org.label-schema.vendor="dltHub" \ | ||
org.label-schema.url="https://dlthub.com" \ | ||
org.label-schema.name="dlt" \ | ||
org.label-schema.description="**data load tool (dlt)** is a simple, open source Python library that makes data loading easy." | ||
|
||
# prepare dirs to install dlt | ||
RUN mkdir -p /tmp/pydlt | ||
|
||
WORKDIR /tmp/pydlt | ||
|
||
# add build labels and envs | ||
ARG COMMIT_SHA="" | ||
ARG IMAGE_VERSION="" | ||
LABEL commit_sha = ${COMMIT_SHA} | ||
LABEL version=${IMAGE_VERSION} | ||
ENV COMMIT_SHA=${COMMIT_SHA} | ||
ENV IMAGE_VERSION=${IMAGE_VERSION} | ||
|
||
# install exactly the same version of the library we used to build | ||
COPY dist/dlt-${IMAGE_VERSION}.tar.gz . | ||
RUN pip3 install /tmp/pydlt/dlt-${IMAGE_VERSION}.tar.gz[gcp,redshift,duckdb] | ||
|
||
WORKDIR / | ||
RUN rm -r /tmp/pydlt |
This file contains 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 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.