https://github.com/ukhomeoffice/dq-piwik
https://github.com/ukhomeoffice/dq-piwik
hodq piwik
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ukhomeoffice/dq-piwik
- Owner: UKHomeOffice
- License: mit
- Created: 2018-01-24T11:15:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T08:56:09.000Z (over 1 year ago)
- Last Synced: 2025-02-16T21:26:31.476Z (4 months ago)
- Topics: hodq, piwik
- Language: Dockerfile
- Size: 45.9 KB
- Stars: 0
- Watchers: 17
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DACC-DQ/Piwik
>
**Orchestrates deployment of PIWIK to ACP platforms**
> This project uses Matomo (formerly known as piwik) for collecting user journey and other vital stats.
> Even though this project relates to and fetches information from GAIT, it is not considered as one of
> its core services.[](https://gitlab.digital.homeoffice.gov.uk/dacc-dq/piwik/commits/master)
[](https://gitlab.digital.homeoffice.gov.uk/dacc-dq/piwik/commits/master)# Requirements
*The following drone secrets must be set up for deployments to work*| Drone Secrets | Example Values |
| -------- | -------- |
| KUBE_NAMESPACE | `dq-dev` |
| KUBE_SERVER | `https://kube-dev.dsp.notprod.****` |
| KUBE_TOKEN | `***` |
| PIWIK_DBNAME | `database name` |
| PIWIK_DBHOST | `host name(url)` |
| PIWIK_DBPASSWORD | `database password` |
| PIWIK_DBUSERNAME | `database username` |
| PIWIK_SALT | `salt for password hashing` |
| PIWIK_APP_HOST | `piwik-test.notprod.****` |##### Command to add drone secret
`drone secret add --event --image [--conceal] `
```
example:
drone secret add \
--event pull_request \
--event deployment \
--image quay.io/ukhomeofficedigital/kd \
--conceal \
dacc-dq/piwik PIWIK_SALT xyz
```# Deployments
>
**Deployments are automatically ran once master branch is updated however you can also manually revert to a previous deployment from the command line**##### Pipeline
1. Update master branch
2. Drone watches for changes and runs build based on the latest in master##### Rollback
1. Execute the following code from command line```
drone deploy dacc-dq/piwik
```# Helpful Links
**ACP Drone CI Guide:** https://github.com/UKHomeOffice/application-container-platform/blob/master/how-to-docs/drone-how-to.md