runs in docker now
This commit is contained in:
parent
dfdd42f006
commit
2fa0db0e2b
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
FROM phusion/baseimage:0.11
|
||||||
|
|
||||||
|
ENV LOG_TO_SYSLOG 1
|
||||||
|
|
||||||
|
ENV APPDIR /var/app
|
||||||
|
|
||||||
|
VOLUME /strpc
|
||||||
|
|
||||||
|
ENV STRPC_BASE /var/lib/strpc
|
||||||
|
|
||||||
|
ADD ./sources.list /etc/apt/sources.list
|
||||||
|
|
||||||
|
RUN apt update && apt install -y python3-pip
|
||||||
|
|
||||||
|
RUN pip3 install pipenv
|
||||||
|
|
||||||
|
RUN mkdir -p /var/lib/strpc
|
||||||
|
|
||||||
|
ADD . /var/app
|
||||||
|
|
||||||
|
WORKDIR /var/app
|
||||||
|
|
||||||
|
RUN pipenv install
|
||||||
|
|
||||||
|
RUN mkdir -p /etc/service/strpcd && \
|
||||||
|
mv /var/app/strpcd.run /etc/service/strpcd/run && \
|
||||||
|
chmod +x /etc/service/strpcd/run
|
3
Makefile
3
Makefile
@ -1,4 +1,7 @@
|
|||||||
default: devserver
|
default: devserver
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build -t sneak/strpc .
|
||||||
|
|
||||||
devserver:
|
devserver:
|
||||||
/bin/bash bin/devserver
|
/bin/bash bin/devserver
|
||||||
|
4
sources.list
Normal file
4
sources.list
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main universe multiverse restricted
|
||||||
|
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main universe multiverse restricted
|
||||||
|
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main universe multiverse restricted
|
||||||
|
deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-backports main universe multiverse restricted
|
5
strpcd.run
Normal file
5
strpcd.run
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export PYTHONPATH="$APPDIR"
|
||||||
|
cd "$APPDIR"
|
||||||
|
exec pipenv run bin/strpcd
|
Loading…
Reference in New Issue
Block a user