Add Docker setup (PHP 7.4 + Apache + MySQL 8.0)#17
Open
gaetanocastaldo88 wants to merge 2 commits intoVTECRM:mainfrom
Open
Add Docker setup (PHP 7.4 + Apache + MySQL 8.0)#17gaetanocastaldo88 wants to merge 2 commits intoVTECRM:mainfrom
gaetanocastaldo88 wants to merge 2 commits intoVTECRM:mainfrom
Conversation
Adds a self-contained Docker setup to run VTENext CE locally for development and testing. Stack: - PHP 7.4 + Apache (Debian Bullseye) - MySQL 8.0 - phpMyAdmin (optional, --profile tools) Features: - All required PHP extensions pre-installed (curl, imap, gd, bcmath, mbstring, zip, pdo_mysql, mysqli, intl, opcache, apcu, sockets) - Automatic patch for check_db_utf8_support() static method bug - config.db.php written from environment variables at startup - Named volumes for data persistence across restarts - Configurable via .env file Usage: cp docker/.env.example docker/.env docker compose -f docker/docker-compose.yml up -d --build # open http://localhost:8080/install.php Docker Hub: https://hub.docker.com/r/gaetano88/vtenext-ce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a self-contained Docker setup to run VTENext CE locally for development and testing, with no manual PHP or MySQL configuration required.
--profile tools)curl,imap,gd,bcmath,mbstring,zip,pdo_mysql,mysqli,intl,opcache,apcu,socketsBug fixes included
Two bugs in the installation wizard are patched automatically:
utils.phpline 138 —check_db_utf8_support()is called as a global function but is defined as a static method insideInstallation_Utils. Fixed by replacing withself::check_db_utf8_support()at build time.config.db.php— the wizard does not always write the DB config, leaving_DBC_TYPE_placeholders. The entrypoint script writes this file from environment variables at container startup.Usage
Open http://localhost:8080/install.php and follow the wizard.
Test plan