Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ssut committed Aug 26, 2024
0 parents commit dafdbb1
Show file tree
Hide file tree
Showing 5 changed files with 664 additions and 0 deletions.
Empty file added .dockerignore
Empty file.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to Docker Hub

on:
push:
branches:
- main
paths-ignore:
- "*.md"

jobs:
build-and-push-to-docker-hub:
name: Build and Push to Docker Hub
runs-on: ubuntu-24.04
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
# TODO: support multiple Dockerfiles
file: ./Dockerfiles/alpine.Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/postgres-e2econtainer:15-alpine3.20-hll2.18
build-args: |
POSTGRES_VERSION=15
ALPINE_VERSION=3.20
HLL_VERSION=2.18
9 changes: 9 additions & 0 deletions Dockerfiles/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG POSTGRES_VERSION
ARG ALPINE_VERSION=3.20
ARG HLL_VERSION=2.18

FROM hbontempo/postgres-hll:${POSTGRES_VERSION}-alpine${ALPINE_VERSION}-v${HLL_VERSION} as base

COPY ./configs/postgresql.conf /usr/local/share/postgresql/postgresql.conf

CMD ["postgres", "-c", "config_file=/usr/local/share/postgresql/postgresql.conf"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Postgres-e2econtainer

A High-performance PostgreSQL docker imaeg optimized for E2E testing, with unnecessary features such as logging, recovery, and synchronization disabled for faster query execution.

## Base Image

https://github.com/hbontempo-br/docker-postgres-hll
Loading

0 comments on commit dafdbb1

Please sign in to comment.