diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml new file mode 100644 index 0000000..cf40ead --- /dev/null +++ b/.github/workflows/testing.yml @@ -0,0 +1,31 @@ +name: testing + +on: + push: + branches: main + pull_request: + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +permissions: read-all + +jobs: + docker: + runs-on: ubuntu-26.04 + + steps: + - uses: actions/checkout@v7 + + - name: Docker version info + run: | + docker --version + + docker compose --version + + - name: Build kiwitcms/postgres + run: | + docker build -t kiwitcms/postgres . + + docker images --digests diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e3cc280 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: end-of-file-fixer + - id: mixed-line-ending + args: [--fix=lf] + - id: trailing-whitespace diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3b8e2f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM postgres:17@sha256:e38411452a464af89e5adadb8d223bf53b898d47d6ef918b2d58c08707350449 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y --no-install-recommends ca-certificates curl gnupg \ + && curl -sSL https://keys.datadoghq.com/DATADOG_APT_KEY_CURRENT.public | gpg --dearmor --output /usr/share/keyrings/datadog-archive-keyring.gpg \ + && echo "deb [signed-by=/usr/share/keyrings/datadog-archive-keyring.gpg] https://apt.datadoghq.com/ stable 7" > /etc/apt/sources.list.d/datadog.list \ + && apt-get update \ + && apt-get install -y --no-install-recommends datadog-agent datadog-signing-keys \ + && rm -rf /var/lib/apt/lists/* + +# Entrypoint: start agent, then your app +#CMD service datadog-agent start && exec ./start-my-app.sh