With the new 4x and 8x size capabilities, how do i use the max memory and CPU to accomodate a large project build requirements. Is there a way to explicitly define memory and CPU in pipeline.yml. PFB curretn yaml
image: atlassian/default-image:2pipelines:tags:'*[0-9].*[0-9].*[0-9]-*': - step:name: dev-releaseimage: atlassian/default-image:2deployment: stagingclone:enabled: trueservices: - dockersize: 8xcaches: - maven - gradlescript: - docker login --username $HUB_USERNAME --password $HUB_PASSWORD - VERSION=${BITBUCKET_TAG}# build the Docker image (this will use the Dockerfile in the root of the repo) - docker build -f Dockerfile.pipeline -t myrepo/jupyter-notebook:${BITBUCKET_TAG} . --build-arg build_version=$VERSION# push the new Docker image to the Docker registry - docker push myrepo/jupyter-notebook:${BITBUCKET_TAG}definitions:services:docker:memory: 4096
Hi mayank,
Memory allocation is customizable, whereas CPU will remain as a set amount depending on the option selected:
Allocating memory to service containers functions the same way as before, we have documentation that covers this below:
Cheers!
- Ben (Bitbucket Cloud Support)
It looks like you're new here. Sign in or register to get started.