Skip to content

Commit

Permalink
add warnet-bundle Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
willcl-ark committed Oct 17, 2024
1 parent 7974c5d commit 5b2977a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.git
.github

**/__pycache__
.trunk
.venv
.envrc
build
dist
**/*.egg-info
Expand Down
21 changes: 21 additions & 0 deletions resources/images/warnet-bundle/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.11-alpine

# Install uv and ktop by copying from their docker images
COPY --from=ghcr.io/astral-sh/uv:0.4.12 /uv /bin/uv
COPY --from=ghcr.io/vladimirvivien/ktop:latest /ko-app/ktop /bin/ktop

RUN apk add --no-cache bash curl ca-certificates git kubectl helm k9s fish vim mc nano

# Setup venv and install warnet
ADD . /warnet
WORKDIR /warnet
RUN uv sync

# Setup autocomplete
RUN mkdir -p /root/.config/fish/completions
RUN cat <<EOF > /root/.config/fish/completions/warnet.fish
_WARNET_COMPLETE=fish_source warnet | source
EOF

# Start
CMD ["/usr/bin/fish", "-c", "source /warnet/.venv/bin/activate.fish; cd /root; exec fish"]

0 comments on commit 5b2977a

Please sign in to comment.