Commit graph

280 commits

Author SHA1 Message Date
Michael Mayer
95bd037928 CI: Change docker-* order in Makefile 2022-02-20 13:21:11 +01:00
Michael Mayer
17ec461a15 CI: Add docker-*-arm targets to Makefile 2022-02-20 12:31:22 +01:00
Michael Mayer
947f7a5785 CI: Remove tab char from test-js in Makefile 2022-02-19 19:04:45 +01:00
Michael Mayer
68cbefdf29 Docker: Update ARMv7 base image 2022-02-19 18:46:09 +01:00
Michael Mayer
925bb367ea CI: Create tar.gz archives from build directories 2022-02-19 17:13:55 +01:00
Michael Mayer
73e6d1d061 CI: Change Docker image build order in Makefile 2022-02-19 15:53:21 +01:00
Michael Mayer
4247066c1b Docker: Reduce image layers and improve build scripts 2022-02-19 15:32:52 +01:00
Michael Mayer
50f5c9f2ef CI: Refactor build script 2022-02-16 16:52:35 +01:00
Michael Mayer
bf225185be CI: Update Makefile 2022-02-16 16:37:53 +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
2a34bf4a83 Develop: Update Makefile 2022-02-16 15:43:31 +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
f1acf801b0 Docker: Update production tags for armv7, bullseye, and buster 2022-02-16 14:48:05 +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
f8e94ab4a5 Docker: Add "preview" and "release" targets for Debian Buster & Bullseye 2022-02-15 20:03:13 +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
ef5c7a30ad Docker: Upgrade NPM before starting production build 2022-02-09 19:31:57 +01:00
Michael Mayer
7c5348c52e Docker: Add DynDNS client for DigitalOcean 2022-01-08 17:53:51 +01:00
Michael Mayer
006b5bb704 Code Quality: Add "gofmt -w -s pkg internal cmd" to "make fmt-go"
gofmt formats Go source code, where -s stands for "simplify"
2022-01-08 12:12:00 +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
97187578a2 Docker: Update Makefile for ARMv7 build #1815 2021-12-14 21:02:27 +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
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
911cbee06d CI: Update scripts for ARMv7 Docker image builds 2021-12-10 16:33:32 +01:00
Michael Mayer
165d71bcef CI: Update Makefile for ARMv7 Docker image builds 2021-12-10 16:25:07 +01:00
Michael Mayer
724aef3f11 CI: Update Makefile 2021-12-10 15:37:35 +01:00
Michael Mayer
77621a7221 CI: Revert unnecessary "messages.pot" file change when running generate 2021-12-10 13:54:42 +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
e2e5fd11d4 CI: Add "export GODEBUG=http2client=0" to Makefile 2021-12-10 09:06:37 +01:00
Michael Mayer
4ee54a369f CI: Enable multi-arch build for photoprism/goproxy 2021-12-10 09:02:53 +01:00
Michael Mayer
4def62fb1e CI: Add Go proxy 2021-12-09 18:48:44 +01:00
Michael Mayer
714e65d2da CI: Remove "dep-go" from "dep" target in Makefile 2021-12-09 15:19:49 +01:00
Michael Mayer
588503a6aa CI: Add deploy-release.sh script 2021-12-03 16:49:43 +01:00
Michael Mayer
0575ab2276 Places: Add state name normalizations for Germany #1664 2021-11-11 17:10:52 +01:00
Michael Mayer
6e2426288c Docker: Add config for dummy-webdav & oidc services 2021-11-09 17:40:53 +01:00
Michael Mayer
88972a4094 Makefile: Rename reset-test-databases to reset-testdb 2021-11-09 17:32:51 +01:00
Michael Mayer
3417539218 Docker: Upgrade Ubuntu base image from 21.04 to 21.10 #1632 2021-10-21 16:53:04 +02:00
Michael Mayer
66e40c7429 CI: Update .drone.yml 2021-09-22 10:34:34 +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
c7e28d688f Makefile: Reformat imports when running "make fmt-go" 2021-08-14 18:18:25 +02:00
theresa
560758c8ba Tests: Add make commands for public=false test suite 2021-08-13 21:25:15 +02:00
Michael Mayer
ddc19594ad Makefile: Add build target for DigitalOcean cloud image 2021-08-06 08:57:50 +02:00
Michael Mayer
f2685698b8 Makefile: Add "dev" target to install latest Go / NPM in dev environment 2021-08-05 11:09:26 +02:00
Michael Mayer
25dbebd5b7 People: Add facenet.zip to development base image #22 #1406 2021-07-16 15:17:27 +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
2b98f72f2f CI: Update .drone.yml #1158 #1432
Move scripts/install-qemu.sh from Makefile to .drone.yml
2021-07-15 16:26:21 +02:00
Michael Mayer
1744b17cfe CI: Add "linux/arm" as target for preview Docker images
Depending on the build time, we can keep this.
2021-07-08 18:39:13 +02:00
Michael Mayer
cdfa420fb0 Docker: Provide multi-arch build for webdav dummy #1158 #1328 2021-06-02 12:25:35 +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
4c3dcc7e68 Dockerfiles: Update arm images and build config 2021-05-15 15:07:40 +02:00
Michael Mayer
77ddcecf29 Dockerfiles: Upgrade Ubuntu base image & Go version
Reduces the number of layers by combining commands and env variables.
2021-05-15 14:05:52 +02:00
Michael Mayer
5641203d1b Frontend: Update package-lock.json and Makefile 2021-05-13 17:55:36 +02:00
Michael Mayer
d8322a5935 Update Makefile 2021-05-01 17:42:19 +02:00
Michael Mayer
25adf01d79 Backend: Upgrade Go dependencies 2021-04-19 12:24:14 +02:00
theresa
e732a7b860 Tests: Update delete test to check filesystem 2021-02-17 15:51:21 +01:00
theresa
6a3103cf2f Tests: Remove long test commands from makefile and package.json 2021-02-15 15:58:12 +01:00
Michael Mayer
2bbcc987e3 Videos: Upgrade Ubuntu base image to 20.10 #703 2021-02-15 12:08:04 +01:00
Michael Mayer
7d52efc39d Docker: Update photoprism/development image 2021-02-14 19:15:29 +01:00
theresa
96cb6eeed6 Tests: Update test commands in makefile and package.json 2021-02-07 13:10:46 +01:00
Krassimir Valev
bbbc6a737e
Dockerfile for arm32v7 (#969) 2021-02-05 18:27:39 +01:00
theresa
b5492e361e Tests: Update make commands for acceptance tests 2021-01-15 17:08:33 +01:00
Michael Mayer
3aee5e8d78 Docker: Use variables to set UID & GID in development environments 2021-01-15 15:02:06 +01:00
Ben McCann
a747cca962
Fix broken make command (#850) 2021-01-07 18:51:56 +01:00
Michael Mayer
e2d3055015 CI: Update .drone.yml and Makefile
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-12-26 18:42:09 +01: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
7940786ce9 UX: Refactor config options to be more intuitive
Make sure to update your local config files when upgrading as
the name of some config values has changed. The default
config path has changed from "settings" to "config".
2020-12-18 09:11:42 +01:00
Michael Mayer
cd59b1b8ca Update Makefile after changing default name of config path 2020-12-17 18:26:58 +01:00
Michael Mayer
449fb7a2c1 Backup and restore albums from YAML files #567 2020-12-17 18:24:55 +01:00
Michael Mayer
b2b9869598 Update Makefile 2020-12-11 23:08:49 +01:00
Michael Mayer
3464bf35ed Config: Add backup path parameter 2020-12-04 11:02:19 +01:00
Michael Mayer
d637637be6 Makefile: Add fmt-imports to fmt target 2020-11-21 18:15:16 +01:00
Michael Mayer
b540e4ec03 Frontend: Fix Photo.localMonthString()
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-11-02 00:30:26 +01:00
Theresa Gresch
79357aefef Frontend: Add acceptance test 2020-10-20 18:30:55 +02: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
5fa47652ee Backend: Refactor config initialization
Signed-off-by: Michael Mayer <michael@lastzero.net>
2020-10-08 08:52:03 +02:00
Michael Mayer
4d932c64f9 Makefile: Pull photoprism/photoprism:latest before building demo
Signed-off-by: Michael Mayer <michael@lastzero.net>
2020-10-07 14:13:02 +02:00
Theresa Gresch
b20c88eace Backend: Adapt make file to not use --sidecar-hidden option 2020-09-07 16:45:55 +02:00
Michael Mayer
9e5cc549e0 Add assets/locales to docker image #487
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-09-07 11:16:29 +02:00
Michael Mayer
f22744770c Docker: Update images and add security_opt to docker-compose.yml
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-25 14:57:45 +02:00
Michael Mayer
c5beaeaddb Backend: Upgrade Go dependencies
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-19 12:01:54 +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
6e2849fba2 Index: Don't stack files based on XMP InstanceID
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-18 00:45:53 +02:00
Michael Mayer
9eef9d1abd CI: Run scripts/codecov.sh in container again (volume not mounted)
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-14 13:50:26 +02:00
Michael Mayer
5595fb0744 CI: Run scripts/codecov.sh outside container
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-14 13:41:35 +02:00
Michael Mayer
706094f914 RAW: Install assets/profiles #445
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-08-13 08:26:20 +02:00
Theresa Gresch
d6a74713f2 Frontend: Change port for acceptance tests 2020-06-28 12:53:13 +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
Theresa Gresch
949b20ae9c Backend: Refactor make command for restore-db 2020-06-23 13:07:33 +02:00
Theresa Gresch
4cdfde299d Backend: Adapt make command for acceptance tests 2020-06-05 18:12:43 +02:00
Michael Mayer
b1f7cb4264 Frontend: Improve navigation and fix unit tests
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 12:52:41 +02:00
Michael Mayer
065059b4bc Frontend: Disable JS unit tests
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-31 02:51:45 +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
0b1bcf0d4a Replace TiDB with SQLite for improved stability #66
As a side effect, we need less configuration values.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-30 14:52:47 +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
03ec4b586d Initial commit for folders and moments #154 #260 #331
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-23 20:58:58 +02:00
Michael Mayer
71c849c23b Backend: Update photo counts after sync download
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-05-11 10:48:18 +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
7d840d4a46 Makefile: Don't run Go coverage tests in verbose mode
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 17:00:05 +02:00
Michael Mayer
8eb5eab13c Makefile: Add test-parallel target
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 16:43:08 +02:00
Michael Mayer
4f05fde794 Update build environments 2020-04-28 11:51:42 +02:00
Michael Mayer
a8c48ab40e Initial API and entities for link sharing
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-08 13:24:06 +02:00
Michael Mayer
a393a25e01 Backend: Remove export path to avoid confusion #276
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-06 23:04:52 +02:00
Michael Mayer
b86f68c3f3 Backend: Add WebDAV client and dummy test server #225
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-03-27 11:01:41 +01:00
Michael Mayer
09dbc762a3 Tests: Add -parallel=1 to avoid db errors #237
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-02-21 02:47:06 +01:00
Michael Mayer
f99bcb0bdf Docker: Refactor directory structure for ARM64 #109
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-19 23:28:59 +01:00
Michael Mayer
64a16a27b0 Backend: Upgrade darktable and don't run more than one command at once #202
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-17 01:37:06 +01:00
Michael Mayer
c6866bb746 Backend: Update label rules
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-13 11:08:50 +01:00
Michael Mayer
90df882376 Backend: Update label rules
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-12 15:39:45 +01:00
Michael Mayer
f8a45b14d9 Backend: Move reusable packages to pkg/
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-01-12 14:00:56 +01:00
Michael Mayer
be8075b96f Makefile: Add clean-install and clean-local targets 2020-01-04 10:10:55 +01:00
Michael Mayer
049055b66b Backend: Fix Makefile info message
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-30 20:10:03 +01:00
Michael Mayer
8c691f4938 Frontend: Update dependencies
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-18 14:30:39 +01:00
Michael Mayer
78eae2f14e Backend: Add NSFW detector
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-14 15:41:37 +01:00
Michael Mayer
9f8bad1ffa Frontend: Code & test clean-up
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-05 03:58:54 +01:00
Michael Mayer
6cbcc348b7 Dockerfile: Upgrade to Go 1.13
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-09-19 09:22:44 -07:00
Theresa Gresch
c9b47f552c Set BABEL_ENV in test-js command 2019-07-24 10:05:45 +02:00
Michael Mayer
336d4b5cdc Disable go unit test cache for code coverage reports 2019-07-15 20:30:40 +02:00
Michael Mayer
695ff61f4a Set db password in Travis CI config to fix tests 2019-07-14 18:04:34 +02:00
Michael Mayer
3655ebf9d8 Use daemon server mode to run acceptance tests #58 2019-06-30 05:38:39 +02:00
Michael Mayer
243795c7d5 Use local user directories for installation #66 2019-06-29 19:34:55 +02:00
Michael Mayer
84aefc1272 Add Makefile & config to TensorFlow 1.14.0 build image #83 2019-06-25 23:08:53 +02:00
Michael Mayer
1b0b41b824 Add static build target #83 2019-06-23 03:21:12 +02:00
Michael Mayer
8642b6f664 Proof-of-concept for labels and search filters 2019-06-09 04:37:02 +02:00
Michael Mayer
c230de6b2b Add time zone info to photos (if available) 2019-06-07 00:04:34 +02:00
Michael Mayer
b05e77cb10 Fix "install-assets" target in Makefile 2019-06-06 16:40:32 +02:00
Michael Mayer
a6131eeddd Move all config files to assets/config and resources to assets/resources 2019-06-05 18:25:20 +02:00
Michael Mayer
df995b4f15 Rename tags to labels incl priority, source and uncertainty 2019-06-04 18:26:41 +02:00
Michael Mayer
3ceec890e3 Upgrade TiDB server to 2.1.11 2019-06-04 01:09:56 +02:00
Michael Mayer
2f5175c1f4 Add info to test make targets 2019-06-03 23:55:01 +02:00
Michael Mayer
a38fe29953 Colorize go test output using kyoh86/richgo 2019-06-03 16:31:15 +02:00
Michael Mayer
4ffdb00490 Fix static assets path in Makefile 2019-05-22 14:17:43 +02:00
Michael Mayer
3ac22ab105 Frontend: Add clear button to photo menu #15 2019-05-21 02:27:08 +02:00
Michael Mayer
6670bb30de Fix frontend tests 2019-05-20 20:06:26 +02:00
Theresa Gresch
f05e07d1d6 Renames p-navigation-open to p-navigation-show, adds first testcafe tests and configuration, Moves unit tests into unit folder, Adds make test-acceptance command 2019-05-20 19:02:29 +02:00
Michael Mayer
8124a8cde1 Use label rules to optimize image classification 2019-05-16 08:41:16 +02:00
Michael Mayer
c5e2783b8d Upgrade Go to 1.12.5, improve Makefile and add chromium-browser 2019-05-09 06:18:22 +02:00
Michael Mayer
07c5c6a580 Use https for loading map tiles, see #3 2019-05-07 17:02:15 +02:00
Michael Mayer
21feb49c3c Delete node_modules when running "make clean" 2019-05-07 16:16:39 +02:00
Michael Mayer
940e2a69f9 Upgrade Webpack and JS dependencies 2019-05-07 15:41:33 +02:00
Michael Mayer
53a5d84653 Switch from yarn to npm and other frontend improvements, see #3
See https://iamturns.com/yarn-vs-npm-2018/
2019-05-07 02:05:01 +02:00
Michael Mayer
3389b5115e Use hash to keep TensorFlow model up to date 2019-05-04 00:53:02 +02:00
Michael Mayer
818019a7ec Use nasnet mobile instead of inception v1 for image classification 2019-04-30 13:17:01 +02:00
Michael Mayer
ffc64cceb0 Use 3x3 thumbnail for color indexing #7
Other implementations were unstable due to the use of random numbers.
This seems to be fast and also enables us to search specific parts
of an image. 16 colors are indexed (Material Design).
2019-04-26 02:22:53 +02:00
Michael Mayer
b294ad10b3 Fix TestMediaFile_GetColors_Slow test 2019-04-18 20:16:09 +02:00
Michael Mayer
c157020dca Docker: Upgraded Go, TensorFlow and TiDB 2019-04-18 06:33:34 +02:00
Michael Mayer
cc44c3e580 Move favicons to server public directory, see #50 2018-12-21 04:05:14 +01:00