Compare commits

..

12 Commits

Author SHA1 Message Date
a10e512020 chore(deps): update postgres docker tag to v18.3
All checks were successful
Validate PR Title / validate (pull_request) Successful in 4s
CI / ci (pull_request) Successful in 9s
2026-02-27 09:01:05 +00:00
717d9ecc01 chore(deps): update postgres docker tag to v18.2 (#10)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| postgres | minor | `18.1-alpine` → `18.2-alpine` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMC4yIiwidXBkYXRlZEluVmVyIjoiNDMuMTAuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: #10
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-02-14 14:44:01 +00:00
67392b2c5c chore(deps): update alpine docker tag to v3.23.3 (#8)
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-01-28 01:46:13 +00:00
bd06b83790 chore(deps): update actions/checkout action to v6.0.2 (#6)
Co-authored-by: renovate[bot] <renovate-bot@git.tainton.uk>
Co-committed-by: renovate[bot] <renovate-bot@git.tainton.uk>
2026-01-22 17:07:14 +00:00
7ac782f154 chore(ci): enable OSV vulnerability alerts and summary for dependencies (#5)
Reviewed-on: #5
2026-01-21 20:58:51 +00:00
aa080cf3d5 Update renovate.json 2026-01-19 20:23:42 +00:00
5fc6674150 fix(Dockerfile): update Alpine and curl versions for improved stability 2026-01-04 21:34:09 +00:00
b7426b2629 fix(ci): update Hadolint format and improve release workflow for version input 2026-01-04 21:26:36 +00:00
d8aa3e0478 feat(migration): add initial configuration files and Docker setup for Documize (#4)
Reviewed-on: #4
2026-01-04 21:20:20 +00:00
295ac208f6 Revert "Add back GitHub files"
This reverts commit ff5a16506c.
2022-03-11 16:35:05 +00:00
ff5a16506c Add back GitHub files 2022-03-11 16:27:44 +00:00
cbf6f0edc1 Version 4.2.3 2022-03-11 16:12:33 +00:00
12 changed files with 274 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ jobs:
name: GitHub Container Registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
run: echo ${{ secrets.PAT }} | docker login ghcr.io -u luketainton --password-stdin
- name: Build image for GitHub Container Registry

5
.archive/.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

18
.archive/.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,18 @@
stages:
- build
build:
stage: build
only:
- tags
image: docker:19.03.12
services:
- docker:19.03.12-dind
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE:latest -t $IMAGE_TAG .
- docker build -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest .
- docker push $IMAGE_TAG
- docker push $CI_REGISTRY_IMAGE:latest

1
.gitea/CODEOWNERS Normal file
View File

@@ -0,0 +1 @@
* @luke

52
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,52 @@
name: CI
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Run Hadolint
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
output-file: hadolint.out
# format: sonarqube
format: tty
no-fail: true
- name: Print Hadolint results
if: ${{ always() }}
run: cat hadolint.out
# - name: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@v5.2.0
# env:
# SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
# SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
# - name: Snyk SAST Scan
# uses: snyk/actions/python@master
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# # command: snyk
# args: snyk code test --all-projects --exclude=.archive
# - name: Snyk Vulnerability Scan
# uses: snyk/actions/python@master
# continue-on-error: true # Sometimes vulns aren't immediately fixable
# env:
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
# with:
# args: test --all-projects

View File

@@ -0,0 +1,16 @@
name: Validate PR Title
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.3.0
with:
commit-message: ${{ gitea.event.pull_request.title }}

View File

@@ -0,0 +1,103 @@
name: Build and Release
on:
workflow_dispatch:
inputs:
version:
description: 'Documize version to build (e.g., v5.14.0). Must start with "v" and match an existing Documize release tag.'
required: true
type: string
jobs:
# tag:
# name: Tag release
# uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/release-with-tag.yaml@main
# create_release:
# name: Create Release
# needs: tag
# uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release-preexisting-tag.yaml@main
# with:
# tag: ${{ needs.tag.outputs.tag_name }}
# body: ${{ needs.tag.outputs.changelog }}
# secrets:
# ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
docker:
name: Publish Docker Images
runs-on: ubuntu-latest
# needs: [tag, create_release]
steps:
- name: Update Docker configuration
continue-on-error: true
run: |
mkdir -p /etc/default
mkdir -p /etc/docker
touch -a /etc/default/docker
touch -a /etc/docker/daemon.json
echo "DOCKER_OPTS=\"--insecure-registry ${{ vars.PACKAGES_REGISTRY_URL }}\"" >> /etc/default/docker
echo "{\"insecure-registries\": [\"${{ vars.PACKAGES_REGISTRY_URL }}\"]}" > /etc/docker/daemon.json
- name: Get repo name
id: split
run: echo "repo=${REPO##*/}" >> "$GITEA_OUTPUT"
env:
REPO: ${{ gitea.repository }}
- name: Check out repository
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
ref: main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.PACKAGES_REGISTRY_URL }}
username: ${{ vars.ACTIONS_USERNAME }}
password: ${{ secrets.ACTIONS_TOKEN }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ vars.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
tags: type=semver,pattern=v{{version}},value=${{ inputs.version }}
images: |
ghcr.io/${{ vars.GHCR_USERNAME }}/${{ steps.split.outputs.repo }}
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}
- name: Print metadata
run: |
printf "Annotations:\n${{ steps.meta.outputs.annotations }}"
echo ""
printf "Labels:\n${{ steps.meta.outputs.labels }}"
echo ""
printf "Tags:\n${{ steps.meta.outputs.tags }}"
- name: Build images
uses: docker/build-push-action@v6
with:
context: .
push: false
load: true
build-args: |
DOCUMIZE_VERSION=${{ inputs.version }}
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
- name: Push images
run: |
strtags="${{ steps.meta.outputs.tags }}"
readarray -t lines <<<"$strtags"
for element in "${lines[@]}"; do docker push "$element"; done
unset strtags lines

View File

@@ -1,9 +1,10 @@
FROM alpine:latest
FROM alpine:3.23.3
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/documize-docker"
ARG DOCUMIZE_VERSION=v3.6.0
RUN apk add --no-cache curl
LABEL org.opencontainers.image.source="https://git.tainton.uk/repos/documize-docker"
ARG DOCUMIZE_VERSION=v5.14.0
ENV DOCUMIZEPORT=5001
RUN apk add --no-cache curl=8.17.0-r1
WORKDIR /opt
RUN curl -L -o documize "https://github.com/documize/community/releases/download/${DOCUMIZE_VERSION}/documize-community-linux-amd64" && chmod 755 documize
ENTRYPOINT ["./documize -port 80"]
EXPOSE 80
ENTRYPOINT ["./documize -port ${DOCUMIZEPORT}"]
EXPOSE ${DOCUMIZEPORT}

View File

@@ -2,4 +2,7 @@
Documize Community in a Docker container.
## Running
Set the `DOCUMIZEDB` and `DOCUMIZEDBTYPE` environment variables as described in the [documentation](https://docs.documize.com/s/VzO9ZqMOCgABGyfW/installation-guides/d/V16L08ucxwABhZF6/installation-guide).
Set the `DOCUMIZEDB` and `DOCUMIZEDBTYPE` environment variables as described in the [Installation Guide](https://docs.documize.com/s/VzO9ZqMOCgABGyfW/installation-guides/d/V16L08ucxwABhZF6/installation-guide) and [Configuration Options](https://docs.documize.com/s/VzO9ZqMOCgABGyfW/VzO9ZqMOCgABGyfW/d/VzSL8cVZ4QAB2B4Y/configuration-options).
## Docker Compose
A sample Docker Compose manifest is available in this repo.

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
# Alternatively, you can use a pre-built image:
# image: "git.tainton.uk/repos/documize-docker:latest"
restart: "unless-stopped"
environment:
- "DOCUMIZEPORT=5001"
- "DOCUMIZESALT=your_salt_here"
- "DOCUMIZEDBTYPE=postgresql"
- "DOCUMIZEDB=host=db port=5432 dbname=documize user=documize password=${DB_PASSWORD} sslmode=disable"
ports:
- "80:5001/tcp"
depends_on:
db:
condition: service_healthy
db:
image: postgres:18.3-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=documize
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=documize
volumes:
- "./db:/var/lib/postgresql/18/docker"
healthcheck:
test:
- CMD-SHELL
- pg_isready -U documize
interval: 5s
timeout: 5s
retries: 5

View File

@@ -1,5 +1,35 @@
{
"extends": [
"config:base"
"assignAutomerge": false,
"assigneesFromCodeOwners": false,
"dependencyDashboardAutoclose": true,
"extends": ["config:recommended", "docker:enableMajor"],
"ignorePaths": ["**/.archive/**"],
"labels": ["type/dependencies"],
"platformCommit": "enabled",
"rebaseWhen": "behind-base-branch",
"rollbackPrs": true,
"semanticCommits": "enabled",
"semanticCommitScope": "deps",
"semanticCommitType": "feat",
"osvVulnerabilityAlerts": true,
"dependencyDashboardOSVVulnerabilitySummary": "all",
"vulnerabilityAlerts": {
"commitMessagePrefix": "[SECURITY] ",
"enabled": true,
"labels": ["security"],
"prCreation": "immediate"
},
"lockFileMaintenance": {
"enabled": true
},
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
"automerge": true
},
{
"matchUpdateTypes": ["patch"],
"automerge": true
}
]
}