All Projects → yobasystems → alpine-grav

yobasystems / alpine-grav

Licence: other
Grav running on Alpine Linux [Docker]

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to alpine-grav

gitlab-runner
Gitlab Runner on Alpine Linux [Docker]
Stars: ✭ 17 (+21.43%)
Mutual labels:  alpine, yobasystems
alpine-prestashop
Prestashop running on Alpine Linux [Docker]
Stars: ✭ 13 (-7.14%)
Mutual labels:  alpine, yobasystems
alpine-php-wordpress
Wordpress running on Alpine Linux [Docker]
Stars: ✭ 30 (+114.29%)
Mutual labels:  alpine, yobasystems
grav-plugin-shortcode-ui
Grav Shortcode UI Plugin
Stars: ✭ 45 (+221.43%)
Mutual labels:  grav
drupal-php
PHP docker container image for Drupal
Stars: ✭ 56 (+300%)
Mutual labels:  alpine
grav-theme-learn2
Learn2 Grav Theme
Stars: ✭ 80 (+471.43%)
Mutual labels:  grav
docker-alpine-gcc
The smallest Docker image with C compiler (GCC) (130MB)
Stars: ✭ 48 (+242.86%)
Mutual labels:  alpine
mage2docker
A performant, replicable, and production-like alpine Magento 2 local development environment that leverages Docker.
Stars: ✭ 37 (+164.29%)
Mutual labels:  alpine
rapide
WIP! do not use just yet - Opinionated Vite + Alpine.js starter PWA template
Stars: ✭ 15 (+7.14%)
Mutual labels:  alpine
grav-plugin-taxonomylist
Grav TaxonomyList Plugin
Stars: ✭ 19 (+35.71%)
Mutual labels:  grav
grav-theme-masonry
Masonry, grid-based blog theme for Grav
Stars: ✭ 43 (+207.14%)
Mutual labels:  grav
docker-dolibarr
🐳 🐘 Docker image for Dolibarr.
Stars: ✭ 58 (+314.29%)
Mutual labels:  alpine
grav-plugin-seo
Manage your site’s meta tags for display in search engine results or social media networks. Create and manage json-ld microdata. Includes an easy-to-use live preview feature.
Stars: ✭ 80 (+471.43%)
Mutual labels:  grav
grav-plugin-readingtime
Grav ReadingTime Plugin
Stars: ✭ 19 (+35.71%)
Mutual labels:  grav
dockerfiles-nginx-auth-ldap
Nginx on Alpine with LDAP authentication module from kvspb/nginx-auth-ldap
Stars: ✭ 25 (+78.57%)
Mutual labels:  alpine
docker-jre
Lean JRE 8 Docker container
Stars: ✭ 25 (+78.57%)
Mutual labels:  alpine
alpinist
Automatic Alpine Linux Package (apk) Repository Generation using AWS Lambda, S3 & SSM Parameter Store
Stars: ✭ 45 (+221.43%)
Mutual labels:  alpine
dcos-k8s-rust-skaffold-demo
A demo of pipelining Rust application development to Kubernetes on DC/OS with Skaffold.
Stars: ✭ 40 (+185.71%)
Mutual labels:  alpine
docker-geoserver
A basic docker geoserver image with JAI and marlin renderer running on tomcat
Stars: ✭ 17 (+21.43%)
Mutual labels:  alpine
grav-plugin-login
Grav Login Plugin
Stars: ✭ 40 (+185.71%)
Mutual labels:  grav

Grav Docker image running on Alpine Linux

Docker Automated build Docker Pulls Docker Stars

Alpine Version Grav Version

This Docker image (yobasystems/alpine-grav) is based on the minimal Alpine Linux ready for running Grav (Flat file CMS)

Alpine Version 3.10.1 (Released July 11, 2019)
Grav Version 1.6.14

Features

  • Minimal size only 43 MB and only 7 layers
  • Memory usage is minimal on a simple install

Architectures

  • :amd64, :x86_64 - 64 bit Intel/AMD (x86_64/amd64)
  • :arm64v8, :aarch64 - 64 bit ARM (ARMv8/aarch64)
  • :arm32v7, :armhf - 32 bit ARM (ARMv7/armhf)
PLEASE CHECK TAGS BELOW FOR SUPPORTED ARCHITECTURES, THE ABOVE IS A LIST OF EXPLANATION

