Commit graph

277 commits

Author SHA1 Message Date
Michael Mayer
b762772627 CI: Fix bad download URL in install-go.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 15:31:26 +02:00
Michael Mayer
0f5bda320a CI: Improve go path detection in install-cli-tools.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 15:09:29 +02:00
Michael Mayer
dcd3c5d8a9 CI: Set GOPATH in install-cli-tools.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 15:02:28 +02:00
Michael Mayer
4ab35c4dc7 CI: Improve scripts/dist/install-go.sh and add install-cli-tools.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 14:57:17 +02:00
Michael Mayer
f77f46b180 CI: Query latest version in scripts/dist/install-go.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 14:21:58 +02:00
Michael Mayer
25fb0e0fc1 CI: Improve dist install scripts and add usage docs
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 13:55:26 +02:00
Michael Mayer
fab00ec6e0 CI: Change headers in scripts/dist
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 13:16:10 +02:00
Michael Mayer
67d50d65ab CI: Change arch command to uname in install-go.sh script
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 13:13:27 +02:00
Michael Mayer
6bb0f8c593 CI: Update install-go.sh and install-darktable.sh scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 13:11:51 +02:00
Michael Mayer
ec78dd517b CI: Update dist build scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-23 13:08:24 +02:00
Michael Mayer
3b2f53da07 CI: Update test.sh script and config_filepaths_test.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-22 14:58:20 +02:00
Michael Mayer
0b46643def CI: Update deploy and test scripts
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-22 12:58:37 +02:00
Michael Mayer
58521190ba Zip: Fix potential filesystem permission and timing issues #2532
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-19 20:41:36 +02:00
Michael Mayer
ee4735ad14 Build: Upgrade all global deps in /scripts/dist/install-nodejs.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-19 17:18:05 +02:00
Michael Mayer
455fdd5d1c Build: Upgrade Go version from 1.18.3 to 1.18.4
Signed-off-by: Michael Mayer <michael@photoprism.app>
2022-07-19 17:15:36 +02:00
Michael Mayer
a19b782162 CI: Update Docker image build scripts to support additional args 2022-06-16 10:35:26 +02:00
Michael Mayer
db9cbe72c6 Docker/CI: Add Ubuntu-based demo and update targets in Makefile 2022-06-16 10:21:35 +02:00
Michael Mayer
64e938b0d7 MariaDB: Add migrate test database and dialect_mysql_test.go #2398 2022-06-16 01:27:14 +02:00
Michael Mayer
942fedf679 Docker: Upgrade Go from v1.18.2 to v1.18.3 2022-06-14 01:51:53 +02:00
Michael Mayer
027800fba5 CI: Improve compatibility of download scripts
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2022-05-21 02:34:50 +02:00
Michael Mayer
2087d071d6 CI: Rename BUILD_NAME variable to BUILD_BIN in build.sh script 2022-05-20 15:42:33 +02:00
Michael Mayer
a96c1958f4 Docker: Specify explicitly supported user and group ID ranges #2336 2022-05-20 12:29:03 +02:00
Michael Mayer
040f206998 Docker: Remove permission check for storage folder on startup #2334 2022-05-20 10:38:37 +02:00
Michael Mayer
da8710713a Docker: Update create-users.sh script #2328
https://github.com/photoprism/photoprism/discussions/2328#discussioncomment-2771617
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2022-05-18 22:52:23 +02:00
Michael Mayer
6bbd4e55ac Docker: Add accounts for user IDs 1100-1200 #2328
https://github.com/photoprism/photoprism/discussions/2328#discussioncomment-2771617
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2022-05-18 22:40:22 +02:00
Michael Mayer
420208295e Docker: Install Darktable from Debian Backports #2327 2022-05-17 04:44:16 +02:00
Michael Mayer
5d13bb019d CI: Update deploy-release.sh script 2022-05-17 04:08:13 +02:00
Michael Mayer
124f35c3dc Backend: Upgrade Go to 1.18.2 2022-05-16 19:58:04 +02:00
Michael Mayer
5a62709b1a CI: Update test.sh script 2022-04-21 19:21:14 +02:00
Michael Mayer
7fac0f2931 CI: Update test.sh script 2022-04-21 19:19:47 +02:00
Michael Mayer
0a209ca9bd CI: Update test.sh script 2022-04-21 19:15:06 +02:00
Michael Mayer
22f900710e Docker: Add groups 33, 105, 115 for nextcloud, davfs2 & vi. trans. #2228 2022-04-21 19:12:00 +02:00
Michael Mayer
3a1daf327f Docker: Add User/Group ID 937 for Synology videodriver #2228 2022-04-21 18:47:55 +02:00
Michael Mayer
df6ca40a82 Docker: Add matching groups for default users #2262 2022-04-18 19:12:26 +02:00
Michael Mayer
f093b498fa CI: Fix prod build scripts and add docker-compose.local.yml #2262 2022-04-18 15:49:30 +02:00
Michael Mayer
7f32ff46e8 Video: Show what transcoding hardware was detected #2125 #2222 #2228
Also installs the following, additional packages:
- libcuda1
- libnvcuvid1
- mesa-va-drivers
2022-04-18 14:30:47 +02:00
Michael Mayer
c2baf2ae5a Docker: Create default users and groups #2262 #2228
Creates accounts to run PhotoPrism under a custom user ID. Also adds
them to the video and render groups, which might help to access hardware
transcoding devices.
2022-04-18 14:14:32 +02:00
Michael Mayer
aec32d9c3a Docker: Add scripts/dist/install-go-tools.sh and OCI annotations #2178 2022-04-17 16:28:34 +02:00
Michael Mayer
00f578e319 CI: Update build script log message 2022-04-16 17:12:21 +02:00
Michael Mayer
4253045b14 Docker/CI: Upgrade Go to v1.18.1 in scripts/dist/install-go.sh 2022-04-13 18:26:11 +02:00
Michael Mayer
bda4dbabfa CI: Make build.sh script compatible with macOS
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2022-04-07 01:18:39 +02:00
Michael Mayer
eaecedf4bb Docker: Update scripts/dist/tensorflow-driver.sh 2022-03-25 10:14:48 +01:00
Michael Mayer
8c589e3649 Videos: Improve Nvidia hardware transcoding support #2125
- successfully tested with NVIDIA Quadro P620 and driver v470.103.01
- the host Linux kernel should run the same driver version Make sure to
- driver names in PHOTOPRISM_FFMPEG_ENCODER have been simplified
- share /dev/nvidia* as shown in our new docker-compose.yml example
2022-03-23 13:27:25 +01:00
Michael Mayer
cb89a1a189 Docker: Update default PATH and dist scripts #2125 2022-03-23 08:33:44 +01:00
Michael Mayer
357995556f Docker: Set explicit PATH in dist scripts #2125 2022-03-23 08:16:01 +01:00
Michael Mayer
d4dbbb02e8 Docker: Replaced "nano" with "clitools" in PHOTOPRISM_INIT options
clitools installs additional shells and command-line utilities
2022-03-18 11:07:19 +01:00
Michael Mayer
0ee686ffb1 Docker: Make sure /sbin/gosu exists and has the right permissions #2120
see https://github.com/photoprism/photoprism/discussions/2120
2022-03-17 17:02:38 +01:00
Michael Mayer
16522c68d8 Docker: Improve entrypoint scripts #2146 #2149 2022-03-17 10:14:08 +01:00
Michael Mayer
5dce02ebbd Docker: Use absolute command names to avoid path problems #2146 #2149 2022-03-16 19:09:53 +01:00
Michael Mayer
de6e0390a7 Scripts: Upgrade Go from v1.17.7 to v1.18 in install-go.sh 2022-03-16 17:50:23 +01:00
Michael Mayer
0fa87a12e6 Develop: Simplify Dockerfile #2076 2022-03-11 11:00:31 +01:00
Michael Mayer
6bb8582cb5 CI: Improve deployment scripts #2076 2022-03-11 10:52:59 +01:00
Michael Mayer
f5aee956af CI: Exclude Docker image scripts from build package #2076 2022-03-11 10:30:18 +01:00
Michael Mayer
8db9006f07 Docker: Run install scripts with absolute paths #2076 2022-03-11 09:50:24 +01:00
Michael Mayer
d9d0af4bb8 Develop: Upgrade base image from 220302 to 220311-bullseye #2076
Dockerfiles were also updated for improved readability.
2022-03-11 09:40:04 +01:00
Michael Mayer
c91fa51be7 Docker: Move init scripts to /scripts and rename $DOCKER_ARCH #2076
DOCKER_ARCH has been renamed to PHOTOPRISM_ARCH as it can be used
for installing deps outside of Docker environments as well.
2022-03-11 09:05:42 +01:00
Michael Mayer
6fb0eb2abe Docker: Auto-install "nvidia-opencl-icd" and update docs #1337 #2076 2022-03-02 12:21:46 +01:00
Michael Mayer
d78cc31f72 Docker: Fix entrypoint-init.sh script for non-root users #1337 #2076 2022-03-02 10:30:07 +01:00
Michael Mayer
9eb9ee767c CI: Improve build scripts #2076 2022-03-01 18:16:50 +01:00
Michael Mayer
cfbc79606b CI: Improve binary build script logging #2076 2022-03-01 16:54:49 +01:00
Michael Mayer
3fe573845c Docker: Use common entrypoint.sh script for develop and prod env #2076 2022-03-01 13:55:05 +01:00
Michael Mayer
aff56159e1 Docker: Update log messages in install-tensorflow.sh #1337 2022-02-25 17:08:17 +01:00
Michael Mayer
427d2132aa Docker: Update and improve scripts for installing CPU/GPU support #1337 2022-02-25 16:33:46 +01:00
Michael Mayer
c16ae62d3e Tests: Pre-install testcafe in develop base images 2022-02-23 12:10:34 +01:00
Michael Mayer
0e7dd5e3f8 Docker: Improve log messages in entrypoint.sh scripts 2022-02-21 10:56:27 +01:00
Michael Mayer
a9193c47a9 Docker: Remove GOPROXY and GODEBUG args from all images 2022-02-20 16:55:25 +01:00
Michael Mayer
4d6c3a78bb Docker: Remove duplicate log from prod entrypoint.sh script 2022-02-20 15:07:02 +01:00
Michael Mayer
6ddbae85cc Docker: Improve info logs in entrypoint.sh scripts 2022-02-20 15:05:04 +01:00
Michael Mayer
2f8d406747 Docker: Improve logging in entrypoint.sh scripts 2022-02-20 14:25:20 +01:00
Michael Mayer
20b3e6a268 Docker: Improve user id switching in entrypoint.sh scripts 2022-02-20 14:23:24 +01:00
Michael Mayer
053394c969 Docker: Improve umask and logging in entrypoint.sh scripts 2022-02-20 14:02:13 +01:00
Michael Mayer
68acb06565 CI: Update BUILD_TAG in Docker build scripts 2022-02-20 13:17:05 +01:00
Michael Mayer
eb862fb000 Docker: Improve entrypoint.sh scripts 2022-02-20 12:50:37 +01:00
Michael Mayer
8f424a91d5 Docker: Fix build tag variable name in entrypoint.sh scripts 2022-02-20 12:37:37 +01:00
Michael Mayer
0e0f5fd132 Docker: Improve entrypoint.sh scripts and dev/prod builds 2022-02-20 12:23:06 +01:00
Michael Mayer
b52bf1bd76 Docker: Improve doctor.sh script 2022-02-19 21:38:07 +01:00
Michael Mayer
c970e2eac1 Docker: Improve entrypoint.sh script 2022-02-19 19:54:49 +01:00
Michael Mayer
4247066c1b Docker: Reduce image layers and improve build scripts 2022-02-19 15:32:52 +01:00
Michael Mayer
88cc1b3a73 Docker: Move build init scripts 2022-02-18 17:40:58 +01:00
Michael Mayer
94852e3394 CI: Update buildx.sh script 2022-02-17 22:24:33 +01:00
Michael Mayer
1c4473d8dc CI: Improve build scripts 2022-02-17 19:18:37 +01:00
Michael Mayer
c76d0e27ba RAW: Add install-darktable.sh script #445 #1632
This will install a newer version from opensuse.org if possible.
2022-02-17 13:45:43 +01:00
Michael Mayer
50f5c9f2ef CI: Refactor build script 2022-02-16 16:52:35 +01:00
Michael Mayer
39fb3b7ab0 Docker: Pull prod base images before building preview and release 2022-02-16 16:24:45 +01:00
Michael Mayer
c5fb647d96 Docker: Allow additional parameters in build scripts 2022-02-16 16:07:05 +01:00
Michael Mayer
36ae97ac5c Docker: Add firefox-esr to bullseye base images and update build scripts 2022-02-16 15:41:58 +01:00
Michael Mayer
823f864896 Docker: Reorganize image folders and update build scripts 2022-02-16 14:29:42 +01:00
Michael Mayer
91dfe95e23 Docker: Improve develop and production image builds 2022-02-16 09:51:43 +01:00
Michael Mayer
edf8763353 Docker: Improve image build scripts 2022-02-15 20:05:18 +01:00
Michael Mayer
211317ccff Develop: Add Debian Docker base images (experimental) 2022-02-15 18:23:59 +01:00
Michael Mayer
e88b4c1809 Docker: Update ARMv7 docs and include dedicated make targets for ARM64 2022-02-13 16:25:59 +01:00
Michael Mayer
4c1d68eb85 Auth: Improve local dev environment and config examples #98 #782 2022-02-08 12:51:12 +01:00
Michael Mayer
3e44f44262 CI: Update test script #1953 2022-01-18 18:14:57 +01:00
Michael Mayer
925757c8dd CI: Improve test script #1953 2022-01-18 18:08:17 +01:00
Michael Mayer
4309e28efd OIDC: Add Traefik, Keycloak and Rename Development Base Image #782 2022-01-06 11:31:37 +01:00
Michael Mayer
18dc7c335a Docker: Update scripts/build.sh #1815 2021-12-15 14:56:47 +01:00
Michael Mayer
5d0a57c462 Docker: Add photoprism/development:armv7 Dockerfile for test & dev #1815 2021-12-14 20:56:24 +01:00
Michael Mayer
29b4723d43 CI: Add --no-cache in scripts/docker/arch.sh 2021-12-13 00:23:24 +01:00
Michael Mayer
1f4fa5b8ba CI: Replace goproxy.io with proxy.golang.org 2021-12-12 20:34:57 +01:00
Michael Mayer
5a939e1bce Downloads: Update URL 2021-12-12 20:15:52 +01:00
Michael Mayer
c777410f30 CI: Update install-qemu.sh script 2021-12-12 15:58:24 +01:00
Michael Mayer
05087b6d1b
Update install-qemu.sh 2021-12-11 18:32:03 +01:00
Michael Mayer
157d38fe8f CI: Fix ARMv7 build scripts 2021-12-10 17:18:58 +01:00
Michael Mayer
704953e867 CI: Move Docker scripts to /scripts/docker 2021-12-10 17:01:45 +01:00
Michael Mayer
a42cf636aa CI: Update scripts for ARMv7 Docker image builds 2021-12-10 16:36:13 +01:00
Michael Mayer
911cbee06d CI: Update scripts for ARMv7 Docker image builds 2021-12-10 16:33:32 +01:00
Michael Mayer
9e47edbcc0 CI: Update log message in scripts/build.sh 2021-12-10 14:00:49 +01:00
Michael Mayer
b4cfdf619e CI: Add Dockerfile for 32-bit ARMv7 image with "-armv7" suffix
see https://twitter.com/photoprism_app/status/1469257798987005957
2021-12-10 12:27:35 +01:00
Michael Mayer
f8dfedb1bf CI: Add "--build-arg GODEBUG" to build scripts 2021-12-10 09:09:21 +01:00
Michael Mayer
3d1a96fd0a Scripts: Add qemu-user-binfmt and qemu-user-static to install-qemu.sh 2021-12-10 09:01:41 +01:00
Michael Mayer
eae3817381 Scripts: Add qemu packages in install-qemu.sh 2021-12-10 08:51:52 +01:00
Michael Mayer
4def62fb1e CI: Add Go proxy 2021-12-09 18:48:44 +01:00
Michael Mayer
c09d067f70 CI: Add --pull flag to "docker buildx build" command 2021-12-09 14:21:49 +01:00
Michael Mayer
588503a6aa CI: Add deploy-release.sh script 2021-12-03 16:49:43 +01:00
Michael Mayer
ca09dfc617 UX: Add 200px app icon 2021-11-29 19:57:14 +01:00
Michael Mayer
cb983e768d UX: Add 267px app icon 2021-11-29 19:50:18 +01:00
Michael Mayer
65e83a9eee UX: Add app icons and use select icon on slash screen 2021-11-29 14:39:21 +01:00
Michael Mayer
abcdee6728 CI: Add missing executable flag to scripts 2021-11-23 20:45:53 +01:00
Michael Mayer
19f26a79cd CI: Add scripts/test.sh 2021-11-23 20:42:01 +01:00
Michael Mayer
45d1360c18 Metadata: Improve location estimates and UTC handling #1668 2021-11-23 19:23:10 +01:00
Michael Mayer
eb8bc7b709 Backend: Improve resilience #1544 2021-09-23 23:46:17 +02:00
Michael Mayer
d10ccdf398 CI: Ignore "docker buildx rm multibuilder" errors 2021-09-06 14:35:11 +02:00
Michael Mayer
fd785faf68 People: Automatically resolve face cluster collisions #22 2021-09-01 12:48:17 +02:00
Michael Mayer
feb0c557c1 Docker: Update multi-arch development image and config #1158
Now comes with Go 1.17 pre-installed. To match production
docker-compose.yml examples, the development database was
renamed from "photoprism-db" to "mariadb".
2021-08-31 18:08:37 +02:00
Michael Mayer
a6d60d2a9f CI: Add qemu packages in scripts/install-qemu.sh #1158 2021-08-13 23:14:36 +02:00
Michael Mayer
2761dc2696 CI: Install qemu packages in scripts/install-qemu.sh #1158 2021-08-13 23:07:17 +02:00
Michael Mayer
70a9466555 CI: Wait 10s after installing qemu-user-static 2021-08-13 22:15:03 +02:00
Michael Mayer
96ec9368a1 CI: Ignore unbound variables in scripts/docker-*.sh 2021-08-05 18:17:59 +02:00
Michael Mayer
9fde38ee5e Docker: Add and update example config files 2021-08-05 18:06:43 +02:00
Thomas Eizinger
8eac89404e
CI: Fail entire build script if any command fails (#1443)
At the moment, the build script exits with 0 even if any of the commands fail.
Setting `-e` fixes this.
2021-07-22 11:56:50 +02:00
Michael Mayer
ccbf8d732e People: Download and install Facenet from dl.photoprism.org #22 #1406
Move TF model to download server to reduce git repo size,
especially in case the model needs updates.
2021-07-16 12:16:56 +02:00
Michael Mayer
32712910bd Docker: Refactor multi-arch build #1158 #1328 2021-06-02 11:04:31 +02:00
Timo Volkmann
5a502fd580
Docker: Build multi-arch images #1158 #1328
* added docker build for arm64 development image
* multi-arch development image
* enabled multi arch build for production build
* moved go installation into shell script
* skip chromedriver installation for arm32 builds
2021-06-02 07:45:40 +02:00
Michael Mayer
de5a71f1a2 Docker: Build images with BuildKit 2021-04-20 06:55:52 +02:00
Michael Mayer
9d887ca5d2 CI: Update Drone config and Makefile for new release branch
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-12-26 17:02:15 +01:00
Michael Mayer
73a00efae8 Workaround for bad image rotation in Exif headers #637 2020-12-12 13:05:58 +01:00
Michael Mayer
3464bf35ed Config: Add backup path parameter 2020-12-04 11:02:19 +01:00
Hermógenes Oliveira
680773ef2c
Fix example configuration for Apache 2.4 (#573)
* Fix example configuration for Apache 2.4

The tutorial on serverlab.ca contains some errors. The official docs are accurate and more helpful. Added reminder for the benefit of people mindlessly copying and pasting.

* Portability fix for scripts/build.sh

As per the manual, the `-p` flag to `uname` is not portable and results in `unknown` in many cases, for instance, when compiling on a Raspberry Pi 4.
2020-12-02 01:35:24 +01:00
Michael Mayer
123fa0e43e CI: Add build targets and improve docker-build.sh
Signed-off-by: Michael Mayer <michael@lastzero.net>
2020-10-13 22:46:20 +02:00
Michael Mayer
7b5181788b CI: Use original codecov.io uploader
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-19 17:22:26 +02:00
Michael Mayer
4856a0d756 CI: Replace codecov bash script with downloaded version for testing
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-19 08:26:35 +02:00
Michael Mayer
d518697a18 CI: Add -t parameter to codecov bash script
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-19 08:16:09 +02:00
Michael Mayer
f5b67c34d4 CI: Move from Travis CI to self-hosted Drone CI
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-13 17:32:28 +02:00
Michael Mayer
2b2cd8ed23 Backend: Sanitize metadata titles and descriptions
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-27 14:15:25 +02:00
Michael Mayer
f8ec76d6c9 Backend: Simplify and fix path names for development
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-02 15:51:14 +02:00
Michael Mayer
97cab01e6d Tests: Don't reset main database
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 14:56:26 +02:00
Michael Mayer
d0199598d0 Simplify configuration #66
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 02:09:52 +02:00
Michael Mayer
a77b2431d3 Backend: Improve labels, keywords and caching
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-28 21:20:42 +02:00
Michael Mayer
252e67ce03 Add photo_count column to labels table
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-09 11:00:22 +02:00
Michael Mayer
3aad02501f Run unit tests in separate databases to avoid conflicts
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-08 19:34:29 +02:00