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