Commit Graph

21 Commits

Author SHA1 Message Date
Earlopain
9a97e02b20
[Tags] Import the external autocomplete service
This has been used in production for a while already, and now I
bothered to put it up here
2023-04-06 19:03:51 +02:00
Earlopain
7f4344936e
[Ruby] Bump version 2023-04-03 17:39:37 +02:00
Earlopain
a0a8d7c1ce
[Docker] Use mutlistage build for iqdb
This also pulls in ruby 3 as the repos dependencies got updated
2023-03-09 16:52:23 +01:00
Earlopain
257e717e56
[README] Document windows executable bit issues
This also adds/removes +x on a few files which should/shouldn't have it.
2023-03-04 14:20:39 +01:00
Earlopain
fbf33f7d29
[DB] Remove test_parser extension
Usage has been removed in 5215876862 and pr #476
2023-02-26 16:41:02 +01:00
Earlopain
09be4cded9
[CI] Commit database.yml
Makes the test setup easier.
Also eases prod deploys with the two separate db pool sizes.
2023-02-25 14:41:07 +01:00
Earlopain
8b28393596
[Misc] Move to org 2023-01-23 20:43:56 +01:00
Earlopain
26532478fd
[Docker] Remove nginx referer check
This allows me to easily overwrite the storage manager base url
and access the dev site from my phone with images successfully loading.
Also remove some other unused stuff.
2022-12-24 14:32:31 +01:00
Earlopain
934c8e3b87
[Docker] Run daily maintenance
Remove whenever, it's not used in prod. Prod uses systemd timers.
This executes the daily task on container startup. My PC isn't going to
run when this would execute 99% of the time.
2022-12-09 18:16:53 +01:00
Earlopain
79fd71e1f6
[Docker] Use healthcheck to wait for elasticsearch
Fixes #446
2022-11-09 18:18:30 +01:00
Earlopain
36df31eb74
[Docker] Wait until elasticsearch is up for tests 2022-03-28 17:51:53 +02:00
Earlopain
12216ad224
[Uploader] Prevent uploads of to large local files
The correct error message was not displayed to the user, since nginx/cloudflare
are responsible for preventing large uploads.
2022-02-05 15:07:14 +01:00
Earlopain
05c704b83d
Merge pull request #353 from zwagoth/docker-iqdb
[Docker] Add iqdb/s to composer
2022-01-05 14:03:26 +01:00
Earlopain
82d7ff59e0
[Docker] Install gems and js packages into the image
To see the changes persisted into the container run `docker-compose` build
`docker-compose down -v` no longer requires to reinstall gems/packages
It's also possible to have branches with different gemfiles, without having
to install between them constantly
2022-01-05 13:41:41 +01:00
Earlopain
65383ca5c1
[Docker] Another batch of review improvements
* Fix boolean value in compose file. I just removed the variable altogether,
the iqdb site already checked against iqdbs_server.present? anyways
* Add checksum check for iqbd download
* Fix newline in iqdb patchfile
2021-11-18 19:13:00 +01:00
Earlopain
71aab10d18
[Docker] Add iqdb/s to composer
Closes #315
2021-11-18 01:13:38 +01:00
Earlopain
ea321b118a
[Docker] A few small improvements
* Mark secrets as development only
* Parallelize test_parser build. I don't think there are enough files
to even hit the limit for me but good practice nontheless
* Rebuild postgres when test_parser changes. There has been no activity
in 6  years  and I don't expect this to change
2021-11-16 23:45:04 +01:00
Earlopain
74b3ab46c8
[Docker] Don't send build context 2021-11-16 22:08:23 +01:00
Earlopain
59e80b7a4d
[Docker] Implement recommendations from review
* Use alpine as the base image
* Parallelize bundle install

Using alpine as base make is feasable to use the provides vips library.
The version is actually newer than what was installed previously.

Other stuff I did:
* Set SECRET_TOKEN/SESSION_SECRET_KEY from docker-compose
* Mute elasticsearch startup logspam
* Execute image as root. This means mounted volume do'nt need to  be chowned
2021-11-16 21:32:40 +01:00
Earlopain
ce871e412c
[Setup] Improve docker setup
* Reduces the image size by using alpine and cleaning up after some things
* Simplify the initial setup instructions slightly
* Access via localhost:3000 instead of e621.local
2021-11-14 14:12:51 +01:00
Earlopain
7c972ecf91
[Setup] Replace vagrant with docker 2021-11-14 03:31:26 +01:00