Skip to content

Commit

Permalink
Update images
Browse files Browse the repository at this point in the history
  • Loading branch information
tier940 committed Feb 3, 2024
1 parent 3c18681 commit f21ae70
Show file tree
Hide file tree
Showing 22 changed files with 87 additions and 20 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- litespeed-v*
- ansible-almalinux-v*
- ansible-rockylinux-v*
- ansible-ubuntu-v*
- tfaws-v*
- tfgcp-v*
- nginx-v*
Expand Down Expand Up @@ -35,7 +36,9 @@ jobs:

- name: Get the version
id: get_version
run: echo VERSION=$(echo ${GITHUB_REF} | sed -e 's#refs/tags/##g' | awk -F'-' '{print $2}') >> $GITHUB_ENV
run: |
VERSION=$(echo ${GITHUB_REF} | sed -e 's#refs/tags/##g' | awk -F'-' '{print $2}')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: "[ghcr.io/${{ env.REPO_OWNER }}/squid-lxc] Push image to GitHub Container Registry"
if: contains(github.ref, 'tags/squid-v')
Expand Down Expand Up @@ -76,6 +79,19 @@ jobs:
provenance: false
tags: ghcr.io/${{ env.REPO_OWNER }}/ansible-almalinux:latest,ghcr.io/${{ env.REPO_OWNER }}/ansible-almalinux:${{ env.VERSION }}

- name: "[ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu] Push image to GitHub Container Registry"
if: contains(github.ref, 'tags/ansible-ubuntu-v')
uses: docker/build-push-action@v5
env:
DOCKER_CONTENT_TRUST: 1
BUILDKIT_MULTI_PLATFORM: 1
with:
platforms: linux/amd64,linux/arm64
context: ./ansible/almalinux
push: true
provenance: false
tags: ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu:latest,ghcr.io/${{ env.REPO_OWNER }}/ansible-ubuntu:${{ env.VERSION }}

