Skip to content

Commit bcf15dc

Browse files
committed
fix: remove keychain workaround code, keep it simple
1 parent fd48d11 commit bcf15dc

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

scripts/install.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,22 +196,10 @@ EOF
196196

197197
(
198198
cd "$LORE_DOCKER_DIR"
199-
200-
# Bypass osxkeychain credential helper that blocks public pulls.
201-
# Use a temp empty Docker config so the install never touches user config.
202-
local dc_tmp; dc_tmp=$(mktemp -d)
203-
echo '{}' > "$dc_tmp/config.json"
204-
if ! DOCKER_CONFIG="$dc_tmp" $compose_cmd up -d 2>&1 | tee /tmp/lore-docker-install.log; then
205-
rm -rf "$dc_tmp"
206-
if grep -qi "keychain\|osxkeychain\|credsStore" /tmp/lore-docker-install.log 2>/dev/null; then
207-
warn "Docker keychain blocked the pull. Fix with:"
208-
echo " python3 -c \"import json; d=json.load(open('$HOME/.docker/config.json')); d.pop('credsStore',None); json.dump(d,open('$HOME/.docker/config.json','w'),indent=2)\""
209-
else
210-
warn "$compose_cmd up failed. Check $LORE_DOCKER_DIR/docker-compose.yml"
211-
fi
199+
$compose_cmd up -d || {
200+
warn "$compose_cmd up failed. Check $LORE_DOCKER_DIR/docker-compose.yml"
212201
exit 1
213-
fi
214-
rm -rf "$dc_tmp"
202+
}
215203
) || return
216204

217205
ok "Lore server starting at http://127.0.0.1:18901"

0 commit comments

Comments
 (0)