Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

pipelines bitbucket can not execute composer install

Deleted user April 9, 2019

Hello I get this error in my pipelines bitbucket when I build my php code:

Do not run Composer as root/super user! See https://getcomposer.org/root for detailsComposer could not find a composer.json file in /opt/atlassian/pipelines/agent/buildTo initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

 

Any help please

2 answers

1 vote
Jade Krafsig May 15, 2019

Do you have a composer.json file?

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 11, 2019

Hi Omarlo,

Can you try using the "run-as-user" property. This will allow you to be a non-root user in Pipelines.

For example

image:
name: <your image name>
run-as-user: 1000

# Your normal pipeline below
pipelines:
default:
- step:
script:
- echo Hello

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events