Tags

  • :latest latest branch based (Automatic Architecture Selection)
  • :master master branch usually inline with latest
  • :deliver-site deliver-site branch based (Automatic Architecture Selection)
  • :one-page one-page branch based (Automatic Architecture Selection)
  • :amd64, :x86_64 amd64 based on latest tag but amd64 architecture
  • :aarch64, :arm64v8 Armv8 based on latest tag but arm64 architecture
  • :armhf, :arm32v7 Armv7 based on latest tag but arm32 architecture

Layers & Sizes

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Creating an instance

mkdir -p /data/{domain}/html

docker run -e VIRTUAL_HOST={domain}.com,www.{domain}.com -v /data/{domain}/html:/usr/html -p 80:80 yobasystems/alpine-grav

E.G

mkdir -p /data/yobasystems/html

docker run -e VIRTUAL_HOST=www.yobasystems.co.uk -v /data/yobasystems/html:/usr/html -p 80:80 yobasystems/alpine-grav

Make sure you create the folder on the host before starting the container and obtain the correct permissions.

mkdir -p /data/{domain}/html

docker run -e VIRTUAL_HOST={domain}.com,www.{domain}.com -v /data/{domain}/html:/usr/html -p 80:80 yobasystems/alpine-grav

E.G

mkdir -p /data/yobasystems/html

docker run -e VIRTUAL_HOST=www.yobasystems.co.uk -v /data/yobasystems/html:/usr/html -p 80:80 yobasystems/alpine-grav

The following user and group id are used, the files should be set to this: User ID: Group ID:

chown -R 100:101 /data/{domain}/html

E.G

chown -R 100:101 /data/yobasystems/html

The docker image will auto create the folder and populate with files if it doesn't exist. Make sure to mount /data/{domain}/html with your Backup files.

The following user and group id are used, the files should be set to this: User ID: Group ID:

chown -R 100:101 /data/{domain}/html

Volume structure

  • /usr/html: Webroot

GRAV CLI GPM

Grav includes a GPM (Grav Package Manager) which allows you to install, update, uninstall and list all the themes and plugins available on the Grav repository, as well as upgrade Grav itself to the latest version. Its best to su nginx before executing anything or else you can potentially compromise your host.

docker exec -it <container_name> bash
su nginx
cd /usr/html
bin/gpm list

Upload limit

The upload limit is 128 Megabytes.

Change php.ini value

modify files/php-fpm.conf

To modify php.ini variable, simply edit php-fpm.ini and add php_flag[variable] = value.

php_flag[display_errors] = on

PHP Modules

List of available modules in Alpine Linux, not all these are installed.

In order to install a php module do, (leave out the version number i.e. -5.6.11-r0
docker exec <image_id> apk add <pkg_name>
docker restart <image_name>

Example:

docker exec <image_id> apk add php7-soap
docker restart <image_name>
php7-common
php7-pdo_sqlite
php7-pear
php7-ftp
php7-imap
php7-mysqli
php7-json
php7-mbstring
php7-soap
php7-litespeed
php7-sockets
php7-bcmath
php7-opcache
php7-dom
php7-zlib
php7-gettext
php7-fpm
php7-intl
php7-openssl
php7-session
php7-mcrypt
php7-pdo_mysql
php7-embed
php7-xmlrpc
php7-wddx
php7-dba
php7-ldap
php7-xsl
php7-exif
php7-pdo_dblib
php7-bz2
php7-pdo
php7-pspell
php7-sysvmsg
php7-gmp
php7-apache2
php7-pdo_odbc
php7-shmop
php7-ctype
php7-phpdbg
php7-enchant
php7-sysvsem
php7-sqlite3
php7-odbc
php7-pcntl
php7-calendar
php7-xmlreader
php7-snmp
php7-zip
php7-posix
php7-iconv
php7-curl
php7-doc
php7-gd
php7-xml
php7-dev
php7-cgi
php7-sysvshm
php7-pgsql
php7-tidy
php7-pdo_pgsql
php7-phar
php7-mysqlnd

Docker Compose example:

grav:
  image: yobasystems/alpine-grav:latest
  environment:
    VIRTUAL_HOST: www.example.co.uk
  expose:
    - "80"
  volumes:
    - /data/example/www:/usr/html
  restart: always

Source Repository

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].