- First of all, you need to set next terraform configuration
variables in the
variables.tf
file:- cloud_id - ID of the cloud where project need to be created;
- db_user - Username for the main database user;
- db_password - Password for the main database user.
- Add yandex authentication data to env variables using the
terraform-auth.ps1
helper script. - Run the
build-functions.ps1
script. - Run
terraform -chdir=ops-tools apply -input=false
. - Fill
repositoryId
variable in thebuild-base-api.ps1
file with id of the created container registry. - Fill
dbUsername
,dbPassword
anddbUrl
parameters in therun-migrations.ps1
file with appropriate values. - Run the
release.ps1
script.
If you need to update your software:
- Add yandex authentication data to env variables using the
terraform-auth.ps1
helper script. - Run the
release.ps1
script.
-
Run docker container with testing database with username
root
, passwordroot
and namestore-monitor-test
.For example, you can use the following command:
docker run --name store-monitor-test -e MYSQL_DATABASE=store-monitor-test -e MYSQL_ROOT_PASSWORD=root -d mysql:8.3.0
-
Run the
run-tests.ps1
script.