Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shopsys/gcp-ssfw-deployer
Internal scripts for managing GCP instance of Shopsys Platform ready for stress testing
https://github.com/shopsys/gcp-ssfw-deployer
google-cloud shopsys-framework shopsys-platform
Last synced: 24 days ago
JSON representation
Internal scripts for managing GCP instance of Shopsys Platform ready for stress testing
- Host: GitHub
- URL: https://github.com/shopsys/gcp-ssfw-deployer
- Owner: shopsys
- License: mit
- Created: 2019-09-24T06:38:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-08T10:42:36.000Z (over 2 years ago)
- Last Synced: 2024-11-09T03:37:43.491Z (3 months ago)
- Topics: google-cloud, shopsys-framework, shopsys-platform
- Language: Shell
- Homepage: https://www.shopsys.com
- Size: 12.7 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GCP SSFW Deployer
Internal package. Designed to automated deploying scalable ecommerce platform [Shopsys Framework (SSFW)](https://github.com/shopsys/shopsys) into [Google Cloud Platform (GCP)](https://cloud.google.com/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```bash
docker run \
-e PROJECT_ID \
-e GOOGLE_CLOUD_ZONE \
-e INSTANCE_NAME \
-e SERVICE_ACCOUNT_LOGIN \
-e GIT_BRANCH \
-e BUILD_NUMBER \
-v <>:/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
```bash
docker run \
-e PROJECT_ID \
-e GOOGLE_CLOUD_ZONE \
-e INSTANCE_NAME \
-v <>:/tmp/infrastructure/google-cloud/service-account.json \
-v "${WORKSPACE}/src":/src \
--rm \
google/cloud-sdk:slim \
/src/destroyer.sh
```