Skip to content
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

feature/idea: add docker/unraid? #13

Open
plastertic opened this issue May 14, 2021 · 4 comments
Open

feature/idea: add docker/unraid? #13

plastertic opened this issue May 14, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@plastertic
Copy link

Iv attempted to run this on unraid in a vm with mixed results (the fault of my vm)
running the app in a docker container would be much more elegant if there could be a webUI

@plastertic plastertic changed the title is:open label:enhancement docker/unraid? feature/idea: add docker/unraid? May 14, 2021
@DesertCookie
Copy link

I second this request, though I have had less issue getting it set up in a VM in Unraid, apart from the fact that I cannot authenticate and don't know how to establish the Wireguard connection.

@jonnyhyman jonnyhyman added the enhancement New feature or request label May 14, 2021
@jonnyhyman
Copy link
Owner

Never heard of Unraid until now! I love this idea! Thanks for suggesitng.

I'm not entirely sure the OS-control limitations of a docker container but I'll look into it.

@plastertic
Copy link
Author

plastertic commented May 26, 2021

Never heard of Unraid until now! I love this idea! Thanks for suggesting.

I'm not entirely sure the OS-control limitations of a docker container but I'll look into it.

I have been trying to learn how to make docker images myself. While I still don't know what I'm doing so take this with a grain of salt... I can tell you that It should be possible. postgress and wireguard both work inside unraid as a docker container I have actually managed to get a database setup that way but I havn't been able to configure PGadmin properly so its kinda a pain to manage and I really wish it had a gui. On the topic of the Gui thing is also doable with making a x server virtual display that gets access via vnc / webgui

Unraid has a community made app store that makes it super easy to setup docker images with pre made templates.

@plastertic
Copy link
Author

this was all the progress I made. I got the app working I think but getting it to open in vnc i haven't figured out.
`FROM ubuntu
ENV USER=root
ENV PASSWORD=password1
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
LABEL maintainer="Parhaam"

RUN apt update -y
RUN apt upgrade -y

RUN apt-get update && apt-get install -y
wireguard
python3.6
python3-pip
git &&
pip3 install PyQt5==5.15.2 cryptography psycopg2-binary elevate &&
git clone https://github.com/jonnyhyman/ResolveCollaboration.git &&
echo "tzdata tzdata/Areas select America" > ~/tx.txt &&
echo "tzdata tzdata/Zones/America select New York" >> ~/tx.txt &&
apt-get install -y gnupg apt-transport-https wget software-properties-common ratpoison novnc websockify libxv1 libglu1-mesa xauth x11-utils xorg tightvncserver &&
debconf-set-selections ~/tx.txt &&
wget https://svwh.dl.sourceforge.net/project/virtualgl/2.6.3/virtualgl_2.6.3_amd64.deb &&
wget https://iweb.dl.sourceforge.net/project/turbovnc/2.2.4/turbovnc_2.2.4_amd64.deb &&
dpkg -i virtualgl_.deb &&
dpkg -i turbovnc_
.deb &&
mkdir ~/.vnc/ &&
echo $PASSWORD | vncpasswd -f > ~/.vnc/passwd &&
chmod 0600 ~/.vnc/passwd &&
echo "set border 1" > ~/.ratpoisonrc &&
echo "exec python3 /ResolveCollaboration/rmc/rmc_server.py">> ~/.ratpoisonrc &&
openssl req -x509 -nodes -newkey rsa:2048 -keyout ~/novnc.pem -out /novnc.pem -days 3650 -subj "/C=US/ST=NY/L=NY/O=NY/OU=NY/CN=NY emailAddress=[email protected]"
EXPOSE 80
CMD /opt/TurboVNC/bin/vncserver && websockify -D --web=/usr/share/novnc/ --cert=
/novnc.pem 80 localhost:5901 && tail -f /dev/null`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants