Last active
April 3, 2024 10:54
-
-
Save svor/fb46f762d6864d3fe86e757de9342b11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull registry.redhat.io/devspaces/pluginregistry-rhel8:3.11 | |
docker run -it --entrypoint /bin/bash registry.redhat.io/devspaces/pluginregistry-rhel8:3.11 | |
— | |
Then: | |
cp -r /var/lib/pgsql/15/data/old /var/lib/pgsql/15/data/database | |
/usr/local/bin/start_services.sh | |
psql | |
SELECT * FROM extension; | |
readarray extensions < <(jq -r '.[].id' openvsx-sync.json ) | |
export OVSX_REGISTRY_URL=http://local-plugin-registry:9000 | |
export OVSX_PAT=eclipse_che_token | |
npm install -y [email protected] --no-save | |
missing=0 | |
for extension in "${extensions[@]}"; do | |
npx [email protected] get --metadata $extension > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo "missing $extension" | |
missing=1 | |
else | |
echo "found $extension" | |
fi | |
done | |
if [ $missing -ne 0 ]; then | |
echo "we found missing extensions" | |
exit 1; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment