Rename user from claude to user, remove HTTPRoute
- Rename container user from 'claude' to 'user' throughout Dockerfile - Remove httproute.yaml from kustomization (Authentik outpost will manage routing) Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
+9
-9
@@ -8,7 +8,7 @@ ENV APP_NAME="Antigravity Dev Container" \
|
|||||||
SECURE_CONNECTION=1 \
|
SECURE_CONNECTION=1 \
|
||||||
USER_ID=1000 \
|
USER_ID=1000 \
|
||||||
GROUP_ID=1000 \
|
GROUP_ID=1000 \
|
||||||
CLAUDE_USER=claude
|
CLAUDE_USER=user
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@@ -49,14 +49,14 @@ RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor
|
|||||||
apt-get install -y code && \
|
apt-get install -y code && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Create claude user with specific UID/GID
|
# Create user user with specific UID/GID
|
||||||
RUN groupadd -g 1000 claude && \
|
RUN groupadd -g 1000 user && \
|
||||||
useradd -u 1000 -g 1000 -m -s /bin/bash claude && \
|
useradd -u 1000 -g 1000 -m -s /bin/bash user && \
|
||||||
echo "claude ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
||||||
|
|
||||||
# Create workspace directory
|
# Create workspace directory
|
||||||
RUN mkdir -p /workspace && \
|
RUN mkdir -p /workspace && \
|
||||||
chown -R claude:claude /workspace
|
chown -R user:user /workspace
|
||||||
|
|
||||||
# Copy startup script
|
# Copy startup script
|
||||||
COPY --chmod=755 scripts/startapp.sh /startapp.sh
|
COPY --chmod=755 scripts/startapp.sh /startapp.sh
|
||||||
@@ -65,9 +65,9 @@ COPY --chmod=755 scripts/init-repo.sh /usr/local/bin/init-repo
|
|||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
# Configure container to run as claude user
|
# Configure container to run as user user
|
||||||
ENV HOME=/home/claude \
|
ENV HOME=/home/user \
|
||||||
USER=claude
|
USER=user
|
||||||
|
|
||||||
# Expose VNC port (baseimage-gui default)
|
# Expose VNC port (baseimage-gui default)
|
||||||
EXPOSE 5800
|
EXPOSE 5800
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ namespace: default
|
|||||||
resources:
|
resources:
|
||||||
- configmap.yaml
|
- configmap.yaml
|
||||||
- statefulset.yaml
|
- statefulset.yaml
|
||||||
- httproute.yaml
|
|
||||||
|
|
||||||
# Uncomment to create secrets from files
|
# Uncomment to create secrets from files
|
||||||
# secretGenerator:
|
# secretGenerator:
|
||||||
|
|||||||
Reference in New Issue
Block a user