-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
130 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Build release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
push_to_registry: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
username: dorianim | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: dorianim/mrbs | ||
tags: type=ref,event=tag | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
tagged-release: | ||
name: "Tagged Release" | ||
runs-on: "ubuntu-latest" | ||
needs: push_to_registry | ||
|
||
steps: | ||
# ... | ||
- name: "Build & test" | ||
run: | | ||
echo "done!" | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,80 @@ | ||
# mrbs-docker | ||
Docker image for the meeting-room-booking-system including my modern-mrbs-theme | ||
<h1 align="center"> | ||
Mrbs-docker | ||
</h1> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/dorianim/mrbs-docker/releases/latest"> | ||
<img src="https://img.shields.io/github/v/release/dorianim/mrbs-docker?logo=github&logoColor=white" alt="GitHub release"/> | ||
</a> | ||
<a href="https://www.gnu.org/licenses/agpl-3.0"> | ||
<img src="https://img.shields.io/badge/License-AGPL%20v3-blue.svg" /> | ||
</a> | ||
<a href="https://github.com/dorianim/mrbs-docker/actions/workflows/release.yml"> | ||
<img src="https://github.com/dorianim/mrbs-docker/actions/workflows/release.yml/badge.svg" alt="Badge release image" /> | ||
</a> | ||
<a href="https://hub.docker.com/r/dorianim/mrbs-docker"> | ||
<img src="https://img.shields.io/docker/pulls/dorianim/mrbs-docker.svg" alt="Docker pulls" /> | ||
</a> | ||
</p> | ||
|
||
This is a docker container for the [Meeting room booking system](https://github.com/meeting-room-booking-system/mrbs-code). | ||
|
||
## Features | ||
- Automatic installation | ||
|
||
# Installation | ||
1. Create a folder for installation: | ||
```bash | ||
mkdir /opt/mrbs-docker && cd /opt/mrbs-docker | ||
``` | ||
2. Create the file docker-compose.yml with this content: | ||
```yaml | ||
version: "2" | ||
services: | ||
mrbs: | ||
image: dorianim/mrbs-docker | ||
container_name: mrbs | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- DB_HOST=mrbs-db | ||
- DB_USER=mrbs-user | ||
- DB_PASS=mrbs-pass | ||
- DB_DATABASE=mrbs | ||
volumes: | ||
- ./config/mrbs:/config | ||
ports: | ||
- 8888:80 | ||
restart: unless-stopped | ||
depends_on: | ||
- mrbs-db | ||
mrbs-db: | ||
image: mariadb:latest | ||
container_name: mrbs_db | ||
environment: | ||
- PUID=1000 | ||
- PGID=1000 | ||
- MYSQL_ROOT_PASSWORD=mrbs-root-pass | ||
- TZ=Europe/London | ||
- MYSQL_DATABASE=mrbs | ||
- MYSQL_USER=mrbs-user | ||
- MYSQL_PASSWORD=mrbs-pass | ||
volumes: | ||
- ./config/mysql:/var/lib/mysql | ||
restart: unless-stopped | ||
``` | ||
1. Adjust the port (default `8888`) to your needs | ||
2. Start the mrbs-docker: | ||
```bash | ||
docker-compose up -d | ||
``` | ||
3. Done! You can reach your mrbs-docker on `localhost:5080` | ||
4. Adjust your `config.inc.php` in `/opt/mrbs-docker/config/www/config.inc.php` | ||
|
||
# Updating | ||
To update, just go to your installation folder and pull | ||
```bash | ||
cd /opt/mrbs-docker | ||
docker-compose pull | ||
docker-compose down && docker-compose up -d | ||
``` |