Compare commits
3 commits
e6a2443412
...
58ac6edd7d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58ac6edd7d | ||
|
|
19fd8799d9 | ||
|
|
7f17b65278 |
|
|
@ -20,4 +20,5 @@ ENV RUNTIME_PATH=/opt/homelab
|
|||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Default command (will be overridden in docker-compose)
|
||||
USER homelab
|
||||
CMD ["python", "src/operator_ui.py"]
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ services:
|
|||
executor:
|
||||
build: .
|
||||
container_name: control-plane-executor
|
||||
user: "1000:1000"
|
||||
group_add:
|
||||
- "999"
|
||||
command: python src/executor.py
|
||||
volumes:
|
||||
- /opt/homelab:/opt/homelab
|
||||
|
|
|
|||
|
|
@ -14,8 +14,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
# pyyaml : may be needed for reading host config snippets
|
||||
RUN pip install --no-cache-dir "docker>=6.0" psutil pyyaml
|
||||
|
||||
RUN useradd -m -u 1000 homelab
|
||||
|
||||
COPY src/ /app/src/
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
USER homelab
|
||||
CMD ["python", "src/node_agent.py"]
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@ services:
|
|||
node-agent:
|
||||
build: .
|
||||
container_name: node-agent
|
||||
user: "1000:1000"
|
||||
group_add:
|
||||
- "999"
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ WORKDIR /app
|
|||
# No extra dependencies needed beyond standard library for the current script
|
||||
# But we might need them if we decide to use libraries later.
|
||||
|
||||
RUN useradd -m -u 1000 homelab
|
||||
|
||||
COPY src/stability_agent.py .
|
||||
COPY healthcheck.sh .
|
||||
RUN chmod +x healthcheck.sh
|
||||
|
|
@ -12,5 +14,5 @@ RUN chmod +x healthcheck.sh
|
|||
# Create the expected directories
|
||||
RUN mkdir -p /opt/homelab/state /opt/homelab/events
|
||||
|
||||
# Run the agent
|
||||
USER homelab
|
||||
CMD ["python", "stability_agent.py"]
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@ services:
|
|||
stability-agent:
|
||||
build: .
|
||||
container_name: stability-agent
|
||||
user: "1000:1000"
|
||||
group_add:
|
||||
- "999"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/homelab:/opt/homelab
|
||||
|
|
|
|||
Loading…
Reference in a new issue