Skip to content

Commit 694a208

Browse files
committed
feat: Add postinstall hook for docker-compose and enable experimental settings
1 parent 6d14b06 commit 694a208

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

mise.toml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tools]
2+
docker-compose = "2.33.0"
23
node = "v20"
34
python = "3.10.12"
45
yarn = { version = "4.3.1" }
@@ -96,3 +97,22 @@ run = './scripts/undo-release'
9697
[tasks.gh-release]
9798
description = "Trigger the release workflow"
9899
run = 'gh workflow run release.yml'
100+
101+
[hooks]
102+
postinstall = '''
103+
#!/usr/bin/env bash
104+
set -euo pipefail
105+
106+
version="$(mise current docker-compose 2>/dev/null || true)"
107+
if [ -z "$version" ]; then
108+
exit 0
109+
fi
110+
111+
dir="$HOME/.local/share/mise/installs/docker-compose/$version"
112+
if [ -d "$dir" ]; then
113+
ln -sf docker-cli-plugin-docker-compose "$dir/docker-compose"
114+
fi
115+
'''
116+
117+
[settings]
118+
experimental = true

0 commit comments

Comments
 (0)