123
Return to list Post new posts
Author: sypperpit

docker run on Orange Pi zero H2+

[Copy link]
 Author| Published in 2018-8-26 17:11:30 | Show all floors
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
 Author| Published in 2018-8-27 04:03:18 | Show all floors
very bad and slow work in docker
  1. tasksel install lamp-server
Copy code
 Author| Published in 2018-8-28 15:47:02 | Show all floors
 Author| Published in 2018-8-28 21:19:45 | Show all floors
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


  1. FROM arm32v7/php:7.2-apache

  2. VOLUME /home/<Username>/www:/var/www/html

  3. RUN apt-get update && apt-get install -y \
  4.         libfreetype6-dev \
  5.         libjpeg62-turbo-dev \
  6.         libpng-dev \
  7.         apt-transport-https \
  8.         libssl-dev \
  9.         zip unzip \
  10.         wget \
  11.     && docker-php-ext-install -j$(nproc) iconv \
  12.     && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  13.     && docker-php-ext-install -j$(nproc) gd iconv zip pdo bcmath

  14. RUN for mod in rewrite headers; do a2enmod $mod; done && service apache2 restart

  15. WORKDIR /var/www/html/

  16. EXPOSE 80:80
Copy code


<Username> - set you name
run
  1. docker build -t arm32v7/php /home/<Username>/www/
Copy code


See you image
  1. docker images
Copy code


REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
arm32v7/php         latest              <you_docker_ID_IMG>        30 minutes ago      323MB

and start server
  1. docker run -d -p 80:80 -v "$PWD":/var/www/html -t <you_docker_ID_IMG>
Copy code

see server start or not
  1. docker ps
Copy code


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

 Author| Published in 2018-8-28 21:22:23 | Show all floors

This thread contains more resources

You need to Log in to download or view,No account?    Register

x
 Author| Published in 2018-8-28 21:27:16 | Show all floors
[  OK  ] 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
 Author| Published in 2018-8-28 21:31:21 | Show all floors
use Gantry 5 Framework v5.4.24 for GRAV CMS
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list