Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Enable Docker Wordpress image to start new WordPress container directly with SQLite

Aperta
#175 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
42/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
docker, php, sqlite

Direzione di ricerca

Inizia esaminando il Dockerfile, docker-entrypoint.sh e setup-config.php di WordPress collegati per capire dove devono essere inserite le dipendenze SQLite richieste, l’installazione del plugin e il comportamento della configurazione. Usa l’esempio docker-compose.yml come scenario di accettazione: un nuovo container WordPress dovrebbe avviarsi con WORDPRESS_USE_SQLITE abilitato senza richiedere un database MySQL esterno.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

It has been very silent around the sqlite integration. I think a lot more people might test it, if the setup would not require an additional external database to start. I tried to create a Dockerfile using FROM Wordpress:latest, but it seems there are a couple of challenges.

To get a smooth experience, we need

  1. Integration of the required SQLite dependencies into the Docker WordPress image (Dockerfile)
    (sqlite3, libsqlite3-dev, php-sqlite3, pdo_sqlite?)
  2. Enable install of WP SQLite plugin during first startup, maybe by using an ENV VAR (docker-entrypoint.sh)
  3. Skip required MYSQL during setup, maybe by using an ENV VAR (setup-config.php)
  4. Add the necessary SQLite settings, maybe by using an ENV VAR (probably in setup-config.php)

It doesn't look too complicated to me, it just needs a coordinated effort. Who can implement those changes (shell, php) and who is controlling those files to update them? How is the regular process? Who needs to agree to this?

The Docker Wordpress image size is 230MB, I don't think the SQL dependencies of around 1-3MB really matter. And I assume if not used, they should not introduce any kind of security issue.

Imagine you can spin up a new Wordpress with a simple example docker-compose.yml for wordpress:

services:
  wordpress:
    image: wordpress
    restart: always
    ports:
      - 8080:80
    environment:
      WORDPRESS_USE_SQLITE: true
    volumes:
      - wordpress:/var/www/html
Lingua principale
PHP
Stelle
363
Fork
67
Merge medio
5g 17h
PR unite (30g)
5

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WordPress/sqlite-database-integration

Tutte le issue di WordPress/sqlite-database-integration

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.