Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f71c2cf
add arm64 builds
martadams89 Nov 7, 2024
0a7de98
Merge branch 'master' into patch-1
martadams89 Nov 8, 2024
a2a902f
Merge branch 'master' into patch-1
martadams89 Nov 12, 2024
da06851
Merge branch 'master' into patch-1
martadams89 Nov 23, 2024
744f078
Merge branch 'master' into patch-1
martadams89 Jan 18, 2025
85d3693
fix: update rye setup dockerfile and workflow
martadams89 Jan 19, 2025
6d7cbc3
make uv compatable
martadams89 Jan 24, 2025
2ae65bc
Merge branch 'master' into patch-1
martadams89 Jan 24, 2025
8ee7f4c
correct uv checksums
martadams89 Jan 24, 2025
b3fab7d
fix typo
martadams89 Jan 24, 2025
25d13f4
fix errand ;
martadams89 Jan 24, 2025
7d998e2
fix errand ;
martadams89 Jan 24, 2025
631b4e6
fix uv gz typo
martadams89 Jan 24, 2025
9b882ff
Merge branch 'master' into patch-1
martadams89 Jan 24, 2025
ab50695
Split build os’ into a matrix
martadams89 Jan 24, 2025
84e1b3a
Build amd and arm in the same build step
martadams89 Jan 24, 2025
b75627d
adjust workflow for matrix builds, and change dockerfile to not run u…
martadams89 Jan 25, 2025
d2ae222
remove UV hash for arm64 and skip checks in Dockerfile
martadams89 Jan 25, 2025
7f420ee
adjust workflow and dockerfile
martadams89 Jan 26, 2025
44e8cda
continue build on error on arm64
martadams89 Jan 27, 2025
17be376
don't fail the workflow on experimental builds
martadams89 Jan 27, 2025
edc13e8
experimental
martadams89 Jan 27, 2025
6697454
remvoe the errand inlcude of amd64 builds
martadams89 Jan 27, 2025
a2b83de
remove arm from platform as its on the include section
martadams89 Jan 27, 2025
2a1369e
Merge branch 'master' into patch-1
martadams89 Jan 27, 2025
c88cdb2
Merge branch 'master' into patch-1
martadams89 Jan 28, 2025
7665db3
Merge branch 'master' into patch-1
martadams89 Jan 29, 2025
0cabcb8
Have seperate workflow for arm64 that continues on error - arm64 imag…
martadams89 Jan 31, 2025
6f3c69b
Merge branch 'master' into patch-1
martadams89 Jan 31, 2025
36d19ca
Merge branch 'master' into patch-1
martadams89 Jan 31, 2025
9ccb2e2
Update Dockerfile
martadams89 Jan 31, 2025
48b4a8d
Update Dockerfile
martadams89 Feb 2, 2025
3ca640b
change build runner to ubnuntu-22.04
martadams89 Feb 5, 2025
95dfb9f
Merge branch 'master' into patch-1
martadams89 Feb 5, 2025
65982a2
Merge branch 'master' into patch-1
martadams89 Feb 5, 2025
ac5f908
Merge branch 'master' into patch-1
martadams89 Feb 17, 2025
7330ef6
Merge branch 'master' into patch-1
martadams89 Feb 24, 2025
4d37b37
adjust dockerfile to simplify uv installation and update workflow to …
martadams89 Feb 27, 2025
f712353
Merge branch 'master' into patch-1
martadams89 Feb 27, 2025
c10ded1
Merge branch 'master' into patch-1
martadams89 Feb 27, 2025
819d9c8
Merge branch 'master' into patch-1
martadams89 Mar 5, 2025
4f782c6
add cmake policy version
martadams89 Apr 18, 2025
92c3134
add cmake policy version to workflow
martadams89 Apr 18, 2025
492a0ce
Merge branch 'master' into patch-1
martadams89 Apr 18, 2025
fbea90c
Merge branch 'master' into patch-1
martadams89 Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:

env:
DOCKERHUB_REPO: simplelogin/app-ci
CMAKE_POLICY_VERSION_MINIMUM: 3.5
UV_VERSION: 0.10.12

Expand Down Expand Up @@ -39,7 +40,6 @@ jobs:
run: |
uv run pre-commit run --all-files


test:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
path: htmlcov

build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: ['test', 'lint']
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))

Expand All @@ -126,7 +126,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: simplelogin/app-ci
images: ${{ env.DOCKERHUB_REPO }}

- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
67 changes: 45 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,63 @@ WORKDIR /code
COPY ./static/package*.json /code/static/
RUN cd /code/static && npm ci

FROM --platform=linux/amd64 ubuntu:22.04
FROM ubuntu:24.04

ARG UV_VERSION="0.10.12"
ARG UV_HASH="adccf40b5d1939a5e0093081ec2307ea24235adf7c2d96b122c561fa37711c46"
ARG TARGETARCH

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1


WORKDIR /code

# Copy dependency files
COPY pyproject.toml uv.lock .python-version ./

# Install deps
RUN apt-get update \
&& apt-get install -y curl netcat-traditional gcc python3-dev gnupg git libre2-dev build-essential pkg-config cmake ninja-build bash clang \
&& curl -sSL "https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_64-unknown-linux-gnu.tar.gz" > uv.tar.gz \
&& echo "${UV_HASH} uv.tar.gz" | sha256sum -c - \
&& tar xf uv.tar.gz -C /tmp/ \
&& mv /tmp/uv-x86_64-unknown-linux-gnu/uv /usr/bin/uv \
&& mv /tmp/uv-x86_64-unknown-linux-gnu/uvx /usr/bin/uvx \
&& rm -rf /tmp/uv* \
&& rm -f uv.tar.gz \
&& uv python install `cat .python-version` \
&& export CMAKE_POLICY_VERSION_MINIMUM=3.5 \
&& uv sync --locked \
&& apt-get autoremove -y \
&& apt-get purge -y curl netcat-traditional build-essential pkg-config cmake ninja-build python3-dev clang\
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN \
echo "**** install build packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
curl \
netcat-traditional \
gcc \
python3-dev \
gnupg \
git \
libre2-dev \
build-essential \
pkg-config \
cmake \
ninja-build \
bash \
clang \
ca-certificates && \
curl -o /tmp/uv-installer.sh -L https://astral.sh/uv/install.sh && \
sh /tmp/uv-installer.sh && \
export PATH="$HOME/.local/bin:$PATH" && \
uv python install `cat .python-version` && \
export CMAKE_POLICY_VERSION_MINIMUM=3.5 && \
uv sync --no-dev --no-cache && \
echo "**** install runtime packages ****" && \
apt-get install -y \
gnupg \
libre2-10 && \
echo "**** cleanup ****" && \
apt-get purge -y \
curl \
netcat-traditional \
build-essential \
pkg-config \
cmake \
ninja-build \
python3-dev \
clang && \
apt-get autoremove -y && \
apt-get autoclean -y && \
rm -rf \
/var/lib/apt/lists/*

# Copy code
COPY . .
Expand All @@ -49,4 +72,4 @@ ENV PATH="/code/.venv/bin:$PATH"
EXPOSE 7777

#gunicorn wsgi:app -b 0.0.0.0:7777 -w 2 --timeout 15 --log-level DEBUG
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:7777","-w","2","--timeout","15"]
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:7777","-w","2","--timeout","15"]