An open API service indexing awesome lists of open source software.

https://github.com/ukhomeoffice/dq-piwik


https://github.com/ukhomeoffice/dq-piwik

hodq piwik

Last synced: about 1 month ago
JSON representation

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.

[![build status](https://gitlab.digital.homeoffice.gov.uk/dacc-dq/piwik/badges/master/build.svg)](https://gitlab.digital.homeoffice.gov.uk/dacc-dq/piwik/commits/master)
[![coverage report](https://gitlab.digital.homeoffice.gov.uk/dacc-dq/piwik/badges/master/coverage.svg)](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