Internal scripts for managing GCP instance of SSFW ready for stress testing
Internal package. Designed to automated deploying scalable ecommerce platform Shopsys Framework (SSFW) into Google Cloud Platform (GCP) for performance and stress tests.
There are scripts for easy managing GCP. Those scripts enables you to:
docker run \
-e PROJECT_ID \
-e GOOGLE_CLOUD_ZONE \
-e INSTANCE_NAME \
-e SERVICE_ACCOUNT_LOGIN \
-e GIT_BRANCH \
-e BUILD_NUMBER \
-v <<path/to/your/srvice-account.json>>:/tmp/infrastructure/google-cloud/service-account.json \
-v "${WORKSPACE}/build-${BUILD_NUMBER}/":"/code/build-${BUILD_NUMBER}/" \
-v "${WORKSPACE}/src":/src \
--rm \
google/cloud-sdk:slim \
/src/deployer.sh
PROJECT_ID
- Google Cloud Project IDGOOGLE_CLOUD_ZONE
- Google Cloud Zone INSTANCE_NAME
- VM instance name in Google Cloud (it is recommended to be unique to prevent conflicts)SERVICE_ACCOUNT_LOGIN
- Google Cloud service account username GIT_BRANCH
- Specify the branch you want to put under the stressBUILD_NUMBER
- Number of current buildWORKSPACE
- Current workdir
docker run \
-e PROJECT_ID \
-e GOOGLE_CLOUD_ZONE \
-e INSTANCE_NAME \
-v <<path/to/your/srvice-account.json>>:/tmp/infrastructure/google-cloud/service-account.json \
-v "${WORKSPACE}/src":/src \
--rm \
google/cloud-sdk:slim \
/src/destroyer.sh