sypperpit
post at 2018-8-26 17:11:30
If this is your own WordPress image, just add these lines to your Dockerfile:
RUN apt-get update \
&& apt-get install -y zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-install zip
https://github.com/docker-library/php/issues/52
sypperpit
post at 2018-8-27 04:03:18
very bad and slow work in docker
tasksel install lamp-server
sypperpit
post at 2018-8-28 15:47:02
https://hub.docker.com/search/?isAutomated=0&isOfficial=0&page=1&pullCount=0&q=arm32v7&starCount=0
sypperpit
post at 2018-8-28 21:19:45
Edited by sypperpit at 2018-8-28 21:34
docker work good :)
use https://hub.docker.com/r/arm32v7/php/
Copy you Grav CMS and Dockerfile to /home/<Username>/www
FROM arm32v7/php:7.2-apache
VOLUME /home/<Username>/www:/var/www/html
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
apt-transport-https \
libssl-dev \
zip unzip \
wget \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd iconv zip pdo bcmath
RUN for mod in rewrite headers; do a2enmod $mod; done && service apache2 restart
WORKDIR /var/www/html/
EXPOSE 80:80
<Username> - set you name
run
docker build -t arm32v7/php /home/<Username>/www/
See you image
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
arm32v7/php latest <you_docker_ID_IMG> 30 minutes ago 323MB
and start server
docker run -d -p 80:80 -v "$PWD":/var/www/html -t <you_docker_ID_IMG>
see server start or not
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
<you_docker_ID_cont> <ImageID> "docker-php-entrypoi…" 7 minutes ago Up 7 minutes 0.0.0.0:80->80/tcp jolly_minsky
sypperpit
post at 2018-8-28 21:22:23
sypperpit
post at 2018-8-28 21:27:16
Root access verified.
─────────────────────────────────────────────────────
DietPi CPU Info
Use dietpi-config to change CPU / performance options
─────────────────────────────────────────────────────
Architecture | armv7l
Temp | 29'c : 84'f| Who put me in the freezer!
Governor | ondemand
Throttle up| 85% CPU usage
sypperpit
post at 2018-8-28 21:31:21
use Gantry 5 Framework v5.4.24 for GRAV CMS