Commit Graph

67 Commits

Author SHA1 Message Date
kolaente
675985b26c chore: increase healthcheck interval 2024-11-20 19:28:19 +01:00
ScribblerCoder
a5cc5e3783 Add healthcheck command (#2856)
Currently vikunja has a `/health` endpoint that was added in https://kolaente.dev/vikunja/vikunja/pulls/998. Docker/compose cannot utilize this feature since vikunja's docker image doesn't have curl/wget as it is pruned which is great for the image size. This PR adds a `healthcheck` command that send an http request to `/health` and exits with 0 or non-zero depending on the result.
It also adds a `HEALTHCHECK` to the docker image which calls this automatically.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2856
Reviewed-by: konrad <k@knt.li>
Co-authored-by: ScribblerCoder <omar2001.oh@gmail.com>
Co-committed-by: ScribblerCoder <omar2001.oh@gmail.com>
2024-11-20 18:04:55 +00:00
kolaente
6fe22aba39 fix!: disable 368 releases
We can either support arm64 or 368 release binaries - because the arm64 binaries are probably wider used today, we'll prioritize that. It is still possible to compile Vikunja from source on a 368 system, but would take quite a bit of effort in providing pre-built binaries.
Please reach out if you need assistance for 368 binaries.

See https://github.com/techknowlogick/xgo/issues/256#issuecomment-2462135108
2024-11-07 14:41:47 +01:00
kolaente
d6194b8f10 fix: upgrade xgo docker image everywhere 2024-11-05 15:03:14 +01:00
kolaente
de1eac5d36 fix: pin xgo to 1.22.x
Hopefully resolves build issues like https://drone.kolaente.de/vikunja/vikunja/8996/3/10
2024-11-02 19:00:02 +01:00
renovate
c36397188c chore(deps): update node.js to v22.11.0 2024-10-30 07:34:13 +00:00
renovate
21356ae08e chore(deps): update node.js to v22 (#2783)
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2024-10-29 07:38:12 +00:00
kolaente
b5035f9d2b chore(docker): use new env format 2024-08-29 11:19:46 +02:00
kolaente
07bd9de0c6 feat(docker): add opencontainer labels
Resolves https://github.com/go-vikunja/vikunja/issues/308
2024-08-29 11:19:21 +02:00
kolaente
670e605275 chore(deps): update dependency node to v20.16.0 2024-08-12 12:26:53 +02:00
renovate
4fb48e7ab3 chore(deps): update dependency node to v20.14.0 (#2334)
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2334
Reviewed-by: konrad <k@knt.li>
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2024-06-10 21:41:11 +00:00
renovate
be004793aa chore(deps): update dependency node to v20.12.2 (#2238)
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2238
Reviewed-by: konrad <k@knt.li>
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2024-04-18 20:46:48 +00:00
kolaente
19c9cd9bc2 fix(docker): don't install cypress in docker image 2024-03-20 09:38:28 +01:00
renovate
2fa576d9f5 chore(deps): update dependency node to v20.11.1 2024-03-10 12:24:06 +00:00
kolaente
e42a605597 fix: add root ca to final docker image
Since Vikunja's docker image is now based on the scratch image, the root ca certificates are not included by default anymore. This meant Vikunja could not check if the certificate presented by a remote host was valid, thus failing the connection. This meant it was impossible to use features communicating with external hosts such as webhooks, openid auth or gravatar.
2024-03-02 11:48:14 +01:00
kolaente
a0e812395f feat(docker)!: use scratch as base image
This change modifies the docker image so that it uses the scratch image instead of alpine. This is possible because the Vikunja binary is now entirely statically compiled, wich no dependencies on any system c libraries.

This also changes the default path for the sqlite file in the docker image (breaking). When using sqlite in docker, the VIKUNJA_DATABASE_PATH config variable or the file mount must be changed to prevent data loss.
2024-02-25 22:49:04 +01:00
kolaente
b1745edfa6 chore: remove unused build args 2024-02-09 19:44:52 +01:00
kolaente
f77ba0d4f1 feat: only one dockerfile with api and frontend 2024-02-09 13:42:05 +01:00
renovate
66cc0283e8 chore(deps): update alpine docker tag to v3.19 2023-12-20 10:37:29 +00:00
kolaente
21d0676399 chore(deps): update xgo to go 1.21 2023-10-11 23:05:51 +02:00
kolaente
191c154150 chore(build): use our own goproxy to prevent issues with packages not found 2023-09-12 13:34:35 +02:00
renovate
9e5cfb6fd6 chore(deps): update alpine docker tag to v3.18 2023-05-10 00:01:24 +00:00
kolaente
01fb738dc8 fix(build): make sure the docker image can access go tools 2023-04-02 18:55:30 +02:00
kolaente
33f0d0f85a fix: update xgo in dockerfile to 1.20.2
Resolves https://kolaente.dev/vikunja/api/issues/1445
2023-03-24 19:24:25 +01:00
kolaente
eb33655c1c fix(docker): make sure the vikunja user always exists and only modify the uid instead of recreating the user
Resolves #1392
2023-02-15 10:39:48 +01:00
kolaente
5d242f7e54 chore(deps): update xgo to 1.20 2023-02-02 17:44:57 +01:00
kolaente
32ff4b2cbd fix(docker): re-add expose 2023-02-01 18:39:57 +01:00
kolaente
6ddadba573 fix(docker): cross compilation with buildx 2023-02-01 15:06:55 +01:00
Yurii Vlasov
522bf7d2fc feat: refactored Dockerfile (#1375)
- Removed VIKUNJA_VERSION and custom git checkout, because it is not found in the repository. So it is not used anywhere.
- Optimized runner commands order
- Removed run.sh (it is not needed in fact)

Co-authored-by: Yurii Vlasov <yv@itsvit.org>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1375
Co-authored-by: Yurii Vlasov <yuriy@vlasov.pro>
Co-committed-by: Yurii Vlasov <yuriy@vlasov.pro>
2023-01-31 16:16:21 +00:00
kolaente
941d1e06c5 fix(build): downgrade xgo to 1.19.2 so that builds work again
See https://github.com/techknowlogick/xgo/issues/187
2022-12-01 19:00:48 +01:00
kolaente
a6e214b654 feat: use docker buildx to build multiarch images 2022-11-12 14:30:48 +01:00
renovate
c5bd09702a chore(deps): update dependency golang to v1.19 (#1228)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1228
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2022-10-01 15:05:12 +00:00
kolaente
b71e6f8049 fix(docker): use official go image instead of our own to build 2022-08-03 17:54:21 +02:00
kolaente
7ffe9b625e fix: switch back to alpine for everything, disable arm 32 docker builds 2022-08-03 14:05:07 +02:00
kolaente
280ac1164b fix(docker): switch to debian base image 2022-08-03 12:44:18 +02:00
kolaente
b6d7323cdf fix: use our own build image as base build image 2022-08-02 23:02:01 +02:00
kolaente
59796fd490 fix: switch to buster for build image
The current alpine image does (still) not work on arm. Buster does, so we're just using that.
2022-08-02 22:53:10 +02:00
kolaente
251b877015 chore: use our custom build image to build docker image 2022-08-02 22:01:29 +02:00
kolaente
63340b32f8 Revert "Update alpine Docker tag to v3.14 (#889)"
This reverts commit 81d469f6

See https://gitlab.alpinelinux.org/alpine/aports/-/issues/12764
2021-06-16 15:58:22 +02:00
renovate
81d469f687 Update alpine Docker tag to v3.14 (#889)
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/889
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2021-06-16 08:06:15 +00:00
kolaente
6f54d4d8be Revert "Update alpine Docker tag to v3.13 (#884)"
This reverts commit b4f08e88

Reverting because alpine 3.13 does not work on arm (but it does on arm64) - see https://drone.kolaente.de/vikunja/api/3070/4/3
2021-06-15 10:18:04 +02:00
renovate
b4f08e88ae Update alpine Docker tag to v3.13 (#884)
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/884
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2021-06-14 20:34:11 +00:00
konrad
015ca310e9 Add notifications package for easy sending of notifications (#779)
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/779
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
2021-02-07 21:05:09 +00:00
kolaente
6945d8ba69 Pin golang alpine builder image to 3.12 to fix builds on arm 2021-01-26 21:02:59 +01:00
kolaente
c1ad9d58f5 Revert "Update alpine Docker tag to v3.13 (#768)"
This reverts commit 32c021e2

The alpine image in version 3.13 has issues, therefore I'm reverting that commit until they are fixed.
2021-01-16 14:52:38 +01:00
renovate
32c021e2b3 Update alpine Docker tag to v3.13 (#768)
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/768
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2021-01-15 06:49:08 +00:00
kolaente
471d1b0ec5 Fix dockerimage build 2020-09-03 18:08:26 +02:00
kolaente
53cfa99912 Remove vendored dependencies 2020-06-28 14:00:10 +02:00
renovate
9c4c265767 Update alpine Docker tag to v3.12 (#573)
Update alpine Docker tag to v3.12

Reviewed-on: https://kolaente.dev/vikunja/api/pulls/573
2020-05-29 21:44:01 +00:00
kolaente
4204af255c Add ability to run the docker container with configurable user and group ids 2020-05-22 21:18:11 +02:00