Debugging bitbucket pipelines locally | by Steve Liles | Medium

PHOTO EMBED

Fri Jul 30 2021 08:44:21 GMT+0000 (Coordinated Universal Time)

Saved by @RokoMetek #bash

docker run -it -v /var/run/docker.sock:/var/run/docker.sock --volume=/Users/steve/dev/my-project:/my-project --workdir="/node-api" --memory=2g --memory-swap=2g --memory-swappiness=0 --entrypoint=/bin/bash node:9.3.0



set -x
VER="17.12.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
content_copyCOPY

https://medium.com/@steveliles/debugging-bitbucket-pipelines-locally-35d13f1adcd5