Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Container 'docker' exceeded memory limit.

Hi there,

I'm running into issues with trying to push a docker image up to AWS using a pipeline. I've looked at a couple of other similar posts but nothing seems to do the trick for me. My `bitbucket-pipelines.yml` file is as follows:

 

image: node:14.8.0-alpine3.11

options:
docker: true

defintions:
services:
docker:
memory: 6000
step: &build
caches:
-
node
name: Build Branch
script:
-
cp -r ./db/prisma_dev prisma
-
npm install
-
npm run prisma:generate
-
npm run compile
artifacts:
-
dist/**
-
node_modules/**
-
prisma/**

pipelines:
default:
-
step:
script:
-
echo "No build script associated with this branch."

branches:
develop:
-
step: *build
-
step:
size: 2x
services:
-
docker
name: Deploy to Develop
deployment: develop
script:
- export ECS_REGION=eu-west-1
-
export ECS_REPO_URI= XXXX
-
export ENV=develop
-
docker build -t my-image .
-
pipe: atlassian/aws-ecr-push-image:1.1.3
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: image
TAGS: 'build-AA${BITBUCKET_BUILD_NUMBER}' 

No matter what I put in for memory seems to be enough to build the image. I've also tried adding `size: 2x` to the options but still no joy. Any help for how I can get passed this issue would be great.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you