Hello. I’m very sorry if this is a very dumb question but I’ve been searching and googling and haven’t found a exact answer to my need.
Summing up, I’d like to download 1 release version, edit some Js from the components, re create the related minified js, and deploy the tuned version. I can do this using the dev version but I’d like to use a stable version for it. Is there any advices on how to?
Thanks in advance.
if anyone ever struggles with the same issue, I built a sh script:
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Please provide the Grafana version"
echo 'Ex.: ./script_name.sh "8.3.3"'
exit 1
else
wget https:// github.com/grafana/grafana/archive/refs/heads/${1}.zip;
unzip ${1}.zip;
mv grafana-${1} grafana_build;
rm ${1}.zip;
cp -r modded/public grafana_build;
cd grafana_build;
make deps-js;
make build-js;
cd ..;
mkdir grafana;
wget https:// dl.grafana.com/oss/release/grafana-${1}.linux-amd64.tar.gz;
tar -zxvf grafana-${1}.linux-amd64.tar.gz --strip-components=1 -C grafana;
rm grafana-${1}.linux-amd64.tar.gz;
cp -r grafana_build/conf grafana/;
cp -r grafana_build/public grafana/;
cp grafana_build/scripts/* grafana/scripts;
rm -rf grafana_build;
fi
basically, you make the changes you think are necessary in the JS files, build them and then merge the built version with the tar.gz version.
Thanks to Building Grafana - linux-on-ibm-z/docs Wiki that was showing on the 7th google search page…
Could you tell me where is the moment to make changes in js files? When I run script and the files will be downloaded by code from Grafana Labs · GitHub that will be clear js. Where and when put my changes to js?