-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7974c5d
commit 5b2977a
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
.git | ||
.github | ||
|
||
**/__pycache__ | ||
.trunk | ||
.venv | ||
.envrc | ||
build | ||
dist | ||
**/*.egg-info | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |