2019-01-17 09:55:12 -06:00
# Repository updates deb/rpm
## Testing
It's possible to test the repo updates for rpm and deb by running the test scripts within a docker container like this. Tests are being executed by using two buckets on gcp setup for testing.
```bash
2019-11-21 08:16:32 -06:00
docker run -ti --rm -u 0:0 grafana/grafana-ci-deploy:1.2.3 bash # 1.2.3 is the newest image at the time of writing
2019-01-17 09:55:12 -06:00
# in the container:
2019-09-23 05:00:18 -05:00
mkdir -p /dist
2019-01-17 09:55:12 -06:00
#outside of container:
cd < grafana project dir > /..
2019-09-23 05:00:18 -05:00
docker cp grafana < container_name > :/
2019-01-17 09:55:12 -06:00
docker cp < gpg.key used for signing > < container_name > :/private.key
#in container:
2019-09-23 05:00:18 -05:00
./scripts/build/update_repo/load-signing-key.sh
2019-01-17 09:55:12 -06:00
cd dist & & wget https://dl.grafana.com/oss/release/grafana_5.4.3_amd64.deb & & wget https://dl.grafana.com/oss/release/grafana-5.4.3-1.x86_64.rpm & & cd ..
2019-09-23 05:00:18 -05:00
#run these scripts to update local deb and rpm repos and publish them:
./scripts/build/update_repo/test-update-deb-repo.sh < gpg key password >
./scripts/build/update_repo/test-publish-deb-repo.sh
./scripts/build/update_repo/test-update-rpm-repo.sh < gpg key password >
./scripts/build/update_repo/test-publish-rpm-repo.sh
2019-01-17 09:55:12 -06:00
```