Alpine package depends on systemd #1530

Open
opened 2023-05-25 04:04:35 +00:00 by edward-shen · 3 comments

Description

Hey folks!

I was thinking of trying out Vikunja on a lxc container. I was able to fetch the .apk file but quickly became stuck:

Repro steps:

# wget https://dl.vikunja.io/api/0.20.4/vikunja-0.20.4-x86_64.apk
# apk add --allow-untrusted vikunja-0.20.4-x86_64.apk 
ERROR: unable to select packages:
  systemd (no such package):
    required by: vikunja-0.20.4[systemd]

Alpine Linux uses OpenRC as its init system, so having a dependency on systemd here is incorrect. As far as I can tell, there's no way to actually install systemd on an Alpine Linux system.

I can use a different base image as a workaround, but that really inflates the container size so I'd rather not if possible.

Vikunja Frontend Version

n/a

Vikunja API Version

0.20.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

n/a

Screenshots

No response

### Description Hey folks! I was thinking of trying out Vikunja on a lxc container. I was able to fetch the `.apk` file but quickly became stuck: Repro steps: ``` # wget https://dl.vikunja.io/api/0.20.4/vikunja-0.20.4-x86_64.apk # apk add --allow-untrusted vikunja-0.20.4-x86_64.apk ERROR: unable to select packages: systemd (no such package): required by: vikunja-0.20.4[systemd] ``` Alpine Linux uses [OpenRC](https://en.wikipedia.org/wiki/OpenRC) as its init system, so having a dependency on `systemd` here is incorrect. As far as I can tell, there's no way to actually install `systemd` on an Alpine Linux system. I can use a different base image as a workaround, but that really inflates the container size so I'd rather not if possible. ### Vikunja Frontend Version n/a ### Vikunja API Version 0.20.4 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? n/a ### Screenshots _No response_
edward-shen added the
kind/bug
label 2023-05-25 04:04:35 +00:00
Owner

Thanks for the report.

If you want to build a container with it, why don't you use the binary directly? (I've never done anything with LXC, don't know what's the best practice there?)

I don't know anything about the alpine init system, do you want to send a PR to add proper support for it?

Thanks for the report. If you want to build a container with it, why don't you use the binary directly? (I've never done anything with LXC, don't know what's the best practice there?) I don't know anything about the alpine init system, do you want to send a PR to add proper support for it?

I am running on LXC on Debian without problems, hope it helps :)

I am running on LXC on Debian without problems, hope it helps :)
Author

Hi! LXC is just how I set it up -- the issue is independent of LXC or containers in general.

I raised this issue because Vikunja offers an Alpine linux package here but the Alpine linux package doesn't work on a vanilla install of Alpine linux, which felt like a bug.

The primary benefit of having using the APK would be integrating with the init system to daemonize Vikunja without relying on other tools (which would kinda be against one of alpine linux's features: being small).

I can certainly give it a try but I can't promise anything in the near future. Anyone is also free to snipe me. :)

Hi! LXC is just how I set it up -- the issue is independent of LXC or containers in general. I raised this issue because Vikunja offers an Alpine linux package [here](https://vikunja.io/download/) but the Alpine linux package doesn't work on a vanilla install of Alpine linux, which felt like a bug. The primary benefit of having using the APK would be integrating with the init system to daemonize Vikunja without relying on other tools (which would kinda be against one of alpine linux's features: being small). I can certainly give it a try but I can't promise anything in the near future. Anyone is also free to snipe me. :)
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1530
No description provided.