mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
fix: update Dockerfile to copy mise.toml from tools-config directory and add justfile for build and test automation
This commit is contained in:
@@ -22,7 +22,7 @@ ENV MISE_VERSION=${MISE_VERSION}
|
|||||||
|
|
||||||
RUN curl https://mise.run | sh
|
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 "\
|
RUN sh -c "\
|
||||||
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
|
rm -rf ${TOOLS_DIR}/shims ${TOOLS_DIR}/installs \
|
||||||
|
|||||||
22
justfile
Normal file
22
justfile
Normal file
@@ -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}}
|
||||||
24
mise.toml
24
mise.toml
@@ -1,26 +1,2 @@
|
|||||||
[tools]
|
[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"
|
just = "latest"
|
||||||
gh = "latest"
|
|
||||||
starship = "latest"
|
|
||||||
|
|||||||
26
tools-config/mise.toml
Normal file
26
tools-config/mise.toml
Normal file
@@ -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"
|
||||||
Reference in New Issue
Block a user