25 Commits

Author SHA1 Message Date
jb cr
19739a1512 use ansible core 2.17.14 2025-12-18 11:03:41 +01:00
jb cr
6abc25e595 disable other images 2025-12-18 10:27:36 +01:00
jb cr
a195e9836c add ansible trixie build 2025-12-18 10:23:47 +01:00
Arnaud Lafon
454ecab875 Update Dockerfile 2023-10-27 08:11:34 +02:00
Arnaud Lafon
754964f04a Update docker.yml to run build every mondays 2023-10-23 18:07:43 +02:00
Arnaud Lafon
acba5a33ce Update Dockerfile to enable pcntl on php 8.2-fpm image 2023-10-16 13:28:21 +02:00
Arnaud Lafon
165b71f933 Update docker.yml 2023-09-26 12:47:51 +02:00
Arnaud Lafon
43906e1995 Create Dockerfile for php fpm 8.2 with yarn 2023-09-26 12:47:03 +02:00
Arnaud Lafon
6a81fa955b Added php 7.4-fpm with node 10 2023-09-18 17:48:21 +02:00
Arnaud Lafon
7448ff58cd Add ansible alpine version 2023-09-18 09:39:56 +02:00
Arnaud Lafon
e886cae483 Update README.md 2023-09-18 09:18:37 +02:00
Arnaud Lafon
80afa8e81f Update docker.yml 2023-09-18 09:10:13 +02:00
Arnaud Lafon
c35be37ffb Update Dockerfile 2023-09-18 09:09:45 +02:00
Arnaud Lafon
8311eb9c4f Fixed github actions build file 2023-08-15 10:41:44 +02:00
Arnaud Lafon
7e268d30e2 Fixed github actions build file 2023-08-15 10:40:06 +02:00
Arnaud Lafon
7922742d3c Fixed github actions build file 2023-08-15 10:36:41 +02:00
Arnaud Lafon
98ad9e8677 Fixed github actions build file 2023-08-15 10:32:00 +02:00
Arnaud Lafon
451ec6f821 Fixed github actions build file 2023-08-15 10:29:57 +02:00
Arnaud Lafon
d5065c2eef Updated documentation 2023-08-15 10:28:42 +02:00
Arnaud Lafon
0fe8d79fb0 Build ansible image with github actions 2023-08-15 10:26:04 +02:00
Arnaud Lafon
9392578eaf Update Dockerfile 2023-08-14 18:31:58 +02:00
Arnaud Lafon
8b68a30c93 Update Dockerfile 2023-08-14 18:31:23 +02:00
Arnaud Lafon
e0a1e927b0 Update Dockerfile 2021-10-07 13:46:35 +02:00
Arnaud Lafon
39b9c8b4ac Update Dockerfile 2021-10-07 13:45:19 +02:00
Arnaud Lafon
18ee2cd10b Update Dockerfile 2021-10-07 13:44:44 +02:00
11 changed files with 113 additions and 15 deletions

51
.github/workflows/docker.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: ci
on:
push:
branches:
- 'master'
schedule:
- cron: '30 5 * * 1'
jobs:
ansible-build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
#- image: ansible
# subdir: debian-buster
- image: ansible
subdir: debian-trixie-tools
#- image: ansible
# subdir: ezplatform-toolbox
# - image: docker-compose
# subdir: latest
# - image: ansible
# subdir: alpine
# - image: php
# subdir: 7.4-fpm-node10
# - image: php
# subdir: 8.2-fpm
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}:${{ matrix.image }}/${{ matrix.subdir }}"
file: ./Dockerfile
push: true
tags: "ghcr.io/code-rhapsodie/docker/${{ matrix.image }}:${{ matrix.subdir }}"

View File

@@ -2,9 +2,6 @@ services:
- docker
env:
matrix:
- IMAGE=ansible VERSION=debian-buster
- IMAGE=ansible VERSION=debian-buster-tools
- IMAGE=ansible VERSION=ezplatform-toolbox
- IMAGE=docker-compose VERSION=latest
- IMAGE=docker-compose VERSION=19.03.1
- IMAGE=docker-compose VERSION=19.03.1-dind

View File

