Skip to content

Instantly share code, notes, and snippets.

steps:
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'test']
@eggsy84
eggsy84 / gcp-build-package.json
Created August 27, 2018 14:48
gcp-build-package.json
{
"name": "gcp-cloud-build",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "jest",
"start": "node app.js"
},
"repository": {
# Trusty command to find large files
find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
# Large folders
du -k /* | awk '$1 > 500000' | sort -nr
@eggsy84
eggsy84 / kube_delete_error_pods.sh
Last active April 29, 2017 08:09
Kubernetes: Delete all error status pods
#!/bin/bash
kubectl delete pod $(kubectl get pods --show-all | grep Error | awk -F " " '{print $1}')