Skip to content

Commit 23be16b

Browse files
authored
Merge branch 'master' into generalize-tiling
2 parents 45d2c18 + 5f6861a commit 23be16b

File tree

438 files changed

+17830
-10414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+17830
-10414
lines changed

.docker/all-php.ini

Lines changed: 0 additions & 3 deletions
This file was deleted.

.docker/app.dockerfile

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# PHP 8.1.13
2-
#FROM php:8.1-fpm-alpine
3-
FROM php@sha256:88407bcb4821e7a9da273d9dad746e1f795e9a6480d9cba5ba502d7836e23718
4-
MAINTAINER Martin Zurowietz <martin@cebitec.uni-bielefeld.de>
5-
LABEL org.opencontainers.image.source https://github.com/biigle/core
1+
# PHP 8.2.21
2+
#FROM php:8.2-fpm-alpine
3+
FROM php@sha256:95c34aeeef07aa9774e0b70d5b70065ab0647ece183ebe007c5f2e6b5db16725
4+
LABEL org.opencontainers.image.authors="Martin Zurowietz <m.zurowietz@uni-bielefeld.de>"
5+
LABEL org.opencontainers.image.source="https://github.com/biigle/core"
66

77
RUN ln -s "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
8-
ADD ".docker/all-php.ini" "$PHP_INI_DIR/conf.d/all.ini"
98
ADD ".docker/app-php.ini" "$PHP_INI_DIR/conf.d/app.ini"
109

1110
RUN apk add --no-cache \
@@ -27,17 +26,7 @@ RUN apk add --no-cache \
2726
soap \
2827
&& apk del --purge .build-deps
2928

30-
# Configure proxy if there is any. See: https://stackoverflow.com/a/2266500/1796523
31-
RUN [ -z "$HTTP_PROXY" ] || pear config-set http_proxy $HTTP_PROXY
32-
RUN apk add --no-cache yaml \
33-
&& apk add --no-cache --virtual .build-deps g++ make autoconf yaml-dev \
34-
&& pecl install yaml \
35-
&& docker-php-ext-enable yaml \
36-
&& apk del --purge .build-deps
37-
# Unset proxy configuration again.
38-
RUN [ -z "$HTTP_PROXY" ] || pear config-set http_proxy ""
39-
40-
ARG PHPREDIS_VERSION=5.3.7
29+
ARG PHPREDIS_VERSION=6.0.2
4130
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/${PHPREDIS_VERSION}.tar.gz \
4231
&& tar -xzf /tmp/redis.tar.gz \
4332
&& rm /tmp/redis.tar.gz \

.docker/requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# This file is just used to get security alerts from GitHub. Make sure the versions match
22
# in worker.dockerfile.
33
numpy==1.24.*
4-
opencv-contrib-python-headless==4.6.0
4+
opencv-contrib-python-headless==4.8.1.78
55
scipy==1.10.*
66
scikit-learn==1.2.*
77
matplotlib==3.6.*
88
PyExcelerate==0.6.7
9-
Pillow==10.2.0
9+
Pillow==10.3.0
1010
Shapely==1.8.1
11-
torch==2.1.*
12-
torchvision==0.16.*
11+
torch==2.2.*
12+
torchvision==0.17.*
13+
pandas==1.5.3

.docker/web.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# FROM nginx:1.21-alpine
22
FROM nginx@sha256:5a0df7fb7c8c03e4158ae9974bfbd6a15da2bdfdeded4fb694367ec812325d31
3-
MAINTAINER Martin Zurowietz <martin@cebitec.uni-bielefeld.de>
4-
LABEL org.opencontainers.image.source https://github.com/biigle/core
3+
LABEL org.opencontainers.image.authors="Martin Zurowietz <m.zurowietz@uni-bielefeld.de>"
4+
LABEL org.opencontainers.image.source="https://github.com/biigle/core"
55

66
ADD .docker/vhost.conf /etc/nginx/conf.d/default.conf
77
ADD .docker/ffdhe2048.txt /etc/nginx/conf.d/ffdhe2048.txt

.docker/worker.dockerfile

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# PHP 8.1.27
2-
# FROM php:8.1
3-
FROM php@sha256:9b5dfb7deef3e48d67b2599e4d3967bb3ece19fd5ba09cb8e7ee10f5facf36e0
4-
MAINTAINER Martin Zurowietz <martin@cebitec.uni-bielefeld.de>
5-
LABEL org.opencontainers.image.source https://github.com/biigle/core
1+
# PHP 8.2.21
2+
# FROM php:8.2
3+
FROM php@sha256:a61daae986bdf9bbeff9a514e3598a4f72bb2e3d01a0b3d0eff960bbfe85acdf
4+
LABEL org.opencontainers.image.authors="Martin Zurowietz <m.zurowietz@uni-bielefeld.de>"
5+
LABEL org.opencontainers.image.source="https://github.com/biigle/core"
66

77
RUN LC_ALL=C.UTF-8 apt-get update \
88
&& apt-get install -y --no-install-recommends \
@@ -14,22 +14,27 @@ RUN LC_ALL=C.UTF-8 apt-get update \
1414
python3-sklearn \
1515
python3-matplotlib \
1616
python3-shapely \
17+
python3-pandas \
1718
&& apt-get -y autoremove \
1819
&& apt-get clean \
1920
&& rm -r /var/lib/apt/lists/*
2021

2122
RUN ln -s "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
22-
ADD ".docker/all-php.ini" "$PHP_INI_DIR/conf.d/all.ini"
23+
# Enable FFI for jcupitt/vips.
24+
# See: https://github.com/libvips/php-vips?tab=readme-ov-file#install
25+
RUN echo "ffi.enable = true" > "$PHP_INI_DIR/conf.d/vips.ini"
2326

2427
RUN LC_ALL=C.UTF-8 apt-get update \
2528
&& apt-get install -y --no-install-recommends \
2629
libxml2-dev \
2730
libzip-dev \
2831
libpq-dev \
32+
libffi-dev \
2933
&& apt-get install -y --no-install-recommends \
3034
libxml2 \
3135
libzip4 \
3236
postgresql-client \
37+
libffi8 \
3338
&& docker-php-ext-configure pgsql -with-pgsql=/usr/bin/pgsql \
3439
&& docker-php-ext-install -j$(nproc) \
3540
exif \
@@ -39,50 +44,29 @@ RUN LC_ALL=C.UTF-8 apt-get update \
3944
pgsql \
4045
soap \
4146
zip \
47+
ffi \
4248
&& apt-get purge -y \
4349
libxml2-dev \
4450
libzip-dev \
4551
libpq-dev \
52+
libffi-dev \
4653
&& apt-get -y autoremove \
4754
&& apt-get clean \
4855
&& rm -r /var/lib/apt/lists/*
4956

5057
# Configure proxy if there is any. See: https://stackoverflow.com/a/2266500/1796523
5158
RUN [ -z "$HTTP_PROXY" ] || pear config-set http_proxy $HTTP_PROXY
5259

53-
RUN LC_ALL=C.UTF-8 apt-get update \
54-
&& apt-get install -y --no-install-recommends \
55-
libyaml-dev \
56-
&& apt-get install -y --no-install-recommends \
57-
libyaml-0-2 \
58-
&& pecl install yaml \
59-
&& printf "\n" | docker-php-ext-enable yaml \
60-
&& apt-get purge -y \
61-
libyaml-dev \
62-
&& apt-get -y autoremove \
63-
&& apt-get clean \
64-
&& rm -r /var/lib/apt/lists/*
65-
66-
ARG PHPREDIS_VERSION=5.3.7
60+
ARG PHPREDIS_VERSION=6.0.2
6761
RUN curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/${PHPREDIS_VERSION}.tar.gz \
6862
&& tar -xzf /tmp/redis.tar.gz \
6963
&& rm /tmp/redis.tar.gz \
7064
&& mkdir -p /usr/src/php/ext \
7165
&& mv phpredis-${PHPREDIS_VERSION} /usr/src/php/ext/redis \
7266
&& docker-php-ext-install -j$(nproc) redis
7367

74-
# ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"
75-
7668
RUN LC_ALL=C.UTF-8 apt-get update \
77-
&& apt-get install -y --no-install-recommends \
78-
libvips-dev \
79-
&& apt-get install -y --no-install-recommends \
80-
libvips42 \
81-
&& pecl install vips \
82-
&& docker-php-ext-enable vips \
83-
&& apt-get purge -y \
84-
libvips-dev \
85-
&& apt-get -y autoremove \
69+
&& apt-get install -y --no-install-recommends libvips42 \
8670
&& apt-get clean \
8771
&& rm -r /var/lib/apt/lists/*
8872

@@ -96,8 +80,8 @@ RUN LC_ALL=C.UTF-8 apt-get update \
9680
PyExcelerate==0.6.7 \
9781
Pillow==10.2.0 \
9882
&& pip3 install --no-cache-dir --break-system-packages --index-url https://download.pytorch.org/whl/cpu \
99-
torch==2.1.* \
100-
torchvision==0.16.* \
83+
torch==2.2.* \
84+
torchvision==0.17.* \
10185
&& apt-get purge -y \
10286
python3-pip \
10387
&& apt-get -y autoremove \

.env.example

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ APP_DEBUG=true
88
APP_URL="http://localhost:8000"
99
APP_TIMEZONE="Europe/Berlin"
1010

11+
APP_LOCALE=en
12+
APP_FALLBACK_LOCALE=en
13+
APP_FAKER_LOCALE=en_US
14+
15+
APP_MAINTENANCE_DRIVER=file
16+
# APP_MAINTENANCE_STORE=database
17+
18+
BCRYPT_ROUNDS=12
19+
1120
LOG_CHANNEL=single
21+
LOG_STACK=single
1222
LOG_DEPRECATIONS_CHANNEL=null
1323
LOG_LEVEL=debug
1424

@@ -40,23 +50,29 @@ MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
4050
#HTTP_PROXY=host:port
4151

4252
# normally you don't have to edit these
43-
CACHE_DRIVER="file"
44-
FILESYSTEM_DISK=local
4553
SESSION_DRIVER="file"
4654
SESSION_LIFETIME=120
4755
SESSION_SECURE_COOKIE=false
48-
QUEUE_CONNECTION="database"
56+
SESSION_ENCRYPT=false
57+
SESSION_PATH=/
58+
SESSION_DOMAIN=null
59+
60+
BROADCAST_CONNECTION=log
61+
FILESYSTEM_DISK=local
62+
QUEUE_CONNECTION=database
63+
64+
CACHE_STORE=file
65+
CACHE_PREFIX=
4966

5067
MEMCACHED_HOST=127.0.0.1
5168

69+
REDIS_CLIENT=phpredis
5270
REDIS_HOST="127.0.0.1"
5371
REDIS_PASSWORD=null
5472
REDIS_PORT=6379
5573

56-
# see config/mail.php for what drivers are available
57-
# default is the PHP mail function which doesn't require any credentials
58-
MAIL_MAILER="log"
59-
MAIL_HOST="smtp.mailtrap.io"
74+
MAIL_MAILER=log
75+
MAIL_HOST=127.0.0.1
6076
MAIL_PORT=2525
6177
MAIL_USERNAME=null
6278
MAIL_PASSWORD=null

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup PHP
3636
uses: shivammathur/setup-php@v2
3737
with:
38-
php-version: '8.1'
38+
php-version: '8.2'
3939

4040
- uses: actions/checkout@v1
4141
with:
@@ -50,8 +50,8 @@ jobs:
5050
- name: Set testing key
5151
run: echo "APP_KEY=base64:STZFA4bQKDjE2mlpRPmsJ/okG0eCh4RHd9BghtZeYmQ=" >> .env
5252

53-
- name: Run Psalm
54-
run: composer lint
53+
- name: Run Linter
54+
run: composer lint -- --error-format=github
5555

5656
cs-php:
5757

@@ -61,7 +61,7 @@ jobs:
6161
- name: Setup PHP
6262
uses: shivammathur/setup-php@v2
6363
with:
64-
php-version: '8.1'
64+
php-version: '8.2'
6565
tools: cs2pr
6666

6767
- uses: actions/checkout@v1

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
3737
- name: Start test database
3838
run: |
39-
docker-compose up -d --no-build database_testing
39+
docker compose up -d --no-build database_testing
4040
sleep 5
4141
4242
- name: Run tests
43-
run: docker-compose run --rm -u 1001 worker php -d memory_limit=1G vendor/bin/phpunit --random-order
43+
run: docker compose run --rm -u 1001 worker php -d memory_limit=1G vendor/bin/phpunit --random-order
4444

4545
test-modules:
4646

@@ -78,11 +78,11 @@ jobs:
7878
7979
- name: Start test database
8080
run: |
81-
docker-compose up -d --no-build database_testing
81+
docker compose up -d --no-build database_testing
8282
sleep 5
8383
8484
- name: Run tests
85-
run: docker-compose run --rm -u 1001 worker php -d memory_limit=1G vendor/bin/phpunit --random-order
85+
run: docker compose run --rm -u 1001 worker php -d memory_limit=1G vendor/bin/phpunit --random-order
8686

8787
test-js-bundle:
8888

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/public/vendor
99
/storage/*.key
1010
/storage/largo_patches
11+
/storage/metadata
12+
/storage/pending-metadata
1113
/vendor
1214
.env
1315
.env.backup

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
->ignoreVCS(true);
1515

1616
return (new PhpCsFixer\Config())
17+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
1718
->setRules([
1819
'@PSR2' => true,
1920
'ordered_imports' => true,

0 commit comments

Comments
 (0)