We have created a custom Docker image and put in docher hub as public image.
In our repository yml file, image name is given with this detail as follows.
========= yml file ==========
image: myxxxx/docker-xxxxx
pipelines:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."=======
My expectation is that default Atlassian docker image shouldnt run, instead, my custom docker image should be run first.
But when a push is done in repository or manually re run the yml file, the log/console in pipeline is produced as follows, where in default Atlassian docker image is run. My Question is "Can we run our custom Docker iamge at first, can we disable the default image run and default hg clone ?"
<span>+ <strong>docker run</strong> -t --entrypoint=/bin/bash --memory=4096m -e BUILD_DIR=/opt/atlassian/pipelines/agent/build -v /tmp/bashScript5134297271196295798.<a href="http://sh/tmp/bashScript5134297271196295798.sh:ro" rel="nofollow noopener noreferrer">sh:/tmp/bashScript5134297271196295798.sh:ro</a> -v <a href="http://build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb/opt/atlassian/pipelines:rw" rel="nofollow noopener noreferrer">build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb:/opt/atlassian/pipelines:rw</a> -w /opt/atlassian/pipelines/agent/build --label com.atlassian.pipelines.agent="a884e9948c81" "<strong>atlassian/pipelines-dvcstools:latest</strong>" -i /tmp/bashScript5134297271196295798.sh</span><span>WARNING: Your kernel does not support swap limit capabilities, memory limited without swap.</span><span>+ umask 000</span><span>Completed at 2016-12-23T05:20:00Z</span><span>+ </span>
<span><strong>hg clone</strong> -r "bd45bf5364e548417b1a49b210075bca381b52b6" </span><span><a href="https://x-token-auth%24" rel="nofollow noopener noreferrer">https://x-token-auth:$</a><a href="mailto:AUTH_TOKEN@bitbucket.org" rel="nofollow noopener noreferrer">AUTH_TOKEN@bitbucket.org</a>/xxxxMyRepositoryxxxxx .</span>
<span>adding changesets</span><span>adding manifests</span><span>adding file changes</span><span>files</span>
<span>+ chmod 777 $BUILD_DIR</span><span>+ docker pull</span>
/* Docker image download logs*/
<span>Status: Downloaded newer image for </span>myxxxx/docker-xxxxx<span>:latest</span><span>+ docker run -t --rm=true --cidfile=/tmp/1482470399216-0/{4b8b7f78-4751-4700-b22e-e47061208add} --entrypoint=/bin/bash --memory=4096m --env-file=/tmp/dockerEnvironment9198828661972663903.env -v /tmp/bashScript7937493111742088239.<a href="http://sh/tmp/bashScript7937493111742088239.sh:ro" rel="nofollow noopener noreferrer">sh:/tmp/bashScript7937493111742088239.sh:ro</a> -v <a href="http://build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb/opt/atlassian/pipelines:rw" rel="nofollow noopener noreferrer">build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb:/opt/atlassian/pipelines:rw</a> -v <a href="http://build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb/opt/atlassian/bitbucketci:rw" rel="nofollow noopener noreferrer">build-volume-c4610737-4c4c-43b9-a3a0-b87a7ca1f9fb:/opt/atlassian/bitbucketci:rw</a> -w /opt/atlassian/pipelines/agent/build --label com.atlassian.pipelines.agent="a884e9948c81" "myxxxx/docker-xxxxx" -i /tmp/bashScript7937493111742088239.sh</span>
<span>WARNING: Your kernel does not support swap limit capabilities, memory limited without swap.</span>