New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alpine Linux doesn't work #383
Comments
wireguard-manager/wireguard-manager.sh Lines 90 to 92 in fb33633
Here's a breakdown of the issues and potential approaches for compatibility with Alpine Linux: 1. 'cut' command failure:
2. Systemd dependency:
Additional considerations:
Recommendations:
I'm ready to assist further if you have more specific questions or require guidance on implementing these solutions. |
with alpine 3.19, it would be nice to actually test if it works on alpine before putting in alpine as supported since it seems like it wasnt checked |
https://gist.github.com/Prajwal-Koirala/6055d0e32e02f72d0bbec913d2d509f0
This command downloads the Alpine image to your local machine.
Once you run these commands, you will be inside the Alpine Linux environment in your container. You can then proceed to install packages or run commands within the Alpine Linux environment as needed. Remember, when you exit the shell session, the container will stop, but it will not be deleted. You can restart the same container or create a new one as required.
|
# Use a more recent version of Alpine
FROM alpine:latest
# Update package list and install bash, git, Python, and pip
RUN apk update && apk add --no-cache \
bash \
git \
python3 \
py3-pip
# Clone the systemd repository
RUN cd /tmp && git clone https://github.com/systemd/systemd
# Set unicode in rc.conf
RUN echo "unicode=\"YES\"" >> /etc/rc.conf
# Install build dependencies
RUN apk add --no-cache --virtual .build_deps \
autoconf \
file \
g++ \
gcc \
libc-dev \
make \
pkgconf \
ninja \
util-linux \
pciutils \
usbutils \
coreutils \
binutils \
findutils \
grep \
build-base \
gcc \
abuild \
binutils-doc \
gcc-doc \
gperf \
libcap \
libcap-dev \
valgrind-dev
# Create a virtual environment and install meson
RUN python3 -m venv /venv && \
source /venv/bin/activate && \
pip3 install meson
# Compile systemd (this might not work as expected)
RUN source /venv/bin/activate && \
cd /tmp/systemd && \
meson build && \
ninja -C build
# Cleanup: Remove build dependencies and deactivate virtual environment
RUN apk del .build_deps && \
deactivate |
/tmp/systemd # bash /usr/local/bin/wireguard-manager.sh
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
v3.19.0-341-gfaf9f17e39b [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
v3.19.0-346-g8109425de2e [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
OK: 22841 distinct packages available
OK: 127 MiB in 115 packages
/usr/local/bin/wireguard-manager.sh: line 118: systemd-detect-virt: command not found
Error: the virtualization is currently not supported. Please stay tuned for future updates.
/tmp/systemd # systemd-detect-virt
/bin/sh: systemd-detect-virt: not found
/tmp/systemd # apk add systemd
ERROR: unable to select packages:
systemd (no such package):
required by: world[systemd]
/tmp/systemd #
/tmp/systemd # apk add systemd
ERROR: unable to select packages:
systemd (no such package):
required by: world[systemd]
/tmp/systemd # |
Describe the bug
The script doesn't run properly on Alpine Linux.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: