From 7e759a1993cd7ee79995fa40ed6328ea30652622 Mon Sep 17 00:00:00 2001 From: Cesar Flores Date: Wed, 4 Mar 2026 01:43:04 +0700 Subject: [PATCH] chore: initial commit --- .env.example | 1 + .gitignore | 3 +++ Dockerfile | 28 ++++++++++++++++++++++++++++ docker-compose.yml | 18 ++++++++++++++++++ mise.toml | 26 ++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 mise.toml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..08e5aa6 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +GITHUB_TOKEN=ghp_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2cef73e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.env +.env.* +!.env.example diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f4e08c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:bookworm-slim + +ARG MISE_VERSION=2026.1.7 +ARG TOOLS_DIR=/tools + +RUN apt-get update \ + && apt-get -y --no-install-recommends install \ + curl git ca-certificates build-essential \ + && rm -rf /var/lib/apt/lists/* + +# Mise environment variables +ENV TOOLS_DIR="${TOOLS_DIR}" +ENV MISE_DATA_DIR="${TOOLS_DIR}" +ENV MISE_CONFIG_DIR="${TOOLS_DIR}/config" +ENV MISE_CACHE_DIR="${TOOLS_DIR}/cache" +ENV MISE_INSTALL_PATH=/usr/local/bin/mise +ENV PATH="${TOOLS_DIR}/shims:${PATH}" +ENV MISE_GITHUB_ATTESTATIONS=false +ENV MISE_VERSION=${MISE_VERSION} + +RUN curl https://mise.run | sh + +COPY mise.toml ${TOOLS_DIR}/config/mise.toml + +CMD ["sh", "-c", "\ + rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs && \ + mise install \ +"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1f7ff87 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +services: + dev-tools: + build: + context: . + dockerfile: Dockerfile + args: + - MISE_VERSION=2026.1.7 + - TOOLS_DIR=/tools + environment: + - GITHUB_TOKEN=${GITHUB_TOKEN} + volumes: + - dev-tools:/tools + restart: no + +volumes: + dev-tools: + name: dev-tools + external: true diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..ce624ae --- /dev/null +++ b/mise.toml @@ -0,0 +1,26 @@ +[tools] +# programming tools +duckdb = "1" +node = "24" +python = "3.11.14" +go = "1.26" +uv = "latest" + +# secret tools +sops = "latest" +age = "latest" + +# infra tools +mc = "latest" +supabase = "2" + +# dev tools +bat = "latest" +eza = "latest" +ripgrep = "latest" +fzf = "latest" +jq = "latest" +yq = "latest" +just = "latest" +gh = "latest" +starship = "latest"