18 Commits

Author SHA1 Message Date
dependabot[bot]
0aaeb200fd chore(deps): bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-11 20:26:18 +00:00
dependabot[bot]
cad06b2525 chore(deps): bump docker/metadata-action from 5.9.0 to 5.10.0 (#76)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.9.0 to 5.10.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5.9.0...v5.10.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 5.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-11 20:25:20 +00:00
dependabot[bot]
43f182b8c9 chore(deps): bump docker/metadata-action from 5.7.0 to 5.9.0 (#74)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.7.0 to 5.9.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5.7.0...v5.9.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: 5.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-09 21:12:42 +00:00
dependabot[bot]
3720e0636a chore(deps): bump mediawiki from 1.44.0 to 1.44.2 (#73)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps mediawiki from 1.44.0 to 1.44.2.

---
updated-dependencies:
- dependency-name: mediawiki
  dependency-version: 1.44.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-09 22:29:24 +01:00
dependabot[bot]
f123a85964 chore(deps): bump mediawiki from 1.43.3 to 1.44.0 (#69)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps mediawiki from 1.43.3 to 1.44.0.

---
updated-dependencies:
- dependency-name: mediawiki
  dependency-version: 1.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-30 10:26:43 +01:00
dependabot[bot]
922b0138d6 chore(deps): bump mediawiki from 1.43.1 to 1.43.3 (#68)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps mediawiki from 1.43.1 to 1.43.3.

---
updated-dependencies:
- dependency-name: mediawiki
  dependency-version: 1.43.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-02 10:49:31 +00:00
Gareth Flowers
c3af401211 chore(github): migrate to codeowners
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
2025-05-20 22:34:11 +01:00
dependabot[bot]
a0a59b67ec chore(deps): bump dependabot/fetch-metadata from 2.2.0 to 2.4.0 (#67)
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.2.0 to 2.4.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.2.0...v2.4.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-12 11:10:25 +00:00
dependabot[bot]
341a06fae4 chore(deps): bump mediawiki from 1.43.0 to 1.43.1 (#66)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps mediawiki from 1.43.0 to 1.43.1.

---
updated-dependencies:
- dependency-name: mediawiki
  dependency-version: 1.43.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-11 10:46:24 +00:00
dependabot[bot]
26c058299f chore(deps): bump docker/metadata-action from 5.6.1 to 5.7.0 (#65)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.6.1 to 5.7.0.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5.6.1...v5.7.0)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-27 10:39:37 +00:00
dependabot[bot]
51bc5e408d chore(deps): bump mediawiki from 1.42.1 to 1.43.0 (#63)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps mediawiki from 1.42.1 to 1.43.0.

---
updated-dependencies:
- dependency-name: mediawiki
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-10 10:40:07 +00:00
dependabot[bot]
18eee5ca40 chore(deps): bump docker/metadata-action from 5.5.1 to 5.6.1 (#61)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.5.1 to 5.6.1.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5.5.1...v5.6.1)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-29 21:59:13 +00:00
Adrian Groh
5919de30c3 fix(docker): fix ldapgroups download url (#59)
Some checks failed
Build and Publish Images / Publish (push) Has been cancelled
2024-11-26 23:16:45 +00:00
Gareth Flowers
1f9f5310bf feat(docker): use LDAPGroups REL1_41-754de82 2024-11-26 23:14:06 +00:00
Gareth Flowers
ee90197466 chore(github): add dependabot auto merge workflow
Some checks are pending
Build and Publish Images / Publish (push) Waiting to run
2024-11-26 23:12:08 +00:00
dependabot[bot]
463df991ac chore(deps): bump mediawiki from 1.41.1 to 1.42.1 (#58) 2024-06-28 18:31:53 +01:00
dependabot[bot]
7393b0d1a1 chore(deps): bump mediawiki from 1.41.0 to 1.41.1 (#56) 2024-06-21 19:39:14 +01:00
Gareth Flowers
ab013487a5 chore(docker): improve docker compose dx 2024-06-18 01:14:59 +01:00
8 changed files with 45 additions and 20 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
* @garethflowers

View File

@@ -2,8 +2,6 @@ version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
reviewers:
- "garethflowers"
schedule:
interval: "daily"
- package-ecosystem: "docker"
@@ -11,7 +9,5 @@ updates:
include: "scope"
prefix: "chore"
directory: "/"
reviewers:
- "garethflowers"
schedule:
interval: "daily"

26
.github/workflows/dependabot-auto.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Dependabot PR Approve and Merge
on: pull_request_target
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot Metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v2.4.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Prepare
id: prep
uses: docker/metadata-action@v5.5.1
uses: docker/metadata-action@v5.10.0
with:
images: |
${{ github.repository_owner }}/mediawiki-ldap
@@ -48,7 +48,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/ppc64le # linux/386,linux/arm/v6,linux/arm64,linux/s390x
platforms: linux/amd64,linux/arm/v7,linux/ppc64le
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
labels: ${{ steps.prep.outputs.labels }}

View File

@@ -1,8 +1,8 @@
FROM mediawiki:1.41.0
FROM mediawiki:1.44.2
RUN apt-get update \
&& apt-get install --yes --no-install-recommends libldap2-dev libpq-dev \
&& docker-php-ext-install ldap pgsql pdo pdo_pgsql \
&& rm -rf /var/lib/apt/lists \
&& curl https://extdist.wmflabs.org/dist/extensions/LDAPGroups-REL1_41-bfcb641.tar.gz --output /tmp/ldapprovider.tar.gz \
&& curl https://extdist.wmflabs.org/dist/extensions/LDAPGroups-REL1_41-754de82.tar.gz --output /tmp/ldapprovider.tar.gz \
&& tar --extract --file=/tmp/ldapprovider.tar.gz --directory=/var/www/html/extensions

View File

@@ -7,6 +7,9 @@ A MediaWiki installation with LDAP extensions.
### Start a MediaWiki Server instance
To start a container use the following:
#### ...via `docker run`
```sh
docker run \
--name my-mediawiki-ldap \
@@ -15,6 +18,16 @@ docker run \
garethflowers/mediawiki-ldap
```
#### ...via `docker compose`
```yml
services:
my-mediawiki-ldap:
image: garethflowers/mediawiki-ldap
ports:
- 80:80/tcp
```
## License
* MediaWiki is released under the [GNU GPLv2 License](https://phabricator.wikimedia.org/source/mediawiki/browse/master/COPYING).

View File

@@ -3,6 +3,3 @@ services:
build: .
command: php -v
image: garethflowers/mediawiki-ldap
networks:
default:
driver: bridge

View File

@@ -1,8 +0,0 @@
#!/bin/sh
set -ex
export IMAGE_NAME=garethflowers/mediawiki-ldap
docker build --progress plain --tag $IMAGE_NAME .
docker run --rm $IMAGE_NAME php -v
echo "\nOK"