Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/swow/docker-swow
- Owner: swow
- License: apache-2.0
- Created: 2020-11-26T20:08:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-01T17:50:22.000Z (almost 4 years ago)
- Last Synced: 2024-03-02T10:33:48.703Z (9 months ago)
- Topics: async, asynchronous, asynchronous-programming, coroutine, coroutines, docker, php, php-fpm
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/swow/swow
- Size: 14.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 .
```