Giter VIP home page Giter VIP logo

williarin / docker-images Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 197 KB

Up to date Docker images for PHP 7.4, 8.0, 8.1, 8.2, 8.3 development and production, as well as Alpine Linux images with zsh shell.

Home Page: https://hub.docker.com/r/williarin

License: MIT License

Makefile 27.19% Dockerfile 37.76% Shell 35.05%
docker alpine php-image docker-images docker-alpine docker-zsh zsh php-8 php-74 php-81

docker-images's Introduction

Docker images

This repository contains various Docker images to be used in web softwares.

Alpine Linux with zsh

Beautiful terminal for your Docker containers.

GitHub Logo

Details

Although slightly bigger than the base Alpine image, it will be a joy to connect to your containers as it includes:

  • zsh with zsh-autosuggestions and zsh-syntax-highlighting plugins
  • Oh My Zsh with a beautiful prompt
  • exa modern replacement for ls

Aliases are already defined to replace ls with exa:

alias ls="exa --icons --group-directories-first"
alias l="exa -aaghl --git --icons --group-directories-first"
alias ll="exa -ghl --git --icons --group-directories-first"
alias lt="exa --tree --level=2 --icons --group-directories-first"

Try it:

# Connect as root
docker run --rm -it williarin/alpine

# Connect as current user
docker run --rm -it -u '1000:1000' williarin/alpine

Available tags

Image Size
williarin/alpine:edge
williarin/alpine:latest
williarin/alpine:3.19
williarin/alpine:3.18
williarin/alpine:3.16 [deprecated]
williarin/alpine:3.15 [deprecated]
williarin/alpine:3.14 [deprecated]
williarin/alpine:3.13 [deprecated]

Note: latest is equivalent to 3.19

PHP 7.4, 8.0, 8.1, 8.2, 8.3 images

Images are built once a week at 00:00 on Monday.

Details

All PHP images are based on Alpine Linux 3.19 (williarin/alpine). They come with bash, zsh, zip, unzip and widely used PHP extensions.

Installed PHP extensions:

json, ctype, curl, dom, ftp, gd, iconv, intl, mbstring, mysqlnd, openssl, pdo, pdo_sqlite, pdo_mysql, pdo_pgsql, pear, phar, posix, session, sqlite3, xml, xmlreader, zip, zlib, opcache, tokenizer, simplexml, xmlwriter, fileinfo, sodium

Additionally, -dev versions come with Xdebug 3, Git and Make.

Available tags

Image Size
williarin/php:8.3
williarin/php:8.3-dev
williarin/php:8.3-fpm
williarin/php:8.3-fpm-dev
williarin/php:8.2
williarin/php:8.2-dev
williarin/php:8.2-fpm
williarin/php:8.2-fpm-dev
williarin/php:8.1
williarin/php:8.1-dev
williarin/php:8.1-fpm
williarin/php:8.1-fpm-dev
williarin/php:8.0
williarin/php:8.0-dev
williarin/php:8.0-fpm
williarin/php:8.0-fpm-dev
williarin/php:7.4 [deprecated]
williarin/php:7.4-dev [deprecated]
williarin/php:7.4-fpm [deprecated]
williarin/php:7.4-fpm-dev [deprecated]

Docker Security

All the images are pre-built with a user www-data and a group with the same name. Generally there is no need to run containers with root privileges, so we advise the following:

Specify a --user name and set the working directory on docker runs, e.g.:

docker run --user www-data -w /home/www-data --rm williarin/php:8.2-dev bash -c "php -v | grep 'Xdebug'"

Confirm it by running:

docker run --user www-data -w /home/www-data --rm williarin/php:8.2-dev bash -c "id ; env"

Extend the images to your needs

You can easily add PHP extensions using Alpine package manager.

As an example, create a new image with this Dockerfile to add exif extension to PHP:

FROM williarin/php:8.2-fpm

RUN apk add --no-cache \
        php8-exif \
    ;

docker-images's People

Contributors

williarin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

docker-images's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.