- name: "[ghcr.io/[${{ env.REPO_OWNER }}/airflow2] Push image to GitHub Container Registry"
if: contains(github.ref, 'tags/airflow2-v')
uses: docker/build-push-action@v5
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
proxy/squid/squid.conf
proxy/squid/logs/*
!proxy/squid/logs/.gitkeep
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
### Ansible(systemd)
* [AlmaLinux OS (amd64 & aarch64)](/ansible/almalinux/) - [ghcr.io/tier940/ansible-almalinux:latest](https://github.com/tier940/docker-repo/pkgs/container/ansible-almalinux)
* [Rocky Linux (amd64 & aarch64)](/ansible/rockylinux/) - [ghcr.io/tier940/ansible-rockylinux:latest](https://github.com/tier940/docker-repo/pkgs/container/ansible-rockylinux)
* [Ubuntu 24.04 LTS (amd64 & aarch64)](/ansible/ubuntu/) - [ghcr.io/tier940/ansible-ubuntu:latest](https://github.com/tier940/docker-repo/pkgs/container/ansible-ubuntu)

### Terrafrom
* [AWS(amd64 & aarch64)](/terraform/aws/) - [ghcr.io/tier940/terraform-aws:latest](https://github.com/tier940/docker-repo/pkgs/container/terraform-aws)
* [GCP(amd64 & aarch64)](/terraform/gcp/) - [ghcr.io/tier940/terraform-gcp:latest](https://github.com/tier940/docker-repo/pkgs/container/terraform-gcp)

### Web
* [Airflow 2.8.0(amd64 & aarch64)](/web/airflow/) - [ghcr.io/tier940/airflow2:latest](https://github.com/tier940/docker-repo/pkgs/container/airflow2)
* [Airflow 2.8.1(amd64 & aarch64)](/web/airflow/) - [ghcr.io/tier940/airflow2:latest](https://github.com/tier940/docker-repo/pkgs/container/airflow2)
* [LiteSpeed(amd64 & aarch64)](/web/litespeed/) - [ghcr.io/tier940/litespeed:latest](https://github.com/tier940/docker-repo/pkgs/container/litespeed)
* [Nginx](/web/nginx/) - [ghcr.io/tier940/nginx:latest](https://github.com/tier940/docker-repo/pkgs/container/nginx)
* [PHP 8.0](/web/php/8.0/) - [ghcr.io/tier940/php80:latest](https://github.com/tier940/docker-repo/pkgs/container/php80)
Expand Down
2 changes: 1 addition & 1 deletion ansible/almalinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ RUN [ ! -f /usr/sbin/init ] \
rm -f /lib/systemd/system/anaconda.target.wants/*;

WORKDIR /root/work
VOLUME [ "/sys/fs/cgroup" ]
VOLUME ["/sys/fs/cgroup"]
CMD ["/usr/sbin/init"]
2 changes: 1 addition & 1 deletion ansible/almalinux/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.7"
version: "3.9"
services:
almalinux:
build:
Expand Down
2 changes: 1 addition & 1 deletion ansible/rockylinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ RUN [ ! -f /usr/sbin/init ] \
rm -f /lib/systemd/system/anaconda.target.wants/*;

WORKDIR /root/work
VOLUME [ "/sys/fs/cgroup" ]
VOLUME ["/sys/fs/cgroup"]
CMD ["/usr/sbin/init"]
2 changes: 1 addition & 1 deletion ansible/rockylinux/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.7"
version: "3.9"
services:
rockylinux:
build:
Expand Down
2 changes: 2 additions & 0 deletions ansible/ubuntu/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COMPOSE_PROJECT_NAME=ansible
COMPOSE_CONVERT_WINDOWS_PATHS=true
26 changes: 26 additions & 0 deletions ansible/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM --platform=$BUILDPLATFORM docker.io/ubuntu:24.04

ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETOS TARGETARCH
ENV container docker
LABEL maintainer="tier940"

RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
software-properties-common gpg-agent systemd systemd-cron \
&& apt-add-repository --yes --update ppa:ansible/ansible \
&& apt-get install -y --no-install-recommends ansible \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*; \
rm -f /etc/systemd/system/*.wants/*; \
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*; \
rm -f /lib/systemd/system/anaconda.target.wants/*;

WORKDIR /root/work
VOLUME ["/tmp", "/run", "/run/lock"]
CMD ["/lib/systemd/systemd"]
11 changes: 11 additions & 0 deletions ansible/ubuntu/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.9"
services:
ubuntu:
build:
context: .
dockerfile: Dockerfile
privileged: true
container_name: ubuntu
tty: true
volumes:
- ./work:/root/work
7 changes: 7 additions & 0 deletions ansible/ubuntu/work/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- hosts: localhost
become : true
tasks:
- name: cat /etc/os-release
shell: cat /etc/os-release
register: os_release
1 change: 1 addition & 0 deletions proxy/squid/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ COPY lxc-whitelist /etc/squid/whitelist
# Finalize
EXPOSE 3128
USER squid
WORKDIR /etc/squid/
ENTRYPOINT [ "/usr/sbin/squid" ]
CMD [ "-N", "-f", "/etc/squid/squid.conf" ]
3 changes: 2 additions & 1 deletion proxy/squid/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"
services:
lxc:
build:
Expand All @@ -15,3 +15,4 @@ services:
volumes:
- ./squid.conf:/etc/squid/squid.conf
- ./lxc-whitelist:/etc/squid/whitelist
- ./logs:/var/log/squid
Empty file added proxy/squid/logs/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions terraform/aws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM --platform=$BUILDPLATFORM public.ecr.aws/aws-cli/aws-cli:2.15.9
FROM --platform=$BUILDPLATFORM public.ecr.aws/aws-cli/aws-cli:2.15.17

ARG TARGETOS TARGETARCH
ARG USERNAME=user
ARG GROUPNAME=user
ARG UID=1000
ARG GID=1000
ARG AWS_VAULT_VERSION="7.2.0"
ARG TFSEC_VERSION="1.28.4"
ARG TFLINT_VERSION="0.49.0"
ARG TFSEC_VERSION="1.28.5"
ARG TFLINT_VERSION="0.50.2"
LABEL maintainer="tier940"

RUN yum install -y shadow-utils tzdata git tar unzip > /dev/null \
Expand Down
2 changes: 1 addition & 1 deletion terraform/aws/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.7"
version: "3.9"
services:
terraform:
build:
Expand Down
6 changes: 3 additions & 3 deletions terraform/gcp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM --platform=$BUILDPLATFORM docker.io/google/cloud-sdk:alpine
FROM --platform=$BUILDPLATFORM gcr.io/google.com/cloudsdktool/cloud-sdk:462.0.1-alpine

ARG TARGETOS TARGETARCH
ARG TFSEC_VERSION="1.28.4"
ARG TFLINT_VERSION="0.49.0"
ARG TFSEC_VERSION="1.28.5"
ARG TFLINT_VERSION="0.50.2"
LABEL maintainer="tier940"

RUN apk add curl bash git unzip \
Expand Down
2 changes: 1 addition & 1 deletion terraform/gcp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.7"
version: "3.9"
services:
terraform:
build:
Expand Down
4 changes: 2 additions & 2 deletions web/airflow/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM --platform=$BUILDPLATFORM docker.io/apache/airflow:2.8.0-python3.11
FROM --platform=$BUILDPLATFORM docker.io/apache/airflow:2.8.1-python3.11

# Setup Airflow
ENV AIRFLOW_VERSION=2.8.0
ENV AIRFLOW_VERSION=2.8.1
ENV PYTHON_VERSION=3.11

COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion web/airflow/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker Airflow2
## Informations

* Based on official Airflow 2 Image [apache/airflow:2.8.0-python3.11](https://hub.docker.com/r/apache/airflow) and uses the official [Postgres](https://hub.docker.com/_/postgres/) as backend and [Redis](https://hub.docker.com/_/redis/) as queue
* Based on official Airflow 2 Image [apache/airflow:2.8.1-python3.11](https://hub.docker.com/r/apache/airflow) and uses the official [Postgres](https://hub.docker.com/_/postgres/) as backend and [Redis](https://hub.docker.com/_/redis/) as queue
* Docker entrypoint script is forked from [dataops-sre/docker-airflow2](https://github.com/dataops-sre/docker-airflow2)
* Install [Docker](https://www.docker.com/)
* Install [Docker Compose](https://docs.docker.com/compose/install/)
Expand Down
2 changes: 1 addition & 1 deletion web/airflow/docker-compose-CeleryExecutor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"
services:
redis:
image: 'redis:7'
Expand Down
2 changes: 1 addition & 1 deletion web/airflow/docker-compose-LocalExecutor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.9'
version: "3.9"
services:
postgres:
image: postgres:15
Expand Down

0 comments on commit f21ae70

Please sign in to comment.