Skip to content

Commit

Permalink
Remove intermediate docker images with DOCKER_BUILDKIT=1 (airbytehq#9408
Browse files Browse the repository at this point in the history
)

* DOCKER_BUILDKIT=1 added

Signed-off-by: Sergey Chvalyuk <[email protected]>
  • Loading branch information
grubberr authored Jan 12, 2022
1 parent 80666cf commit 1581512
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY pytest.ini setup.py ./
COPY source_acceptance_test ./source_acceptance_test
RUN pip install .

LABEL io.airbyte.version=0.1.41
LABEL io.airbyte.version=0.1.42
LABEL io.airbyte.name=airbyte/source-acceptance-test

ENTRYPOINT ["python", "-m", "pytest", "-p", "source_acceptance_test.plugin", "-r", "fEsx"]
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_docker_runner(command, wait_timeout, expected_count):
assert set(lines) == set(["something\n"])
assert len(lines) == expected_count

for container in client.containers.list(all=True):
for container in client.containers.list(all=True, ignore_removed=True):
assert container.id != new_container.id, "Container should be removed after reading"


Expand Down
2 changes: 2 additions & 0 deletions tools/bin/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ DOCKERFILE="$3"
TAGGED_IMAGE="$4"
ID_FILE="$5"
FOLLOW_SYMLINKS="$6"
# https://docs.docker.com/develop/develop-images/build_enhancements/
export DOCKER_BUILDKIT=1

cd "$ROOT_DIR"
. tools/lib/lib.sh
Expand Down

0 comments on commit 1581512

Please sign in to comment.