diff --git a/actions/build_deploy_python_executable/action.yml b/actions/build_deploy_python_executable/action.yml index 5fe88957..418f84d7 100644 --- a/actions/build_deploy_python_executable/action.yml +++ b/actions/build_deploy_python_executable/action.yml @@ -5,9 +5,9 @@ inputs: description: 'Path to dagster_cloud.yaml' required: true python_version: - description: 'Python version string, major.minor only, eg "3.8"' + description: 'Python version string, major.minor only, eg "3.11"' required: false - default: '3.8' + default: '3.11' deployment: required: false description: "The deployment to push to, defaults to 'prod'. Ignored for pull requests where the branch deployment is used." @@ -47,12 +47,12 @@ runs: run: echo "FLAG_DEPS_CACHE_TO=--deps-cache-to=${{ github.repository }}/${{ github.ref_name }}" >> $GITHUB_ENV shell: bash - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: "3.8" + python-version: "3.11" - - if: ${{ inputs.python_version != '3.8' }} + - if: ${{ inputs.python_version != '3.11' }} name: Set up Python ${{ inputs.python_version }} for target uses: actions/setup-python@v4 with: diff --git a/gitlab/serverless-legacy-ci.yml b/gitlab/serverless-legacy-ci.yml index 7746391d..b379079a 100644 --- a/gitlab/serverless-legacy-ci.yml +++ b/gitlab/serverless-legacy-ci.yml @@ -40,7 +40,7 @@ build-image: before_script: - echo $AWS_ECR_PASSWORD | docker login --username $AWS_ECR_USERNAME --password-stdin $REGISTRY_URL script: - - echo "FROM python:3.8-slim" > $DAGSTER_CLOUD_LOCATION_DIR/Dockerfile + - echo "FROM python:3.11-slim" > $DAGSTER_CLOUD_LOCATION_DIR/Dockerfile - cat Dockerfile.template >> $DAGSTER_CLOUD_LOCATION_DIR/Dockerfile - docker build $DAGSTER_CLOUD_LOCATION_DIR -t $REGISTRY_URL:prod-$DAGSTER_CLOUD_LOCATION_NAME-$CI_COMMIT_SHA - docker push $REGISTRY_URL:prod-$DAGSTER_CLOUD_LOCATION_NAME-$CI_COMMIT_SHA diff --git a/sample-repo/Dockerfile b/sample-repo/Dockerfile index 6eafdad5..3a491f7b 100644 --- a/sample-repo/Dockerfile +++ b/sample-repo/Dockerfile @@ -1,8 +1,8 @@ -FROM python:3.8-slim +FROM python:3.11-slim COPY requirements.txt /requirements.txt RUN pip install -r /requirements.txt WORKDIR /opt/dagster/app -COPY repo.py /opt/dagster/app \ No newline at end of file +COPY repo.py /opt/dagster/app diff --git a/src/Dockerfile b/src/Dockerfile index 6dd807cb..a7fda74c 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=linux/amd64 python:3.8.16-slim +FROM --platform=linux/amd64 python:3.11-slim # Install deps RUN apt update && apt install git -y @@ -34,4 +34,4 @@ COPY src/get_branch_deployment.sh /get_branch_deployment.sh COPY src/gitlab_action gitlab_action # Use the venv python as the command -CMD venv-dagster-cloud/bin/python3 \ No newline at end of file +CMD venv-dagster-cloud/bin/python3 diff --git a/src/Dockerfile.template b/src/Dockerfile.template index 9346fc3b..f045a873 100644 --- a/src/Dockerfile.template +++ b/src/Dockerfile.template @@ -1,5 +1,5 @@ -# base image is templated in (default: python:3.8-slim) +# base image is templated in (default: python:3.11-slim) # Run the custom dagster cloud pre install script if available COPY *dagster_cloud_pre_install.sh *setup.py *requirements.txt / diff --git a/src/copy_template.sh b/src/copy_template.sh index e8583bd5..04042976 100755 --- a/src/copy_template.sh +++ b/src/copy_template.sh @@ -2,9 +2,9 @@ if [ -z $CUSTOM_BASE_IMAGE_ALLOWED ] || [ -z $INPUT_BASE_IMAGE ]; then if [ ! -z $INPUT_BASE_IMAGE ]; then - echo "Custom base images are not enabled for this organization, defaulting to python:3.8-slim." + echo "Custom base images are not enabled for this organization, defaulting to python:3.11-slim." fi - echo "FROM python:3.8-slim" > ${INPUT_TARGET_DIRECTORY}/Dockerfile + echo "FROM python:3.11-slim" > ${INPUT_TARGET_DIRECTORY}/Dockerfile else echo "FROM ${INPUT_BASE_IMAGE}" > ${INPUT_TARGET_DIRECTORY}/Dockerfile fi