docker: get working
This commit is contained in:
parent
407e991c52
commit
bc74a3dc50
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue