From 6c94353afd5af6807d184f05b54d71fd78601daf Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Tue, 1 Aug 2023 11:09:22 -0400 Subject: [PATCH] add py11 ci dockerfile Signed-off-by: Niels Bantilan --- .github/workflows/build.yml | 2 +- ci/{py37 => py311}/Dockerfile | 2 +- tests/integration/test_bentoml.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename ci/{py37 => py311}/Dockerfile (95%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f937ce8..197cf6f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,7 +56,7 @@ jobs: - name: Setup Flyte Sandbox if: ${{ matrix.test-dir == 'integration' }} run: | - flytectl sandbox start --source . + flytectl demo start flytectl config init - name: Pytest run: | diff --git a/ci/py37/Dockerfile b/ci/py311/Dockerfile similarity index 95% rename from ci/py37/Dockerfile rename to ci/py311/Dockerfile index 3045d31..d8a7613 100644 --- a/ci/py37/Dockerfile +++ b/ci/py311/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.7-slim-buster +FROM python:3.11-slim-buster WORKDIR /root ENV VENV /opt/venv diff --git a/tests/integration/test_bentoml.py b/tests/integration/test_bentoml.py index 4ae92a1..0df773c 100644 --- a/tests/integration/test_bentoml.py +++ b/tests/integration/test_bentoml.py @@ -40,7 +40,7 @@ def test_bentoml_build_containerize(): # containerize the bento with docker build_tag = success_match.group(1) - subprocess.run(["bentoml", "containerize", "--load", build_tag]) + subprocess.run(["bentoml", "containerize", "--opt", "load", build_tag]) client = docker.from_env() bento_image = None