mirror of
https://github.com/garethflowers/docker-mediawiki-ldap.git
synced 2025-12-14 08:06:22 +00:00
Compare commits
15 Commits
0.3.0
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30193e1a7a | ||
|
|
f123a85964 | ||
|
|
922b0138d6 | ||
|
|
c3af401211 | ||
|
|
a0a59b67ec | ||
|
|
341a06fae4 | ||
|
|
26c058299f | ||
|
|
51bc5e408d | ||
|
|
18eee5ca40 | ||
|
|
5919de30c3 | ||
|
|
1f9f5310bf | ||
|
|
ee90197466 | ||
|
|
463df991ac | ||
|
|
7393b0d1a1 | ||
|
|
ab013487a5 |
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* @garethflowers
|
||||||
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
@@ -2,8 +2,6 @@ version: 2
|
|||||||
updates:
|
updates:
|
||||||
- package-ecosystem: "github-actions"
|
- package-ecosystem: "github-actions"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
reviewers:
|
|
||||||
- "garethflowers"
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
@@ -11,7 +9,5 @@ updates:
|
|||||||
include: "scope"
|
include: "scope"
|
||||||
prefix: "chore"
|
prefix: "chore"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
reviewers:
|
|
||||||
- "garethflowers"
|
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|||||||
26
.github/workflows/dependabot-auto.yml
vendored
Normal file
26
.github/workflows/dependabot-auto.yml
vendored
Normal 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 }}
|
||||||
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
id: prep
|
id: prep
|
||||||
uses: docker/metadata-action@v5.5.1
|
uses: docker/metadata-action@v5.7.0
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ github.repository_owner }}/mediawiki-ldap
|
${{ github.repository_owner }}/mediawiki-ldap
|
||||||
@@ -48,13 +48,13 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
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' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.prep.outputs.tags }}
|
tags: ${{ steps.prep.outputs.tags }}
|
||||||
labels: ${{ steps.prep.outputs.labels }}
|
labels: ${{ steps.prep.outputs.labels }}
|
||||||
- name: Update Description
|
- name: Update Description
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: peter-evans/dockerhub-description@v4
|
uses: peter-evans/dockerhub-description@v5
|
||||||
with:
|
with:
|
||||||
short-description: ${{ github.event.repository.description }}
|
short-description: ${{ github.event.repository.description }}
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM mediawiki:1.41.0
|
FROM mediawiki:1.44.0
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --yes --no-install-recommends libldap2-dev libpq-dev \
|
&& apt-get install --yes --no-install-recommends libldap2-dev libpq-dev \
|
||||||
&& docker-php-ext-install ldap pgsql pdo pdo_pgsql \
|
&& docker-php-ext-install ldap pgsql pdo pdo_pgsql \
|
||||||
&& rm -rf /var/lib/apt/lists \
|
&& 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
|
&& tar --extract --file=/tmp/ldapprovider.tar.gz --directory=/var/www/html/extensions
|
||||||
|
|||||||
13
README.md
13
README.md
@@ -7,6 +7,9 @@ A MediaWiki installation with LDAP extensions.
|
|||||||
### Start a MediaWiki Server instance
|
### Start a MediaWiki Server instance
|
||||||
|
|
||||||
To start a container use the following:
|
To start a container use the following:
|
||||||
|
|
||||||
|
#### ...via `docker run`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker run \
|
docker run \
|
||||||
--name my-mediawiki-ldap \
|
--name my-mediawiki-ldap \
|
||||||
@@ -15,6 +18,16 @@ docker run \
|
|||||||
garethflowers/mediawiki-ldap
|
garethflowers/mediawiki-ldap
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### ...via `docker compose`
|
||||||
|
|
||||||
|
```yml
|
||||||
|
services:
|
||||||
|
my-mediawiki-ldap:
|
||||||
|
image: garethflowers/mediawiki-ldap
|
||||||
|
ports:
|
||||||
|
- 80:80/tcp
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
* MediaWiki is released under the [GNU GPLv2 License](https://phabricator.wikimedia.org/source/mediawiki/browse/master/COPYING).
|
* MediaWiki is released under the [GNU GPLv2 License](https://phabricator.wikimedia.org/source/mediawiki/browse/master/COPYING).
|
||||||
|
|||||||
@@ -3,6 +3,3 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
command: php -v
|
command: php -v
|
||||||
image: garethflowers/mediawiki-ldap
|
image: garethflowers/mediawiki-ldap
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
driver: bridge
|
|
||||||
@@ -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"
|
|
||||||
Reference in New Issue
Block a user