From ac4ccc498e2d42c7c734ea7870ecb00fe1482f80 Mon Sep 17 00:00:00 2001 From: Cesar Flores Date: Fri, 6 Mar 2026 21:35:21 +0700 Subject: [PATCH] fix: update Dockerfile to copy mise.toml from tools-config directory and add justfile for build and test automation --- Dockerfile | 2 +- justfile | 22 ++++++++++++++++++++++ mise.toml | 24 ------------------------ tools-config/mise.toml | 26 ++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 25 deletions(-) create mode 100644 justfile create mode 100644 tools-config/mise.toml diff --git a/Dockerfile b/Dockerfile index c10b127..b968702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ ENV MISE_VERSION=${MISE_VERSION} RUN curl https://mise.run | sh -COPY mise.toml ${TOOLS_DIR}/config/mise.toml +COPY tools-config/mise.toml ${TOOLS_DIR}/config/mise.toml RUN sh -c "\ rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \ diff --git a/justfile b/justfile new file mode 100644 index 0000000..3d71df1 --- /dev/null +++ b/justfile @@ -0,0 +1,22 @@ +set shell := ["bash", "-c"] + +IMAGE := env("IMAGE", "dev-tools") +VERSION := env("VERSION", "latest") + +# Setup environment +setup: + mise install + +# Build the Docker image +build: + docker build -t {{IMAGE}}:{{VERSION}} . + +# Tests inside the docker image +test: + docker run --rm {{IMAGE}}:{{VERSION}} sh -c "\ + mise --version \ + && python --version \ + && node --version" + +push: + docker push {{IMAGE}}:{{VERSION}} diff --git a/mise.toml b/mise.toml index ce624ae..6f0f06b 100644 --- a/mise.toml +++ b/mise.toml @@ -1,26 +1,2 @@ [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" diff --git a/tools-config/mise.toml b/tools-config/mise.toml new file mode 100644 index 0000000..ce624ae --- /dev/null +++ b/tools-config/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"