Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ambroisemaupate/docker

My docker images
https://github.com/ambroisemaupate/docker

Last synced: about 2 months ago
JSON representation

My docker images

Awesome Lists containing this project

README

        

# Docker custom images

[![Build Status](https://travis-ci.org/ambroisemaupate/docker.svg?branch=master)](https://travis-ci.org/ambroisemaupate/docker)

This is a personal collection of *Docker* tools and images.

*debian*, *data*, *mariadb*, *nginx* and *nginx-php* are based on [Maxexcloo work](https://github.com/maxexcloo/Docker).

## Multi-arch builds

If your development workstation uses *ARM64* platform, you need to build Roadiz base images for this CPU architecture.

Check if official images are providing these architectures: https://hub.docker.com/repository/docker/roadiz/php74-nginx-alpine/tags then if your *OS/ARCH* is not available you’ll need to build it. Notice that using *BuildX* with *QEMU* may take several minutes depending on your machine.

- Run [virtualization layer](https://github.com/docker/buildx#building-multi-platform-images)
```
docker run --privileged --rm tonistiigi/binfmt --install all
```
- Create a [BuildX](https://github.com/docker/buildx#building-with-buildx) environment
```
docker buildx create --name mybuildx
docker buildx ls
```
- Use your new environment
```
docker buildx use mybuildx
```
- Build and push docker image for AMD64 and ARM64
```
# Login to hub.docker.com registry
docker login
# use buildx to build and push multiple platforms
docker buildx build \
--push \
--platform linux/arm64/v8,linux/amd64 --tag roadiz/php80-nginx-alpine:latest .
```