-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
0ab14fc
commit b2b6bf8
Showing
8 changed files
with
108 additions
and
168 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,6 @@ | ||
# Ignore everything | ||
* | ||
|
||
# Allow files and folders with a pattern starting with ! | ||
!Dockerfile | ||
!build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,26 +1,52 @@ | ||
dockworker: | ||
version: '5' | ||
version: '6' | ||
application: | ||
name: drupal.mysql.lib.unb.ca | ||
finish_marker: 'mysqld: ready for connections' | ||
project_prefix: IN | ||
upstream_images: | ||
- mysql:5.7 | ||
uuid: 3503 | ||
deployment: | ||
environments: | ||
name: Mysql Instance for Drupal Applications at UNB Libraries | ||
uri: https://drupal.mysql.lib.unb.ca | ||
description: > | ||
A Mysql instance for use with Drupal applications at UNB Libraries. | ||
topics: | ||
- mysql | ||
- drupal | ||
identifiers: | ||
id: drupal.mysql.lib.unb.ca | ||
slug: drupal-mysql-lib-unb-ca | ||
short_slug: drupmysql | ||
uuid: 3503 | ||
framework: | ||
name: Mysql | ||
version: 7 | ||
startup_finished_marker: 'mysqld: ready for connections' | ||
endpoint: | ||
name: http | ||
port: 3306 | ||
readiness_timeout: 15 | ||
license: | ||
license: MIT | ||
holder: University of New Brunswick Libraries | ||
shell: | ||
path: /bin/sh | ||
endpoints: | ||
env: | ||
- dev | ||
- prod | ||
workflow: | ||
source: dockworker | ||
type: deployment-workflow | ||
github: | ||
repo: drupal.mysql.lib.unb.ca | ||
owner: unb-libraries | ||
image: | ||
push_branches: | ||
- dev | ||
- prod | ||
name: ghcr.io/unb-libraries/drupal.mysql.lib.unb.ca | ||
date_tag_image: true | ||
repository: ghcr | ||
deployments: | ||
drupal-mysql-lib-unb-ca: | ||
default: true | ||
managed: true | ||
name: drupal-mysql-lib-unb-ca | ||
workflows: | ||
vcs: | ||
type: github | ||
owner: unb-libraries | ||
name: drupal.mysql.lib.unb.ca | ||
jira: | ||
project_keys: | ||
- IN | ||
image: | ||
name: ghcr.io/unb-libraries/drupal.mysql.lib.unb.ca | ||
parent: mysql:5.7 | ||
repository: GitHub | ||
push-branches: | ||
- dev | ||
- prod |
31 changes: 31 additions & 0 deletions
31
.dockworker/src/Robo/Plugin/Commands/MysqlDeployCommands.php
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,31 @@ | ||
<?php | ||
|
||
namespace Dockworker\Robo\Plugin\Commands; | ||
|
||
use Dockworker\DockworkerDaemonCommands; | ||
|
||
/** | ||
* Provides commands for building and deploying the Mysql application. | ||
*/ | ||
class MysqlDeployCommands extends DockworkerDaemonCommands | ||
{ | ||
/** | ||
* Provides error log trigers and exceptions for the mysql application. | ||
* | ||
* @hook on-event dockworker-logs-errors-exceptions | ||
* | ||
* @return mixed[] | ||
* The error log exceptions. | ||
*/ | ||
public function provideErrorLogConfiguration(): array | ||
{ | ||
return [ | ||
[], | ||
array_values( | ||
[ | ||
'Warning, not an error.' => 'as time zone. Skipping it.', | ||
] | ||
), | ||
]; | ||
} | ||
} |
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
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
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