-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devops #71
Conversation
Dockerfile
Outdated
CMD RAILS_ENV=production bundle exec rails db:migrate && \ | ||
RAILS_ENV=production bundle exec rails server -b 0.0.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMD RAILS_ENV=production bundle exec rails db:migrate && \ | |
RAILS_ENV=production bundle exec rails server -b 0.0.0.0 | |
CMD RAILS_ENV=${RAILS_ENV} bundle exec rails db:migrate && \ | |
RAILS_ENV=${RAILS_ENV} bundle exec rails server -b 0.0.0.0 |
a566ab6
to
8d8524c
Compare
"cluster": "test", | ||
"namespace": "cpd-development", | ||
"environment": "development", | ||
"deploy_azure_backing_services": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We normally use azure backing services for permanent envs. i.e. dev, staging, production. And then set deploy_azure_backing_services to false for review environments only.
Makefile
Outdated
terraform -chdir=terraform/application init -upgrade -reconfigure \ | ||
-backend-config=resource_group_name=${RESOURCE_GROUP_NAME} \ | ||
-backend-config=storage_account_name=${STORAGE_ACCOUNT_NAME} \ | ||
-backend-config=key=${ENVIRONMENT}_kubernetes.tfstate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't work with review apps. Something like
$(if $(PULL_REQUEST_NUMBER), $(eval KEY_PREFIX=$(PULL_REQUEST_NUMBER)), $(eval KEY_PREFIX=$(ENVIRONMENT)))
then
-backend-config=key=${KEY_PREFIX}_kubernetes.tfstate
b082d64
to
bafe313
Compare
3f8fe2e
to
d02632e
Compare
Review app deployed to https://cpd-tsh-review-71.test.teacherservices.cloud/ |
DfE CPD standard scripts with 4 environments: review, staging, sandbox and production.