Sign inSign up

zack/wordpress-armhf

By zack

•Updated almost 11 years ago

Dockerfiles for WordPress on armhf devices (ex: Raspberry Pi)

Image
0

502

zack/wordpress-armhf repository overview

⁠Please checkout Dockerfiles on Github!⁠

⁠WordPress (Docker on armhf)

Dockerized WordPress image running on armhf platform (ex: Raspberry Pi)

⁠Usage

λ ~/ mkdir wordpress && cd $_
λ ~/wordpress/ wget https://raw.githubusercontent.com/imZack/wordpress-armhf/master/docker-compose/docker-compose.yml
λ ~/wordpress/ docker-compose up

:tada: That's it. Now, just visit http://localhost:8080⁠ :tada:

You don't have docker-compose yet? Just hit pip install docker-compose.

⁠Data Persistence

In your docker-compose it will create two folder for you.

  • www-data all WordPress data goes here.
  • mysql-data all MariaDB data.

⁠FAQ

How to fix file permissions?

λ ~/wordpress/ docker-compose run wordpress fix-permissions

How to import current WordPress?

  1. Copy wordpress folder to www-data and execute fix-permissions.
  2. Dump database from current wordpress and import into contianer.

How to increase upload file size (modify php.ini)?

Step 1. Create uploads.ini file with these settings.

file_uploads = On
memory_limit = 128M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 1800

Step 2. Edit docker-compose.yml, wordpress > volumes append ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini

volumes:
 - ./www-data:/var/www/html
 - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini

More questions?

create an issue⁠

⁠Images

These images has been built for armhf.

Don't know How to run Docker on Raspberry Pi 2? Check out Hypriot⁠

⁠WordPress

Docker Hub: zack/wordpress-armhf:4.3.1-apache⁠

Dockerfile⁠

fork from official repo: wordpress:4.3.1-apache⁠

⁠MariaDB

Docker Hub: armbuilds/mariadb⁠

Just use pre-build image from armbuilds

⁠PHP

Docker Hub: zack/php-arm:5.6-apache⁠

Dockerfile⁠

fork from official repo: php:5.6.14-apache⁠

⁠Contributors

Tag summary

Content type

Image

Digest

sha256:184b37145…

Size

155.6 MB

Last updated

almost 11 years ago

docker pull zack/wordpress-armhf:4.3.1-apache