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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

455 views 4 4
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