docker: get working

This commit is contained in:
Cyberes 2023-10-15 16:50:04 -06:00
parent 407e991c52
commit bc74a3dc50
4 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM cyberes/paperspace-vllm-base as runtime
FROM cyberes/vllm-paperspace-base as runtime
RUN useradd -ms /bin/bash apiserver
RUN usermod -s /bin/bash root
@ -26,7 +26,7 @@ RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/s
# Create the necessary directory for sshd
RUN mkdir /var/run/sshd
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY start-vllm.sh /app/start-vllm.sh
COPY init-container.sh /app/init.sh
COPY start-container.sh /app/start.sh

View File

@ -4,5 +4,5 @@
git pull
git pull
sudo docker build . -f Dockerfile.base -t cyberes/paperspace-vllm-base --no-cache && sudo docker push cyberes/paperspace-vllm-base:latest
sudo docker build . -f Dockerfile.base -t cyberes/vllm-paperspace-base --no-cache && sudo docker push cyberes/vllm-paperspace-base:latest
sudo docker build . -t cyberes/vllm-paperspace && sudo docker push cyberes/vllm-paperspace:latest

View File

@ -1,4 +1,4 @@
#!/bin/bash
# Start the services and launch the container.
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf

View File

@ -1,9 +1,17 @@
[supervisord]
nodaemon = true
pidfile = /tmp/supervisord.pid
user=root
pidfile = /var/run/supervisord.pid
logfile = /var/log/app/supervisord.log
directory = /tmp
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0770
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock