Giter VIP home page Giter VIP logo

Comments (5)

ZCube avatar ZCube commented on May 31, 2024 1

@jmhbnz I put it on the main branch by mistake, which doesn't guarantee it will work.
php + apache is difficult

from bitnami-compat.

ZCube avatar ZCube commented on May 31, 2024

@jmhbnz Currently, this repository is in the proof-of-concept stage and is not well documented. A refactoring is planned, so it will be good to see later.
Excluding that, for a hint, refer to the existing wordpress package list https://github.com/bitnami/bitnami-docker-wordpress/blob/master/5/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json If so, the packages you need are:

  • apache
  • gosu
  • libphp
  • mysql-client
  • php
  • render-template
  • wordpress
  • wp-cli

Among them, the packages prepared in advance with golang are as follows.

  • gosu
  • render-template

Among them, the packages related to php and apache are as follows.

  • apache
  • libphp
  • mysql-client
  • php

If you use php:8.0-apache-buster as the base image of Docker for these 4 packages, you do not need to implement the installation part.

Additionally, for compatibility with the bitnami environment, a link must be created under /opt/bitnami/.

Finally, in the case of wordpress and wp-cli, the php environment is already established, so it can be solved by distributing it to the same location as the existing bitnami.

from bitnami-compat.

jmhbnz avatar jmhbnz commented on May 31, 2024

Hey @ZCube - Thanks for the initial reply above, I've starting working through adding wordpress support in my fork.

Here is what I have done so far.

  1. Added submodule for wordpress

https://github.com/jmhbnz/bitnami-compat/commit/6ae110063af0a6738a47bf82966bdd460a126429

git submodule add https://github.com/bitnami/bitnami-docker-wordpress
  1. Added wordpress to github workflow

https://github.com/jmhbnz/bitnami-compat/commit/15e54529b1ead578abf64f65becb93582a844f4c

         - APP: "wordpress"
           OS_FLAVOUR: "debian-10"
           VERSION_MAJOR: "5"
           VERSION: "5.9.2"
           REVISION: "0"
           OS_NAME: "linux"
           REPO_OWNER: "bitnami"
  1. Enabled github actions on my fork and run

The workflow is running and a job has started for wordpress but it is hitting the following error: https://github.com/jmhbnz/bitnami-compat/runs/5515958285?check_suite_focus=true#step:12:932

  > [linux/amd64 stage-1 10/13] RUN /opt/bitnami/scripts/php/postunpack.sh:
#41 0.145 php 19:27:38.71 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php.ini' is not writable. The 'opcache.interned_strings_buffer' option will not be configured.
#41 0.152 php 19:27:38.71 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php.ini' is not writable. The 'opcache.memory_consumption' option will not be configured.
#41 0.155 php 19:27:38.72 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php.ini' is not writable. The 'opcache.file_cache' option will not be configured.
#41 0.165 php 19:27:38.72 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php-fpm.d/www.conf' is not writable. The 'listen' option will not be configured.
#41 0.170 php 19:27:38.73 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php.ini' is not writable. The 'upload_tmp_dir' option will not be configured.
#41 0.182 php 19:27:38.74 WARN  ==> The PHP configuration file '/opt/bitnami/php/etc/php.ini' is not writable. The 'session.save_path' option will not be configured.
#41 0.210 php 19:27:38.77 INFO  ==> Disabling PHP-FPM daemon user/group configuration
#41 0.212 mv: cannot stat '/opt/bitnami/php/etc/common.conf': No such file or directory
------
Dockerfile:35
--------------------
  33 |     RUN /opt/bitnami/scripts/mysql-client/postunpack.sh
  34 |     RUN /opt/bitnami/scripts/apache/postunpack.sh
  35 | >>> RUN /opt/bitnami/scripts/php/postunpack.sh
  36 |     RUN /opt/bitnami/scripts/apache-modphp/postunpack.sh
  37 |     RUN /opt/bitnami/scripts/wordpress/postunpack.sh
--------------------
error: failed to solve: process "/bin/sh -c /opt/bitnami/scripts/php/postunpack.sh" did not complete successfully: exit code: 1
Error: buildx failed with: error: failed to solve: process "/bin/sh -c /opt/bitnami/scripts/php/postunpack.sh" did not complete successfully: exit code: 1

Edit: This is the script the dockerfile appears to be running: https://github.com/bitnami/bitnami-docker-wordpress/blob/master/5/debian-10/rootfs/opt/bitnami/scripts/php/postunpack.sh

Are you able to provide any more guidance on what I might be missing?

Thanks! πŸ™πŸ»

from bitnami-compat.

ZCube avatar ZCube commented on May 31, 2024

@jmhbnz You have to find a way to make the missing binary and fill it in. This bitnami-compat repository doesn't do it magically. Wordpress has complex dependencies like php and apache, and please refer to wordpress branch for an example that I tried on my own.

from bitnami-compat.

jmhbnz avatar jmhbnz commented on May 31, 2024

Hey @ZCube thanks for your work adding wordpress support, much appreciated.

I've refreshed my fork and built the wordpress image there via actions pipeline as the image produced by your branch is still private currently.

On an arm machine I've substituted the newly built image repo and tag into the helm chart and it looks to be behaving normally:

wordpress 09:28:15.23 
wordpress 09:28:15.23 Welcome to the Bitnami wordpress container
wordpress 09:28:15.23 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-
wordpress
wordpress 09:28:15.24 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-wor
dpress/issues
wordpress 09:28:15.24 
wordpress 09:28:15.24 INFO  ==> ** Starting WordPress setup **
realpath: /bitnami/apache/conf: No such file or directory
wordpress 09:28:15.28 INFO  ==> Configuring the HTTP port
wordpress 09:28:15.29 INFO  ==> Configuring the HTTPS port
wordpress 09:28:15.31 INFO  ==> Configuring PHP options
wordpress 09:28:15.33 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
wordpress 09:28:15.38 WARN  ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety rea
sons, do not use this flag in a production environment.
wordpress 09:28:15.52 INFO  ==> Ensuring WordPress directories exist
wordpress 09:28:15.52 INFO  ==> Trying to connect to the database server

The project I'm working on has moved away from bitnami charts for arm devices for now but I wanted to come back and do some quick verification here given the work you put in to bring it online, I'm sure others will find this helpful. Thanks again.

from bitnami-compat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.