The build failed because the process exited too early. This probably means the system ran out of memory or someone called `kill -9` on the process

43 views Asked by At

Getting failed while running bitbucket-pipelines.yml in bitbucket building react application docker build

Script:-

image: hashicorp/terraform
 
pipelines:
  branches:
    master:
    - step:
        size: 2x
        name: Build and Deploy 
        image: node:18
        services:
          - docker
        script:
          - while true; do echo "Memory usage in bytes:" && cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes; sleep 2; done &
          - while true; do date && ps aux && echo "" && sleep 2; done &
          # Build the Docker image
          - docker build -t xyz:latest .

i have increased the size: 2x still faceing same error!! inside the script

0

There are 0 answers