diff --git a/.config/cargo/config.toml b/.config/cargo/config.toml new file mode 100644 index 0000000..b650e8b --- /dev/null +++ b/.config/cargo/config.toml @@ -0,0 +1,2 @@ +[unstable] +gc = true diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..6ad4a22 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,5 @@ + +if status is-interactive + fish_add_path /root/.cargo/bin/ + # Commands to run in interactive sessions can go here +end diff --git a/.config/fish/functions/fish_greeting.fish b/.config/fish/functions/fish_greeting.fish new file mode 100644 index 0000000..148e376 --- /dev/null +++ b/.config/fish/functions/fish_greeting.fish @@ -0,0 +1,12 @@ +function fish_greeting --description 'Welcome the user' + printf "%s" (set_color -o brblue) + date +"%A %H:%M, %d/%m/%y" + echo -e "\n" + printf "Welcome to alpine, deke/dev-env edition\n" + printf " Check out these tools:\n" + printf " %s%sDiagnostics: %s btop, tcpdump, dust, fd, rg%s\n" (set_color normal) (set_color white) (set_color -o -i brblue) + printf " %s%sCLI: %s zellij, helix, curl, wget, tar, zstd, jq%s\n" (set_color normal) (set_color white) (set_color -o -i brblue) + printf " %s%sSVN: %s git, jj, lazygit, lazyjj%s\n" (set_color normal) (set_color white) (set_color -o -i brblue) + printf " %s%sK8S: %s k0s, kubectl\n" (set_color normal) (set_color white) (set_color -o -i brblue) + echo -e "\n" +end diff --git a/.config/helix/config.toml b/.config/helix/config.toml new file mode 100644 index 0000000..953a4ec --- /dev/null +++ b/.config/helix/config.toml @@ -0,0 +1,9 @@ +theme = "tokyonight_moon" + +[editor] +line-number = "relative" +mouse = true + +[editor.file-picker] +hidden = false + diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml new file mode 100644 index 0000000..cd519cd --- /dev/null +++ b/.config/helix/languages.toml @@ -0,0 +1,3 @@ +[editor.lsp.rust-analyzer.config.check] +command = "clippy" + diff --git a/.forgejo/workflows/action.yaml b/.forgejo/workflows/action.yaml index 116c442..d59bf89 100644 --- a/.forgejo/workflows/action.yaml +++ b/.forgejo/workflows/action.yaml @@ -7,7 +7,7 @@ jobs: checkout: runs-on: docker container: - image: docker:dind + image: ghcr.io/docker:dind steps: - name: Get git and docker run: apk add git nodejs @@ -21,4 +21,3 @@ jobs: password: ${{ secrets.TOKEN }} registry: git.dekedin.me - diff --git a/Dockerfile b/Dockerfile index 18f6666..3eaaf6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,38 @@ FROM alpine:edge + # Install base dependencies and build tools RUN apk add --no-cache \ - fish \ - helix \ - ripgrep \ - fd \ - dust \ btop \ - tmux \ + tcpdump \ + dust \ + fd \ + ripgrep \ + fish \ + zellij \ + helix \ + curl \ + wget \ tar \ zstd \ jq \ - tcpdump \ + lazygit \ + k9s \ git -# zig (actually doubles as a c/c++) -RUN apk add --no-cache \ - zig \ - zls + +RUN apk add --no-cache cargo bash; \ + curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash; \ + cargo binstall --strategies crate-meta-data jj-cli; \ + cargo binstall lazyjj; \ + apk del cargo bash; + +COPY setup_langs /root/setup_langs +COPY .config /root/.config + +ENV TERM="xterm-256color" +ENV COLORTERM="truecolor" # Set the entrypoint to fish +WORKDIR /root/ ENTRYPOINT ["fish"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..119f30f --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +```bash +~/D/P/D/Dev-Env @3cc98a9• λ❱ podman run --rm -it dev-env:latest +Sunday 22:10, 02/02/25 + + +Welcome to alpine, deke/dev-env edition + Check out these tools: + Diagnostics: btop, tcpdump, dust, fd, rg + CLI: zellij, helix, curl, wget, tar, zstd, jq + SVN: git, jj, lazygit, lazyjj + K8S: k0s, kubectl + +``` + +This is my development environment with a bunch of .config files that I enjoy. +It's not exactly "slim" but I wanted to do an experiment. \ No newline at end of file diff --git a/setup_langs/rust.sh b/setup_langs/rust.sh new file mode 100755 index 0000000..93b16c9 --- /dev/null +++ b/setup_langs/rust.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +apk add --no-cache \ + rust \ + cargo \ + rust-analyzer \ + clippy