containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/wordpress-nginx] The wrong wp-config.php is checked for existence

Open ziodave opened this issue 2 years ago • 2 comments

Name and Version

bitnami/wordpress-nginx:6

What steps will reproduce the bug?

  1. Map a local wp-content folder to /bitnami/wordpress/wp-content
  2. Spin up a container
  3. WordPress is not initialized

What is the expected behavior?

The startup script should configure WordPress because the /bitnami/wordpress/wp-config.php is not existing.

What do you see instead?

The startup script is considering the app already initialized.

Additional information

The error is at https://github.com/bitnami/bitnami-docker-wordpress-nginx/blob/master/6/debian-11/rootfs/opt/bitnami/scripts/libwordpress.sh#L231 since we're looking for /opt/bitnami/wordpress/wp-config.php instead of /bitnami/wordpress/wp-config.php.

/opt/bitnami/wordpress/wp-config.php is always present since it's part of the image.

ziodave avatar Jul 28 '22 10:07 ziodave

We are going to transfer this issue to bitnami/containers

In order to unify the approaches followed in Bitnami containers and Bitnami charts, we are moving some issues in bitnami/bitnami-docker-<container> repositories to bitnami/containers.

Please follow bitnami/containers to keep you updated about the latest bitnami images.

More information here: https://blog.bitnami.com/2022/07/new-source-of-truth-bitnami-containers.html

Please, note this asset is a community-supported solution. This means that the Bitnami team is not actively working on new features/improvements nor providing support through GitHub Issues for this asset. Any new issue will stay open for 20 days to allow the community to contribute, after 15 days without activity the issue will be marked as stale being closed after 5 days.

The Bitnami team will review any PR that is created, feel free to create a PR if you find any issue or want to implement a new feature.

fmulero avatar Jul 28 '22 15:07 fmulero

up !

siddjellali avatar Aug 10 '22 23:08 siddjellali

I can confirm that the container by default comes with /opt/bitnami/wordpress/wp-config.php file present, regardless if you have the actual file mounted in /opt/bitnami/wp-config.php, which results in a false positive check.

To replicate the issue above

Spin up a new container docker run -td --name wordpress-nginx bitnami/wordpress-nginx:6 sleep infinity SSH into the container docker exec -it wordpress-nginx bash Confirm the existence of the wp-config.php ls -lah /opt/bitnami/wordpress/wp-config.php

I am also affected by the same issue, but different case scenario (#4314).

timofey-drozhzhin avatar Aug 26 '22 00:08 timofey-drozhzhin

any update here, please ?

siddjellali avatar Sep 01 '22 11:09 siddjellali

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Sep 17 '22 01:09 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Sep 22 '22 01:09 github-actions[bot]