Refactored Dockerfile #1375

Merged
konrad merged 6 commits from vlasov-y/api:main into main 2023-01-31 16:16:22 +00:00
Member
  • 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)
- 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)
vlasov-y added 1 commit 2023-01-27 17:47:40 +00:00
Refactored Dockerfile
Some checks failed
continuous-integration/drone/pr Build is failing
aaaa50a75a
vlasov-y added 1 commit 2023-01-27 17:49:12 +00:00
Nothing special. Just regular commit.
Some checks failed
continuous-integration/drone/pr Build is failing
d23f9190c3
konrad requested changes 2023-01-29 14:49:45 +00:00
Dockerfile Outdated
@ -51,1 +33,3 @@
EXPOSE 3456
RUN apk --update --no-cache add tzdata && \
addgroup -g 1000 vikunja && \
adduser -s /bin/sh -D -G vikunja -u 1000 vikunja -h /app/vikunja -H && \
Owner

The uid and gid of the Vikunja user has to be adjustable at runtime to avoid permission problems with the sqlite db (if used) or file uploads. That's what the script was used for.

The uid and gid of the Vikunja user has to be adjustable at runtime to avoid permission problems with the sqlite db (if used) or file uploads. That's what the script was used for.
Author
Member

a, okay, will do

a, okay, will do
Author
Member

Done. I have created an entrypoint script back and run it using tini. Now user creation can be controlled with env variables, which are set to 1000:1000 by default, but can be overridden during the runtime

Done. I have created an entrypoint script back and run it using [tini](https://github.com/krallin/tini). Now user creation can be controlled with env variables, which are set to 1000:1000 by default, but can be overridden during the runtime
vlasov-y added 1 commit 2023-01-30 07:36:45 +00:00
Creation of user in the runtime.
All checks were successful
continuous-integration/drone/pr Build is passing
eb9b1b47fc
Added tini
vlasov-y requested review from konrad 2023-01-30 07:37:53 +00:00
vlasov-y added 1 commit 2023-01-30 11:20:40 +00:00
Merge branch 'main' into main
All checks were successful
continuous-integration/drone/pr Build is passing
92cf9b9341
konrad reviewed 2023-01-30 21:35:55 +00:00
Dockerfile Outdated
@ -30,2 +31,3 @@
COPY --from=build-env /build/vikunja-* vikunja
ENV VIKUNJA_SERVICE_ROOTPATH=/app/vikunja/
ENV VIKUNJA_PUID 1000
ENV VIKUNJA_PGID 1000
Owner

Can you rename these to just PUID and PGID? As documented here: https://vikunja.io/docs/install-backend/#setting-user-and-group-id-of-the-user-running-vikunja

Can you rename these to just `PUID` and `PGID`? As documented here: https://vikunja.io/docs/install-backend/#setting-user-and-group-id-of-the-user-running-vikunja
Author
Member

Okay

Okay
Author
Member

Done, please check

Done, please check
vlasov-y added 2 commits 2023-01-31 07:11:52 +00:00
konrad reviewed 2023-01-31 16:15:55 +00:00
konrad left a comment
Owner

Thanks!

Thanks!
konrad merged commit 522bf7d2fc into main 2023-01-31 16:16:22 +00:00
Sign in to join this conversation.
No description provided.