Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .config/ghostty/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
macos-non-native-fullscreen = true
background-opacity = 0.8
# background-opacity = 0.8
unfocused-split-opacity = 1
term = xterm-256color
keybind = global:cmd+ctrl+t=toggle_quick_terminal
term = xterm-256color
15 changes: 9 additions & 6 deletions .docker/gcloud-slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ ENV DEBIAN_FRONTEND=noninteractive
ARG SOPS_VERSION="v3.8.1"
ARG SUPABASE_VERSION="2.26.8"
ARG USERNAME=jgmize
ARG TARGETARCH
SHELL ["/bin/bash", "-c"]
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash && \
apt-get install -y --no-install-recommends \
build-essential ca-certificates curl emacs-nox git gpg gpg-agent htop jq \
kubectl libsqlite3-0 microsocks openssh-server pandoc postgresql-client python3-epc \
python3-importmagic ripgrep software-properties-common sudo tmate tmux tree \
tzdata unzip && apt-get clean -y && \
rm -rf /var/cache/debconf/* /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN curl -LO https://github.com/supabase/cli/releases/download/v${SUPABASE_VERSION}/supabase_${SUPABASE_VERSION}_linux_amd64.deb && \
dpkg -i supabase_${SUPABASE_VERSION}_linux_amd64.deb
RUN curl -LO https://github.com/supabase/cli/releases/download/v${SUPABASE_VERSION}/supabase_${SUPABASE_VERSION}_linux_${TARGETARCH}.deb && \
dpkg -i supabase_${SUPABASE_VERSION}_linux_${TARGETARCH}.deb
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 && \
chmod +x get_helm.sh && ./get_helm.sh
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
RUN declare -A arch=(["amd64"]="x86_64" ["arm64"]="aarch64") && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-${arch[$TARGETARCH]}.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && ./aws/install && rm -rf awscliv2.zip aws
RUN curl -L "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux.amd64" \
RUN curl -L "https://github.com/getsops/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux.$TARGETARCH" \
-o /usr/local/bin/sops && chmod +x /usr/local/bin/sops
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 \
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_$TARGETARCH \
-o /usr/local/bin/yq && chmod +x /usr/local/bin/yq
RUN curl -s https://yamlscript.org/install | BIN=1 bash
RUN useradd -m -s /usr/bin/bash -G sudo ${USERNAME}
RUN useradd -m -s /usr/bin/bash -G sudo ${USERNAME} && echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sudo
WORKDIR /home/${USERNAME}
USER ${USERNAME}
COPY . ./dotfiles
Expand Down
17 changes: 15 additions & 2 deletions .lima/.org
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@
** clone

- [[https://github.com/lima-vm/lima][github.com/lima-vm/lima]]

#+begin_src sh
cd ~/src
git clone https://github.com/lima-vm/lima
#+end_src

- [[~/src/lima]]

** template

- [ ] [[file+emacs:~/dotfiles/.lima/template.ys][template.ys]]

#+begin_src bash
ys -J template.ys | yq -Poy > k8s.yaml
limactl start ./k8s.yaml
#+end_src
- initial version is a minor refactor of the k8s template from
[[~/src/lima/templates/k8s.yaml]] based on debian-13 instead of ubuntu
with the inline shell scripts refactored into separate files
- [ ] multi-node version with bridge mode, calico, & wireguard
14 changes: 11 additions & 3 deletions .org
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- [[https://gitlab.com/jgmize/dotfiles/-/merge_requests?scope=all&state=all][Gitlab merge requests]]
- [[https://github.com/jgmize/dotfiles/pulls?q=][Github pull requests]]

** TODO
** DONE

- [X] add cloud CLIs
- [X] aws
Expand All @@ -30,13 +30,21 @@
#+begin_src sh
docker pull ghcr.io/jgmize/dotfiles:gcloud-slim
#+end_src
- [ ] add ys
- [X] add ys
- [[https://yamlscript.org/doc/install/][Installing YS - YS — YAML Done Wisely]]
- [X] add multiplatform image
image: jgmize/dotfiles
tags: multiplatform, latest

** TODO

- [ ] add sts
#+begin_src yaml
image: ghcr.io/jgmize/dotfiles:gcloud-slim
#image: ghcr.io/jgmize/dotfiles:gcloud-slim
image: jgmize/dotfiles
command:
- sleep
- infinity
volumeMounts: TODO
#+end_src
- [ ] fix sudo in gcloud-slim dockerfile