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:
- create a single virtual machine and run SSFW via docker-compose (load huge amount of data are loaded into SSFW and set production environment)
- delete whole instance on GCP
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 ZoneINSTANCE_NAME
- VM instance name in Google Cloud (it is recommended to be unique to prevent conflicts)SERVICE_ACCOUNT_LOGIN
- Google Cloud service account usernameGIT_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