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

Pipelines seems to add configuration to my container image. I can't seem to override this value.

Edited

Bitbucket pieplines seems to be running our container in such a way that a PHP configuration is apparently being set.

 

So for example

 

docker run ti --rm wodby/drupal-php:7.2 shell

wodby@php.container:/var/www/html $ php -i | grep memory
memory_limit => -1 => -1

 

Now the following is our pipeline config, followed by the step. I've removed chunks for clarity.

---

options:

  docker: true

//our pipeline steps

definitions:

  services:

    mysql:

      image: mysql:5.7

- step: name: Install Drupal 
image: wodby/drupal-php:7.2
services:
-
mysql
script:
- php -i | grep memory
+ php -i | grep memorymemory_limit => 128M => 128M

Where is this memory limit coming from? None of our containers or pipeline configuration have specified this configuration.

1 answer

1 accepted

1 vote
Answer accepted

Hi @Rich Allen

Great question!

Pipelines will not call the wodby/drupal-php:7.2 docker entrypoint script. That script is the one responsible for setting the memory configuration you need. As a workaround, you can call the entrypoint script at the beginning of your Drupal step.

The following should show the memory configuration as you need:

- step:
name: Install Drupal
image: wodby/drupal-php:7.2
script:
- /docker-entrypoint.sh
- php -i | grep memory

I hope that helps.

That makes total sense, thank you for the assistance.

Like Daniel Santos likes this

Yeah, I learned that from this question. Thank you for the opportunity you gave me.
Have a good one!

Hey @Rich Allen,

What do you think of sharing your knowledge on setting up Drupal with this user?
https://community.atlassian.com/t5/Bitbucket-questions/Drupal-7-deployment/qaq-p/1133074

Drupal is not my area of expertise and that is why I'm encouraging you to share your knowledge there if you have time for that of course. =]

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

4,320 views 11 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