Enable Docker Wordpress image to start new WordPress container directly with SQLite
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
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
- Integration of the required SQLite dependencies into the Docker WordPress image (
Dockerfile)
(sqlite3,libsqlite3-dev,php-sqlite3,pdo_sqlite?) - Enable install of WP SQLite plugin during first startup, maybe by using an ENV VAR (
docker-entrypoint.sh) - Skip required MYSQL during setup, maybe by using an ENV VAR (
setup-config.php) - 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WordPress/sqlite-database-integration
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
WordPress/sqlite-database-integration#454 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
WordPress/sqlite-database-integration#504 · 3 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
WordPress/sqlite-database-integration#478 · 2 bình luận ·
Tất cả issue của WordPress/sqlite-database-integration
Issue tương tự
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/safe-publish#594 ·
-
needs-triage Platform(Default)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
HttpClient
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
symfony/symfony-docs#23092 ·
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100