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"