Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Pipeline: Container 'docker' exceeded memory limit (Vuejs) Edited

Hello everyone:

I've been fighting with this problem for three days already. The thing is, I have a pipeline to deploy my container in AWS ECR and it fail saying: Container 'docker' exceeded memory limit, when I push my master branch.

It is a frontend in Vuejs with a Nginx server, as it is recommended in Vue documentation, it is not big and I assigned - I think - enough resources.

I've been trying different memory configuration, in size: 1x and 2x and, memory: 1024, 2048... 7128. And none of them works. It build in my end. 

Any idea other than memory? I think I tried all combinations.

The following is my `bitbacket-pipeline.yml`:

image: node:12

pipelines:
default:
- step:
size: 1x
caches:
-
node

script:
-
npm install
-
npm run test:unit

branches:
master:
-
step:
size: 2x
caches:
-
node
script:
-
npm install
-
npm run test:unit
# Build the image.
-
docker build -t beautiful-frontend .
# use the pipe to push the image to AWS ECR
-
pipe: atlassian/aws-ecr-push-image:1.0.2
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: beautiful-frontend
services:
-
docker

definitions:
service:
docker:
# Memory docker-in-docker
memory: 7128

 

3 answers

Have the same issue, already using 

      options:    

           size2x

and

      definitions:    

            services:        

                   docker:            

                        memory: 6144 

 

but still the same problem

0 votes

Hi Adan,

at which point exactly is the error occuring? Is it when calling the pipe?

Cheers,

Antoine

Not, it is when building the container image.

Like Kamil Cieślak likes this

@Adan J. Suarez  did you find any solution for the memory issue?

In our case, the build fails at npm run build step.

Yes, I did. In our Dockerfile we changed as follow:

(original):

FROM node:12

(new version):

FROM node:12-alpine

The alpine version is smaller and that solved the problem. Hope that helps!

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...

538 views 6 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