Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123
Return to list New
Author: sypperpit

docker run on Orange Pi zero H2+

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


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


See you image
  1. docker images
Copy the 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 the Code

see server start or not
  1. docker ps
Copy the 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| Post time 2018-8-28 21:22:23 | Show all posts

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x
 Author| Post time 2018-8-28 21:27:16 | Show all posts
[  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| Post time 2018-8-28 21:31:21 | Show all posts
use Gantry 5 Framework v5.4.24 for GRAV CMS
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-20 17:50 GMT+8 , Processed in 0.026633 second(s), 20 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list