Skip to content

Commit

Permalink
Doesn't really work but I'll try again later.
Browse files Browse the repository at this point in the history
  • Loading branch information
qpfiffer committed Nov 29, 2023
1 parent 8680c30 commit bf9a878
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3-alpine

WORKDIR /usr/src/app

RUN apk add gcc musl-dev make 'luajit' 'luajit-dev'

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN make
RUN make install

CMD [ "python", "./shithouse_tv.py", "-s", "/usr/src/app"]
14 changes: 14 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
shithouse:
image: shithouse:latest
build: .
platform: linux/amd64
container_name: shithouse
environment:
SHITHOUSE_HOST: localhost
SHITHOUSE_API_URL: api.localhost
ports:
- 8090:8090
volumes:
- ./tv:/usr/src/app/tv
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bottle==0.12.23
Paste==3.5.2
lupa==1.14.1
14 changes: 12 additions & 2 deletions src/config.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
local config_module = {}

config_module["HOST"] = "shithouse.tv"
config_module["API_URL"] = "api.shithouse.tv"
local HOST = "shithouse.tv"
if os.getenv("SHITHOUSE_HOST") then
HOST = os.getenv("SHITHOUSE_HOST")
end

local API_URL = "api.shithouse.tv"
if os.getenv("SHITHOUSE_API_URL") then
API_URL = os.getenv("SHITHOUSE_API_URL")
end

config_module["HOST"] = HOST
config_module["API_URL"] = API_URL
config_module["TAGS"] = "./tags"
config_module["BUMPS"] = "./tv"
config_module["MD_NAME"] = "meta.json"
Expand Down

0 comments on commit bf9a878

Please sign in to comment.