Skip to content

Instantly share code, notes, and snippets.

@jesuino
Created September 25, 2024 15:33
Show Gist options
  • Save jesuino/259fbc55fdeb858e4e65a0a948242ea2 to your computer and use it in GitHub Desktop.
Save jesuino/259fbc55fdeb858e4e65a0a948242ea2 to your computer and use it in GitHub Desktop.
running Dynamic Plugins on RHDH (locally)
if [ $1 ]; then
pkg=$1
archive=$(npm pack --silent $pkg )
tar -xzf "$archive" && rm "$archive"
finalName=$(echo $archive | sed -e 's:\.tgz$::')
rm -fr "$finalName"
mv package "$finalName"
else
echo "No package was provided"
### from backstage-showcase repo ###
# make sure that app-config.local.yaml is configured correctly
# build my plugin on VSCode
$ cd dynamic-plugins-root
# get my plugin code
$ ./get_plugin.sh /path/to/my/plugin
$ cd ..
# now run the container
$ podman run -v ./dynamic-plugins-root:/opt/app-root/src/dynamic-plugins-root:Z -v ./app-config.local.yaml:/opt/app-root/src/app-config.local.yaml:Z -p 7007:7007 -p 3000:3000 --entrypoint='["node", "packages/backend", "--config", "app-config.yaml", "--config", "app-config.example.yaml", "--config", "app-config.local.yaml"]' --env "AUTH_*" quay.io/janus-idp/backstage-showcase:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment