Skip to content

Internal scripts for managing GCP instance of Shopsys Platform ready for stress testing

License

Notifications You must be signed in to change notification settings

shopsys/gcp-ssfw-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

GCP SSFW Deployer

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

Usage

Deploying a new instance

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

ENV variable explanation:

  • PROJECT_ID - Google Cloud Project ID
  • GOOGLE_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 stress
  • BUILD_NUMBER - Number of current build
  • WORKSPACE - Current workdir

Removing an existing instance

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 

About

Internal scripts for managing GCP instance of Shopsys Platform ready for stress testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages