Customizing Deployments

Squash Docker Registry

Avatar

squashlabs, January 29, 2020

Squash has  a built-in Docker Registry that you can use to easily store and retrieve Docker images from your applications. How it works When Squash builds a new version of your app it will automatically create a new image and push it to the registry, if the build is successful. New subsequent builds will automatically

Read more

Pipelines

Avatar

squashlabs, January 27, 2020

Squash allows you to define multiple pipelines to handle the most complex use cases for executing automated scripts and even shipping code to production environments. Use cases Run all your unit tests, regression/functional tests using any framework. Automatically ship changes to cloud providers and third-party services. Automatically ship changes to production once all tests have

Read more

Sample YAML file configurations

Avatar

squashlabs, December 2, 2019

Docker & Docker Compose configurations Basic example Here you have a web app defined in a Dockerfile, this web app has an HTTP service running on port 3000. deployments: MyApp: filename: ./src/Dockerfile context_path: ./src port_forwarding: # Squash by default expects an HTTP service running on port 80. # For this example the HTTP service is

Read more

Multi-repository applications

Avatar

squashlabs, December 2, 2019

Squash supports applications made of several microservices defined within separate repositories. There are currently three ways to get such apps running in Squash: Using the deployment dependencies feature. Squash creates a unique VM for each independent repository and attach them all together through environment variables. This requires very little setup. You may also share one

Read more

Non-HTTP based deployments

Avatar

squashlabs, August 30, 2019

Squash supports launching service based deployments without an HTTP end point. This is helpful if you want to spin up a read-only database or any services that you want to share with one or more feature deployments. This is currently only supported within the Squash YAML file. How it works First you need to define

Read more

Kubernetes Specific YAML fields

Avatar

squashlabs, August 10, 2019

Back to the Squash YAML file page. Supported YAML fields The YAML fields below are supported on Kubernetes based deployments only. deployment_type This controls the deployment type: Docker or Kubernetes Mandatory field: Yes for Kubernetes. You need to set this value as “kubernetes” Data Type: Choices: kubernetes, docker Default value: docker For this example we

Read more

Kubernetes

Avatar

squashlabs, July 22, 2019

Squash has native support for Kubernetes (k8s). Currently this option is only available through the Squash YAML file. In order to get started you need to add the deployment_type: kubernetes field in the Squash YAML file, for all applications that are Kubernetes based. Then use our Kubernetes specific YAML file fields to customize your applications

Read more

GitLab Self-Hosted Setup

Avatar

squashlabs, July 19, 2019

Squash has native support for self-hosted GitLab instances, all Squash features are available in this integration. To get start first go to the Squash Sign up page, click on “Signup with GitLab” and then “GitLab Self-hosted” in the next page. Then click on the highlighted link to setup your GitLab access: The next step is

Read more

Deployment Dependencies

Avatar

squashlabs, June 11, 2019

Squash supports linking apps/microservices from multiple code repositories. This facilitates the deployment of complex apps with multiple microservices living in separate repositories. You can use this feature with repositories based on Docker/docker-compose, and also for repos without Docker. Squash also makes it easy to automatically link matching branches between dependencies. For instance, you may define

Read more

Automated Checks

Avatar

squashlabs, May 10, 2019

Squash can automatically start new deployments based on each commit and act similar to a Continuous Integration (CI) system. This gives you the power to check if a Squash build is successful and returning a success response for a given commit. You may also automatically run specific commands against the Squash deployment such as running

Read more

Please note that the steps below are only required for private repositories.  By default Squash uses OAuth access tokens from the hosted Version Control System provider (GitHub, Bitbucket or GitLab) in order to fetch a branch’s code during a Squash deployment. We do this in order to keep the amount of permissions on each provider

Read more

Pre-seeded databases (dev dbs)

Avatar

squashlabs, April 23, 2019

Squash makes it very easy to seed development databases. You can use your own sanitized data set or even clone production dumps (although in some cases this might not be recommend, see below). The way it works is based on importing a development db dump from any SQL or non-SQL database engines (MySQL, PostgreSQL, MongoDB,

Read more

Squash YAML: Docker specific fields

Avatar

squashlabs, April 22, 2019

Back to the Squash YAML file page. The Docker based build process Here is a sample of a Squash YAML file with two applications within the same repo. Each application requires  its own Dockerfile or docker-compose file. deployments: CRM: filename: ./src/crm/Dockerfile context_path: ./src vm_size: 1GB CoreApp: filename: ./src/coreapp/docker-compose.yml context_path: ./src vm_size: 2GB Supported YAML fields

Read more

Global YAML fields

Avatar

squashlabs, April 22, 2019

Back to the Squash YAML file page. The YAML fields below are supported on any application type (Docker or non-Docker based). allow_public_ports This will open in the firewall one or more ports for external access. Squash by default restricts external access to all ports running on deployment VMs except the SSH port and ports used

Read more

Repos with Multiple Apps

Avatar

squashlabs, April 16, 2019

Squash supports multiple applications within the same repository. You can test each app independently off its own virtual machine. You can also define custom PR comments with unique deployment links for each application. This works for apps based on Docker or without it (Squash YAML file based). Example using Docker/docker-compose The Squash YAML file sample

Read more