@@ -1,6 +1,8 @@
TODO: move to github actions and update documentation
# Docker images
[![Build Status](https://travis-ci.com/code-rhapsodie/docker.svg?branch=master)](https://travis-ci.com/code-rhapsodie/docker)
![CI status](https://github.com/code-rhapsodie/docker/actions/workflows/docker.yml/badge.svg)
This repository holds reusable images we need to build or extend very often.

View File

@@ -0,0 +1,6 @@
# Alpine image with ansible and basic tools such as make and git
FROM python:3-alpine
MAINTAINER Arnaud Lafon <arnaud.lafon@gmail.com>
RUN apk add --update --no-cache \
ansible bash openssh make rsync git

View File

@@ -1,7 +1,8 @@
# Debian image with ansible and basic tools such as make and git
FROM python:3-buster
MAINTAINER Arnaud Lafon <arnaud.lafon@gmail.com>
RUN apt-get update && apt-get install -y openssh-client make git && \
RUN apt-get update && apt-get install -y openssh-client make git rsync && \
pip install ansible && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*

View File

@@ -1,3 +1,4 @@
# Debian image with ansible only
FROM python:3-buster
MAINTAINER Arnaud Lafon <arnaud.lafon@gmail.com>

View File

@@ -0,0 +1,10 @@
# Debian image with ansible and basic tools such as make and git
FROM python:3-trixie
LABEL org.opencontainers.image.authors="Jean-Baptiste N. <jean-baptiste@code-rhapsodie.fr>"
RUN apt-get update && apt-get install -y openssh-client make git rsync && \
pip install ansible ansible-core==2.17.14 && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
# default command: display Ansible version
CMD [ "ansible-playbook", "--version" ]

View File

@@ -1,3 +1,4 @@
# Ansible image with ezplatform toolbox collection installed
FROM python:3-buster
MAINTAINER Arnaud Lafon <arnaud.lafon@gmail.com>
@@ -7,7 +8,7 @@ RUN ansible-galaxy install cbrunnkvist.ansistrano-symfony-deploy
RUN ansible-galaxy collection install alafon.ezp_toolbox
# Required so the Ansible container can take and manage SSH keys
RUN apt-get update && apt-get install openssh-client -y && \
RUN apt-get update && apt-get install openssh-client rsync -y && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
# default command: display Ansible version

View File

@@ -1,15 +1,9 @@
FROM docker:latest
RUN apk add --no-cache --update \
py-pip \
python3-dev \
libffi-dev \
openssl-dev \
gcc \
libc-dev \
make \
git \
musl-dev \
cargo
RUN pip install --upgrade pip
RUN pip install docker-compose
git
RUN apk add docker docker-cli-compose

View File

@@ -0,0 +1,17 @@
FROM php:7.4-fpm
RUN curl -fsSL https://deb.nodesource.com/setup_10.x | bash \
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y wget libzip-dev git unzip libpng-dev libicu-dev libxslt-dev poppler-utils imagemagick \
fontconfig xfonts-75dpi xfonts-base \
libxpm-dev libfreetype6-dev libjpeg62-turbo-dev mariadb-client \
nodejs npm yarn \
&& apt-get install -y libmagickwand-dev --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-xpm=/usr/include/ --enable-gd-jis-conv \
&& docker-php-ext-install zip pdo mysqli gd pdo_mysql intl xsl bcmath sockets pcntl \
&& pecl install redis -o -f && docker-php-ext-enable redis && pecl install apcu && docker-php-ext-enable apcu \
&& printf "\n" | pecl install imagick && docker-php-ext-enable imagick

18
php/8.2-fpm/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM php:8.2-fpm
ENV CACHE_REDIS_DSN=redis://redis
RUN apt-get update && apt-get install -y wget libzip-dev git unzip gnupg libicu-dev librabbitmq-dev supervisor \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn && rm -rf /var/lib/apt/lists/*
RUN pecl install -o -f redis apcu amqp \
&& docker-php-ext-enable redis apcu amqp \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure pcntl --enable-pcntl \
&& docker-php-ext-install zip intl pcntl
RUN bash -c "wget http://getcomposer.org/composer-stable.phar && mv composer-stable.phar /usr/local/bin/composer"
RUN chmod +x /usr/local/bin/composer