2023-01-27 20:25:52 +00:00
|
|
|
FROM python:3.9-buster
|
2022-06-21 02:26:06 +00:00
|
|
|
WORKDIR /opt/proxstar
|
2023-01-27 20:30:56 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils git
|
2022-06-21 02:26:06 +00:00
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY start_worker.sh start_scheduler.sh .
|
2023-01-31 18:31:29 +00:00
|
|
|
COPY .git .git/
|
2022-06-21 02:26:06 +00:00
|
|
|
COPY *.py .
|
|
|
|
COPY proxstar ./proxstar
|
2022-07-30 02:24:52 +00:00
|
|
|
RUN touch targets && chmod a+w targets # This is some OKD shit.
|
Update VNC functionality for Proxmox 7 (#148)
Chown `targets`, Add run and kill scripts
Lol Joe figured it out
* Dude it works holy shit
We need to fix some logistical bugs, probably, and also like remove dead
code lol
* Open VNC session on the node that the VM belongs
Figured out why I couldn't open a session on anything but 01. It was
because I was making the API call on proxmox01-nrh. So that's where the
session opened. I hope that by doing this, it will balance the load
(what little there is) from VNC sessions.
* Update websockify-related tasks
* Remove SSH key from build
* Add option to specify VNC port.
Should be 443 for OKD, probably 8081 for development.
This hosts a smattering of fixes, acutally uses gunicorn properly(?),
launches websockify correctly, and introduces MORE DEAD CODE!
TODO: Fix the scheduling system
* Make things not crash as much :)
* Remove obviously dead code
There's still some code in here that may require more careful
extraction, testing, and review, so I'm saving that for another PR.
* Fix Joe's complaints
* Replace hardcoded URL
2022-07-30 00:56:00 +00:00
|
|
|
ENTRYPOINT ddtrace-run gunicorn proxstar:app --bind=0.0.0.0:8080
|