Skip to main content

Find a lost TRN - Find a lost TRN ops manual

SSHing to a live docker container

To SSH into a container, install kubectl

  • Configure the credentials using the get-cluster-credentials, run make command. Example:
make test get-cluster-credentials
make development get-cluster-credentials ENVIRONMENT=cluster1

find-a-lost-trn-test-57556754f9-q5mfd To SSH into a container, in the test cluster. Example ssh into a container named find-a-lost-trn-test, within the pod find-a-lost-trn-test-57556754f9-q5mfd:

run kubectl -n tra-test exec -it find-a-lost-trn-test-57556754f9-q5mfd -c find-a-lost-trn-test -- /bin/sh

Running a Rails console

SSH into the machine and run:

/usr/local/bin/bundle exec rails console

Tailing logs

SSH into the machine and run:

tail -f /app/log/production.log

Updating environment variables

The app keyvaults for Find can be found in the Azure devops portal. The development one, for example, is found here.

Assuming you have the correct permissions, the environment variables can be edited via the portal UI. Check with the infrastructure team if you don't have access.

Logit

You can raise a request to #digital-tools-support on Slack filling the Digital Tools Request Form to be added to Teaching Regulation Agency (TRA) stack. Follow the Logit section of the TRA resources Google documentdocument to help you fill the form. You can sign in once your email is added to the Logit stack.