Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#175 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker, php, sqlite
Lĩnh vực
backend, databases, devops

Hướng nghiên cứu

Bắt đầu bằng cách xem xét Dockerfile, docker-entrypoint.sh và setup-config.php của WordPress được liên kết để hiểu các dependency SQLite được yêu cầu, việc cài đặt plugin và hành vi thiết lập cần nằm ở đâu. Sử dụng ví dụ docker-compose.yml làm kịch bản nghiệm thu: một container WordPress mới phải có thể khởi động với WORDPRESS_USE_SQLITE được bật mà không cần cơ sở dữ liệu MySQL bên ngoài.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
PHP
Star
363
Fork
67
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
7

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WordPress/sqlite-database-integration

Tất cả issue của WordPress/sqlite-database-integration

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.