Skip to content

Commit

Permalink
Docker image is now based on Python 3.11 (#6714)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers authored Aug 23, 2023
1 parent a853fd7 commit 22dcdf8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,16 @@ jobs:
grep ${{ env.VERSION }} CHANGELOG.md || { echo "Ensure that the CHANGELOG contains an entry for ${{ env.VERSION }}" ; exit 1; }
- name: Set version number
run: python update_version_from_git.py ${{ env.VERSION }}
- name: Build
- name: Build Python
run: python -m build
- name: Build Docker release
run: |
docker build -t motoserver/moto . --tag moto:${{ env.VERSION }}
- name: Test Docker release
run: |
docker run -p 5000:5000 --name moto motoserver/moto &
TEST_SERVER_MODE=true pytest -sv tests/test_core tests/test_s3
docker stop moto
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand All @@ -46,9 +54,6 @@ jobs:
run: |
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}
- name: Build Docker release
run: |
docker build -t motoserver/moto . --tag moto:${{ env.VERSION }}
# Required to get the correct Digest
# See https://github.com/docker/build-push-action/issues/461
- name: Set up QEMU
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Moto Changelog
==============

4.2.0
------
Docker Digest for 4.2.0: <autopopulateddigest>

General:
The Docker image is now based on Python 3.11 (instead of 3.7)

4.1.15
------
Docker Digest for 4.1.15: _sha256:eb63b1e0cbbd757e4596844e6ac1865660cbf8e358203b79e5404d57de94dd69_
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.7-slim
FROM python:3.11-slim

ADD . /moto/
ENV PYTHONUNBUFFERED 1
Expand Down
2 changes: 1 addition & 1 deletion moto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __exit__(self, *exc: Any) -> None:
# logging.getLogger('boto').setLevel(logging.CRITICAL)

__title__ = "moto"
__version__ = "4.1.16.dev"
__version__ = "4.2.0.dev"


try:
Expand Down

0 comments on commit 22dcdf8

Please sign in to comment.