Skip to content

Commit bc1c89c

Browse files
authored
Merge pull request #52 from florkbr/fix-container-startup-errors
fix(deploy): fix pods failing to start in openshift context
2 parents d8ea64e + 58bbfcf commit bc1c89c

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ COPY config.json project-repos.json CLAUDE.md .mcp.json entrypoint.sh ./
130130
COPY .claude/ .claude/
131131
COPY personas/ personas/
132132

133-
# Fix ownership
134-
RUN chown -R botuser:botuser /home/botuser/app
133+
# Fix ownership — botuser:0 + group-writable so OpenShift arbitrary UIDs (always GID 0) can write
134+
RUN chown -R botuser:0 /home/botuser \
135+
&& chmod -R g+rwX /home/botuser
135136

137+
ENV HOME=/home/botuser
136138
USER botuser
137139

138140
# Buildah rootless config — vfs driver (no kernel module needed, works everywhere)

memory-server/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ USER 0
1313

1414
RUN pip3 install uv
1515

16+
ENV UV_CACHE_DIR=/tmp/uv-cache
17+
1618
WORKDIR /app
1719

1820
COPY memory-server/pyproject.toml memory-server/uv.lock* ./

proxy/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
77
COPY squid.conf /etc/squid/squid.conf
88

99
RUN mkdir -p /var/log/squid /var/spool/squid /var/run/squid \
10-
&& chown -R squid:squid /var/log/squid /var/spool/squid /var/run/squid
10+
&& chown -R squid:0 /var/log/squid /var/spool/squid /var/run/squid \
11+
&& chmod -R g+rwX /var/log/squid /var/spool/squid /var/run/squid
1112

1213
EXPOSE 3128
1314
USER squid

0 commit comments

Comments
 (0)