Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d28412ee32 | ||
|
|
8bb81a3084 | ||
|
|
c897ff488d | ||
|
|
106acfb75b | ||
|
|
193462a47f | ||
|
|
0750d93858 | ||
|
|
bd5412aaff | ||
|
|
55ccf14e62 |
@@ -1,4 +1,4 @@
|
|||||||
# dokku postgres (beta) [](https://travis-ci.org/dokku/dokku-postgres) [](https://webchat.freenode.net/?channels=dokku)
|
# dokku postgres [](https://travis-ci.org/dokku/dokku-postgres) [](https://webchat.freenode.net/?channels=dokku)
|
||||||
|
|
||||||
Official postgres plugin for dokku. Currently defaults to installing [postgres 10.2](https://hub.docker.com/_/postgres/).
|
Official postgres plugin for dokku. Currently defaults to installing [postgres 10.2](https://hub.docker.com/_/postgres/).
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,8 @@ service_backup() {
|
|||||||
local BACKUP_ENCRYPTION_CONFIG_ROOT="$PLUGIN_DATA_ROOT/$SERVICE/backup-encryption"
|
local BACKUP_ENCRYPTION_CONFIG_ROOT="$PLUGIN_DATA_ROOT/$SERVICE/backup-encryption"
|
||||||
local AWS_ACCESS_KEY_ID_FILE="$SERVICE_BACKUP_ROOT/AWS_ACCESS_KEY_ID"
|
local AWS_ACCESS_KEY_ID_FILE="$SERVICE_BACKUP_ROOT/AWS_ACCESS_KEY_ID"
|
||||||
local AWS_SECRET_ACCESS_KEY_FILE="$SERVICE_BACKUP_ROOT/AWS_SECRET_ACCESS_KEY"
|
local AWS_SECRET_ACCESS_KEY_FILE="$SERVICE_BACKUP_ROOT/AWS_SECRET_ACCESS_KEY"
|
||||||
|
local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE"
|
||||||
|
local ID="$(cat "$SERVICE_ROOT/ID")"
|
||||||
local BACKUP_PARAMETERS=""
|
local BACKUP_PARAMETERS=""
|
||||||
|
|
||||||
if [[ -z "$USE_IAM_OPTIONAL_FLAG" ]]; then
|
if [[ -z "$USE_IAM_OPTIONAL_FLAG" ]]; then
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
description = "dokku postgres service plugin"
|
description = "dokku postgres service plugin"
|
||||||
version = "1.2.3"
|
version = "1.2.7"
|
||||||
[plugin.config]
|
[plugin.config]
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ teardown() {
|
|||||||
@test "($PLUGIN_COMMAND_PREFIX:logs) success when not tailing" {
|
@test "($PLUGIN_COMMAND_PREFIX:logs) success when not tailing" {
|
||||||
export ECHO_DOCKER_COMMAND="true"
|
export ECHO_DOCKER_COMMAND="true"
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:logs" l
|
run dokku "$PLUGIN_COMMAND_PREFIX:logs" l
|
||||||
assert_output "docker logs --tail 100 testid"
|
assert_contains "docker logs --tail 100 testid"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "($PLUGIN_COMMAND_PREFIX:logs) success when tailing" {
|
@test "($PLUGIN_COMMAND_PREFIX:logs) success when tailing" {
|
||||||
export ECHO_DOCKER_COMMAND="true"
|
export ECHO_DOCKER_COMMAND="true"
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:logs" l -t
|
run dokku "$PLUGIN_COMMAND_PREFIX:logs" l -t
|
||||||
assert_output "docker logs --follow testid"
|
assert_contains "docker logs --follow testid"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user