Skip to content

Commit

Permalink
Use Ubuntu 24.04 and Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-urdin committed Oct 9, 2024
1 parent 6ffe5fd commit 2dadc91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/pifpaf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env:
- py310
- py39
- py311
- py312
- pep8
- build
steps:
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC

Expand All @@ -11,7 +11,7 @@ RUN apt-get update -y && apt-get install -qy gnupg software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get -qq update -y \
&& apt-get install -y mysql-server redis-server zookeeper nodejs npm ceph librados-dev \
python3 python3-dev python3-pip python3.9 python3.9-dev \
python3 python3-dev python3-pip python3-virtualenv python3.9 python3.9-dev python3.11 python3.11-dev \
gcc liberasurecode-dev liberasurecode1 postgresql libpq-dev python3-rados git wget memcached \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -30,10 +30,11 @@ RUN wget https://github.com/etcd-io/etcd/releases/download/v${ETCD_VERSION}/etcd
&& ln -s /opt/etcd-v${ETCD_VERSION}-linux-amd64/etcd /usr/local/bin/etcd \
&& ln -s /opt/etcd-v${ETCD_VERSION}-linux-amd64/etcdctl /usr/local/bin/etcdctl

RUN pip install -U tox

RUN useradd -ms /bin/bash pifpaf
USER pifpaf
RUN mkdir /home/pifpaf/tmpxattr
ENV TMP_FOR_XATTR=/home/pifpaf/tmpxattr
RUN python3 -m virtualenv /home/pifpaf/venv
ENV PATH="/home/pifpaf/venv/bin:$PATH"
RUN pip install tox
WORKDIR /home/pifpaf/pifpaf

0 comments on commit 2dadc91

Please sign in to comment.