Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swow/docker-swow

Docker Image of the PHP Swow Extension.
https://github.com/swow/docker-swow

async asynchronous asynchronous-programming coroutine coroutines docker php php-fpm

Last synced: 14 days ago
JSON representation

Docker Image of the PHP Swow Extension.

Awesome Lists containing this project

README

        

# Docker Image for Swow

[![Build Latest Images](https://github.com/swow/docker-swow/workflows/Build%20Latest%20Images/badge.svg)](https://github.com/swow/docker-swow/actions)
[![License](https://img.shields.io/badge/license-apache2-blue.svg)](https://github.com/swow/docker-swow/blob/master/LICENSE)

Docker images for [the Swow extension](https://github.com/swow/swow). You can pull the images from [Docker Hub](https://hub.docker.com/r/swow/swow):

```bash
docker pull swow/swow
docker pull swow/swow:php8.0-alpine
docker pull swow/swow:php8.0-cli
docker pull swow/swow:php8.0-fpm
```

# Supported Tags and Respective `Dockerfile` Links

* latest images (built with the _develop_ branch of [swow](https://github.com/swow/swow))
* [latest, php8.0-alpine](https://github.com/swow/docker-swow/blob/master/dockerfiles/alpine/php8.0/Dockerfile)
* [php8.0-cli](https://github.com/swow/docker-swow/blob/master/dockerfiles/cli/php8.0/Dockerfile)
* [php8.0-fpm](https://github.com/swow/docker-swow/blob/master/dockerfiles/fpm/php8.0/Dockerfile)
* [php7.4-alpine](https://github.com/swow/docker-swow/blob/master/dockerfiles/alpine/php7.4/Dockerfile)
* [php7.4-cli](https://github.com/swow/docker-swow/blob/master/dockerfiles/cli/php7.4/Dockerfile)
* [php7.4-fpm](https://github.com/swow/docker-swow/blob/master/dockerfiles/fpm/php7.4/Dockerfile)

# How to Use This Image

This image is built based on [the official PHP image](https://hub.docker.com/_/php), thus you can use it the same way as
using the official PHP image.

Here are some sample commands:

```bash
docker run --rm -ti swow/swow sh -c "php -v"
docker run --rm -ti swow/swow sh -c "php --ri swow"
docker run --rm -ti swow/swow sh -c "composer -v"
```

# Build Images Manually

Use commands like following to build the images locally:

```bash
docker build -t swow/swow -f dockerfiles/alpine/php8.0/Dockerfile .
docker build -t swow/swow:php8.0-alpine -f dockerfiles/alpine/php8.0/Dockerfile .
docker build -t swow/swow:php8.0-cli -f dockerfiles/cli/php8.0/Dockerfile .
docker build -t swow/swow:php8.0-fpm -f dockerfiles/fpm/php8.0/Dockerfile .
```