get Dockerfile to somewhat work
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
FROM docker
|
FROM docker
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY composer /composer
|
COPY composer /composer
|
||||||
RUN mkdir -p store/stack
|
|
||||||
RUN touch store/stack/.env
|
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk add --no-cache git python3 py3-pip
|
RUN apk add --no-cache git python3 py3-pip
|
||||||
RUN pip3 install --no-cache-dir --break-system-packages -r composer/requirements.txt
|
RUN pip3 install --no-cache-dir --break-system-packages -r composer/requirements.txt
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ logger.addHandler(logging.StreamHandler(sys.stdout))
|
|||||||
|
|
||||||
class Setup:
|
class Setup:
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def populate_store():
|
||||||
|
Path("store/stack").mkdir(parents=True, exist_ok=True)
|
||||||
|
Path("store/stack/.env").touch(exist_ok=True)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_symlink():
|
def create_symlink():
|
||||||
host_data_env = getenv("HOST_DATA_PATH", None)
|
host_data_env = getenv("HOST_DATA_PATH", None)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import logging
|
|||||||
from os import getenv
|
from os import getenv
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
Setup.populate_store()
|
||||||
Setup.create_symlink()
|
Setup.create_symlink()
|
||||||
composer = Composer(getenv("REMOTE_REPO"))
|
composer = Composer(getenv("REMOTE_REPO"))
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user