-
-
Notifications
You must be signed in to change notification settings - Fork 294
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 support #336
Comments
@NOXCIS Perhaps you can support Donald in this. |
@DaanSelen @donaldzou the install script is the only thing stopping alpine support, i think. also a bit of the gunicorn venv if i remember correctly. |
Yes I'm currently testing on that |
Hi all, please view this install script on Alpine linux. We might need to change some commands for Docker but this works on the standard Alpine Linux ISO: Note On line 3, please replace it with the fastest repo for you :) setup-interfaces -a ; \
rc-service networking --quiet start ; \
printf "https://mirrors.aliyun.com/alpine/latest-stable/main\nhttps://mirrors.aliyun.com/alpine/latest-stable/community" > /etc/apk/repositories ; \
apk update ; \
apk add wireguard-tools python3 python3-dev git iptables net-tools gcc musl-dev linux-headers sudo ; \
git clone -b v4.0-alpine-linux https://github.com/donaldzou/WGDashboard.git ; \
cd ./WGDashboard/src ; \
chmod +x ./wgd.sh ; \
./wgd.sh install |
If this works I'll merge the |
@donaldzou |
@donaldzou How are you testing alpine? |
@NOXCIS, I'm using this command. Had to install |
@donaldzou Which do you think is better? |
@NOXCIS I think is better to have C dev tools pre installed, but leave the Python stuff to be download it fresh? And I feel like installing the C dev tools takes much longer than installing Python venv |
Build times are not practical for 32bit ARM when installing the dev tools and trying to compile psutil & bcrypt. However I still agree with you on installing the dev tools over giving the venv access to site system packages even if the whole thing is containerized. I'll look into other options so i can keep running this on a potato 🥔 if need be. |
@donaldzou Nevermind its two lines
prebuilt potato chips are good. |
Should we still keep it if someone used Alpine without Docker😂😂 |
@donaldzou |
Do you want to use multistage builds to compile bcrypt and psutil modules? |
@donaldzou @DaanSelen |
If you reference the code somewhere I can look at the code later. |
@DaanSelen Sure i just have to do some clean up, it was alot of trial and error
Yeah thats how i got the image to be so small without poking holes in the python venv. |
@DaanSelen @donaldzou Alpine Docker build here |
Let me know if the clean up is done and I can merge it into main :) |
The new Docker configuration removed a lot of features while breaking others, why has this been merged with main? |
@DaanSelen Im working on a dotenv implement to safely pass environment variables via a .env file. Check out my Wiregate repo prion branch for an example. |
For the purpose of the Docker container and in general compatability it would be cool if there was Alpine Linux support.
Relevant: #334
The text was updated successfully, but these errors were encountered: