Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to 3.21 #48

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.20
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.21

# set version label
ARG BUILD_DATE
Expand Down Expand Up @@ -43,7 +43,6 @@ RUN \
/tmp/projectsend.zip -d \
/app/www/public && \
mv /app/www/public/upload /defaults/ && \
mv /app/www/public /app/www/public-tmp && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.20
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.21

# set version label
ARG BUILD_DATE
Expand Down Expand Up @@ -43,7 +43,6 @@ RUN \
/tmp/projectsend.zip -d \
/app/www/public && \
mv /app/www/public/upload /defaults/ && \
mv /app/www/public /app/www/public-tmp && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ The architectures supported by this image are:

## Application Setup

*IMPORTANT* This image no longer supports MSSQL since being migrated to PHP7, if you want MSSQL support please use the tag `linuxserver/projectsend:r1053-ls27`

Requires a user and database in either mysql or mariadb.

To set PHP options like max upload size please edit /config/php/projectsend.ini

To use translations, follow the instructions [here](https://www.projectsend.org/how-to-use-translation-files/). The necessary paths are symlinked under `/config/translations` (note that the "templates" paths don't need `lang` subdirectories).

More info at [ProjectSend](http://www.projectsend.org).
Expand All @@ -86,7 +86,6 @@ services:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MAX_UPLOAD=5000
volumes:
- /path/to/projectsend/config:/config
- /path/to/data:/data
Expand All @@ -103,7 +102,6 @@ docker run -d \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e MAX_UPLOAD=5000 \
-p 80:80 \
-v /path/to/projectsend/config:/config \
-v /path/to/data:/data \
Expand All @@ -121,7 +119,6 @@ Containers are configured using parameters passed at runtime (such as those abov
| `-e PUID=1000` | for UserID - see below for explanation |
| `-e PGID=1000` | for GroupID - see below for explanation |
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
| `-e MAX_UPLOAD=5000` | To set maximum upload size (in MB), default if unset is 5000. |
| `-v /config` | Persistent config files |
| `-v /data` | Where to store files to share. |

Expand Down Expand Up @@ -287,6 +284,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64

## Versions

* **21.12.24:** - Rebase to Alpine 3.21.
* **06.06.24:** - Rebase to Alpine 3.20.
* **23.12.23:** - Rebase to Alpine 3.19 with php 8.3.
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
Expand Down
11 changes: 4 additions & 7 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ project_url: "http://www.projectsend.org"
project_logo: "http://www.projectsend.org/wp-content/themes/projectsend/img/screenshots.png"
project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) is a self-hosted application that lets you upload files and assign them to specific clients that you create yourself. Secure, private and easy. No more depending on external services or e-mail to send those files."
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
project_blurb_optional_extras_enabled: false
# supported architectures
available_architectures:
- {arch: "{{ arch_x86_64 }}", tag: "amd64-latest"}
- {arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"}
# container parameters
common_param_env_vars_enabled: true
param_container_name: "{{ project_name }}"
param_usage_include_net: false
param_usage_include_env: true
param_env_vars:
- {env_var: "MAX_UPLOAD", env_value: "5000", desc: "To set maximum upload size (in MB), default if unset is 5000."}
param_usage_include_env: false
param_usage_include_vols: true
param_volumes:
- {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files"}
Expand All @@ -28,10 +24,10 @@ param_ports:
# application setup block
app_setup_block_enabled: true
app_setup_block: |
*IMPORTANT* This image no longer supports MSSQL since being migrated to PHP7, if you want MSSQL support please use the tag `linuxserver/projectsend:r1053-ls27`

Requires a user and database in either mysql or mariadb.

To set PHP options like max upload size please edit /config/php/projectsend.ini

To use translations, follow the instructions [here](https://www.projectsend.org/how-to-use-translation-files/). The necessary paths are symlinked under `/config/translations` (note that the "templates" paths don't need `lang` subdirectories).

More info at [ProjectSend]({{ project_url }}).
Expand Down Expand Up @@ -92,6 +88,7 @@ init_diagram: |
"projectsend:latest" <- Base Images
# changelog
changelogs:
- {date: "21.12.24:", desc: "Rebase to Alpine 3.21, move php .ini file to /config/php."}
- {date: "06.06.24:", desc: "Rebase to Alpine 3.20."}
- {date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
- {date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf."}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
; /etc/php83/conf.d/projectsend.ini
; full path comment above to help visibility when searching for php versions
; /config/php/projectsend.ini
[PHP]
memory_limit = 512M
upload_max_filesize = 5000M
Expand Down
29 changes: 14 additions & 15 deletions root/etc/s6-overlay/s6-rc.d/init-projectsend-config/run
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash

if [[ -d /app/www/public-tmp ]]; then
echo "New container detected. Setting up app folder and fixing permissions."
mv /app/www/public-tmp /app/www/public
lsiown -R abc:abc /app
fi

# set default values for variables
PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-512M}
MAX_UPLOAD=${MAX_UPLOAD:-5000}
Expand All @@ -18,14 +12,17 @@ mkdir -p \
/config/projectsend \
/data/projectsend

# configure php
sed -i \
-e "s#;*memory_limit =.*#memory_limit = ${PHP_MEMORY_LIMIT}#i" \
-e "s#;*upload_max_filesize =.*#upload_max_filesize = ${USABLE_MAX_UPLOAD}M#i" \
-e "s#;*max_file_uploads =.*#max_file_uploads = ${PHP_MAX_FILE_UPLOAD}#i" \
-e "s#;*post_max_size =.*#post_max_size = ${USABLE_MAX_UPLOAD}M#i" \
-e "s#;*cgi.fix_pathinfo=.*#cgi.fix_pathinfo= 0#i" \
/etc/php83/conf.d/projectsend.ini
if [[ ! -f "/config/php/projectsend.ini" ]]; then
cp /defaults/projectsend.ini /config/php/projectsend.ini

sed -i \
-e "s#;*memory_limit =.*#memory_limit = ${PHP_MEMORY_LIMIT}#i" \
-e "s#;*upload_max_filesize =.*#upload_max_filesize = ${USABLE_MAX_UPLOAD}M#i" \
-e "s#;*max_file_uploads =.*#max_file_uploads = ${PHP_MAX_FILE_UPLOAD}#i" \
-e "s#;*post_max_size =.*#post_max_size = ${USABLE_MAX_UPLOAD}M#i" \
-e "s#;*cgi.fix_pathinfo=.*#cgi.fix_pathinfo= 0#i" \
/config/php/projectsend.ini
fi

# copy config
PREV_DIR=$(pwd)
Expand Down Expand Up @@ -114,6 +111,8 @@ shopt -u globstar dotglob

# permissions
lsiown -R abc:abc \
/config
/config \
/app/www/public/cache

lsiown abc:abc \
/data/projectsend
Loading