FAQ

Docker Build Secrets

Avatar

squashlabs, August 17, 2022

Squash supports the native Docker Secrets functionality. This allows keeping any sensitive environment variables out of the Docker image. Using this feature is simple and requires just a few steps that need to be added within the Squash YAML file. The build_options field is required and the –secrets flag must be present. Example: build_options: –no-cache

Read more

How to reduce the build & startup time of an app

Avatar

squashlabs, September 17, 2021

There are two easy ways to greatly speed up the build and startup time of web apps in Squash. Besides improving the user experience, fast startup times allow you to reduce the expiration time of your deployments, which will lead to significant cost savings. Using the Deployment Cache First check if the Deployment Cache feature

Read more

SSH Access

Avatar

squashlabs, October 19, 2020

Squash automatically pulls your public keys from either GitHub/Bitbucket/GitLab allowing you to SSH to any Squash instance without any additional setup. You may also upload public keys directly into Squash. How to SSH to a Squash instance Every Squash deployment has a SSH endpoint allowing you to debug complex issues and perform updates to your

Read more

Sample YAML file configurations

Avatar

squashlabs, December 2, 2019

Tech Stack Examples Python NodeJS PHP Ruby Java TypeScript Go Basic example – using a Dockerfile For this first example we have a web app defined in a Dockerfile, this web app has an HTTP service running on port 3000 and we are using the port_forwarding field to properly tell Squash to route traffic to

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

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

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

Missing branch of code

Avatar

squashlabs, April 22, 2019

I can’t find a branch of code before a new deployment Sometimes Squash might not properly receive notifications from one of the VCS providers (GitHub/GitLab/Bitbucket) regarding new branches. Even when that happens Squash periodically checks the list of branches on each repo to keep them up to date. However, here are a few steps you

Read more

Bots accessing Squash URLs

Avatar

squashlabs, April 16, 2019

By default Squash will reject new deployment starts when the requests are coming from a known list of bots. This is helpful if you are not using Squash’s built-in Basic Authentication. We recommend enabling Basic Authentication though. This only affects the deployment startup process. Squash will still allow bots to access environment URLs when they

Read more

Docker Issues

Avatar

squashlabs, April 13, 2019

Please refer to this page for more information on Docker support in Squash. Docker image does not exist Are you using private docker images? if so, please double check the access credentials for your registry server. Also ensure the image is still available in there. Check if the deployment cache is being used, invalidate the

Read more

Repository issues

Avatar

squashlabs, April 13, 2019

Git clone failed If you are using GitHub, please check if you have authorized this repository in GitHub. Go to Settings -> Repositories: and click on “Check my GitHub permissions”: For GitLab and Bitbucket, if this is a new repository you can click on the “Force a repository sync” button. Missing private repositories This is

Read more

IP Addresses

Avatar

squashlabs, April 13, 2019

Squash currently runs its infrastructure mainly from AWS, on North American regions. Due to the fact that there is a very large number of possible IPs used by our deployments, we can’t provide a list of IP address for whitelisting. That being said, we plan to support static IPs in the future in order to

Read more

Host OS & installed packages

Avatar

squashlabs, April 13, 2019

Host OS and installed packages The host virtual machine where we deploy your Docker containers comes with an absolute minimum list of handy tools. These are not meant to be extensive since you can fully customize the environment within a Docker container to fit your needs. Host environment details: Operating System: Amazon Linux 2 (CentOS

Read more

Signing up with GitLab

Avatar

squashlabs, April 13, 2019

Squash only requests the absolutely minimum set of permissions on GitLab. We support both GitLab Cloud and GitLab Self-hosted. GitLab Self-Hosted Setup Please follow the steps on this page for GitLab Self-Hosted. GitLab Cloud When you signup you will be prompted to the following screens: Oauth This is the standard GitLab authorization page requesting your

Read more