Skip to content

Commit

Permalink
Upgrade to Ubuntu 22.04 and Python 3.10 (PP-506) (#1462)
Browse files Browse the repository at this point in the history
* Upgrade to Ubuntu 22.04 and Python 3.10.
* Increase timeout for ARM images.
  • Loading branch information
jonathangreen authored Oct 18, 2023
1 parent f79db78 commit 9463ca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.baseimage
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#
# Main repo for this image is here:
# https://github.com/phusion/baseimage-docker
FROM phusion/baseimage:focal-1.2.0 As baseimage
FROM phusion/baseimage:jammy-1.0.1 As baseimage

# Make sure base system is up to date
RUN apt-get update && \
apt-get upgrade -y --no-install-recommends -o Dpkg::Options::="--force-confold" && \
/bd_build/cleanup.sh

ARG POETRY_VERSION=1.5.1
ARG POETRY_VERSION=1.6.1

# Install required packages including python, pip, compiliers and libraries needed
# to build the python wheels we need and poetry.
Expand Down Expand Up @@ -61,7 +61,7 @@ COPY --chown=simplified:simplified poetry.lock pyproject.toml /var/www/circulati
# to work from which speeds up the final image build.
RUN python3 -m venv env && \
SIMPLIFIED_ENVIRONMENT=/var/www/circulation/environment.sh && \
echo "if [[ -f $SIMPLIFIED_ENVIRONMENT ]]; then source $SIMPLIFIED_ENVIRONMENT; fi" >> env/bin/activate && \
echo "if [ -f $SIMPLIFIED_ENVIRONMENT ]; then source $SIMPLIFIED_ENVIRONMENT; fi" >> env/bin/activate && \
. env/bin/activate && \
pip install --upgrade pip && \
poetry install --only main,pg --sync && \
Expand Down
2 changes: 1 addition & 1 deletion docker/ci/test_webapp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ check_service_status "$container" /etc/service/nginx
check_service_status "$container" /etc/service/uwsgi

# Wait for UWSGI to be ready to accept connections.
timeout 120s grep -q 'WSGI app .* ready in [0-9]* seconds' <(docker logs "$container" -f 2>&1)
timeout 240s grep -q 'WSGI app .* ready in [0-9]* seconds' <(docker logs "$container" -f 2>&1)

# Make sure the web server is running.
healthcheck=$(docker exec "$container" curl --write-out "%{http_code}" --silent --output /dev/null http://localhost/healthcheck.html)
Expand Down

0 comments on commit 9463ca0

Please sign in to comment.