mirror of
https://github.com/code-rhapsodie/docker.git
synced 2026-03-24 06:12:06 +01:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19739a1512 | ||
|
|
6abc25e595 | ||
|
|
a195e9836c | ||
|
|
454ecab875 | ||
|
|
754964f04a | ||
|
|
acba5a33ce | ||
|
|
165b71f933 | ||
|
|
43906e1995 | ||
|
|
6a81fa955b | ||
|
|
7448ff58cd | ||
|
|
e886cae483 | ||
|
|
80afa8e81f | ||
|
|
c35be37ffb | ||
|
|
8311eb9c4f | ||
|
|
7e268d30e2 | ||
|
|
7922742d3c | ||
|
|
98ad9e8677 | ||
|
|
451ec6f821 | ||
|
|
d5065c2eef | ||
|
|
0fe8d79fb0 | ||
|
|
9392578eaf | ||
|
|
8b68a30c93 | ||
|
|
e0a1e927b0 | ||
|
|
39b9c8b4ac | ||
|
|
18ee2cd10b |
51
.github/workflows/docker.yml
vendored
Normal file
51
.github/workflows/docker.yml
vendored
Normal 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 }}"
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
TODO: move to github actions and update documentation
|
||||
|
||||
# Docker images
|
||||
|
||||
[](https://travis-ci.com/code-rhapsodie/docker)
|
||||

|
||||
|
||||
This repository holds reusable images we need to build or extend very often.
|
||||
|
||||
|
||||
6
ansible/alpine/Dockerfile
Normal file
6
ansible/alpine/Dockerfile
Normal 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
|
||||
@@ -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/*
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Debian image with ansible only
|
||||
FROM python:3-buster
|
||||
MAINTAINER Arnaud Lafon <arnaud.lafon@gmail.com>
|
||||
|
||||
|
||||
10
ansible/debian-trixie-tools/Dockerfile
Normal file
10
ansible/debian-trixie-tools/Dockerfile
Normal 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" ]
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
17
php/7.4-fpm-node10/Dockerfile
Normal file
17
php/7.4-fpm-node10/Dockerfile
Normal 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
18
php/8.2-fpm/Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user