Jenins Build: http://jenkins.uk.harpercollins.org:8080/job/Pipeline-bids3-alpha/job/BID-5352-vanilla-client-specific-settings/
DataGrip Trial Subscription until
9th June 2023
-
Edit an ansible vault file
ansible-vault edit ./BIDS/inventories/staging/group_vars/vault.yml --vault-password-file=./BIDS/.ansible_vault
-
psql -U seadev \l \du
-
docker service logs -f bids3_hcp_internal
-
Generate a password of 12 chars
openssl rand -base64 12 # includes symbols
date +%s | sha256sum | base64 | head -c 12 ; echo
-
Check/Run the deploy playbook in vagrant
ansible-playbook -i ./BIDS/inventories/dev/hosts ./BIDS/deploy-bids-swarm.yml --vault-password-file=./BIDS/.ansible_vault --key-file=/home/fam/.vagrant.d/insecure_private_key --extra-vars="docker_tag=R-23_05_16_2-e8ede64-SNAPSHOT ansible_remote_user=vagrant" --check
- Run Postgres 10.17 locally
docker run -d \ --name hzn-postgres \ -p 5433:5432 \ -e POSTGRES_PASSWORD=password \ -v postgres:/var/lib/postgresql/data \ postgres:10.17-buster
-
New Client Creation in BIDS3 Confluence
-
New Client Creation in Horizon Confluence
This is the pull request for merging Vanilla infrastructure to development
branch.
https://bitbucket.org/hcpuksea/bids3-environments/pull-requests/428
At time of writing, release
and development
are diverged, so the merge will need to be done manually to release
by duplicating the PR from a branch that has been branched from release
.
./manage.py runserver --settings=bids3.settings.vanilla.dev
-
Deploying success on dev with new client
-
Operating success on dev with new client (Postgres, DWH, ES)
- Product Search
When the client_settings have been merged into development, you can run a feature of bids3-alpha
that has a Jenkinsfile
that points to a feature branch of cicd_scripts
.
An example of this branch is here:
https://bitbucket.org/hcpuksea/bids3-alpha/branch/BID-5347-vanilla-cicd-120623.1
and it does the following:
- includes the definitions of the vanilla client in the relevant build stages (groovy)
- references a feature branch of the
bids3-environments
ansible scripts repo that deploys to the vanilla infrastructure.
This pipeline may not build succesfully because it has failed at the vanilla step (see this image), please check the table below.
Please ensure that you select the inventory for the relevant environment.
Error Message | Solution |
---|---|
django.db.utils.OperationalError: FATAL: role "vanilla" does not exist |
ansible-playbook -i BIDS/inventories/ci/hosts --key-file |
psycopg2.errors.InsufficientPrivilege: permission denied for relation django_migrations |
The database hasn't been created. |
- ES
- Lists
- CI
- Staging
- Prod
- New Relic
- Data dog
- Google Analytics