Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c90a9fdd16 | ||
|
|
24fd5fcaeb | ||
|
|
f7583ba092 | ||
|
|
856dbcb93d | ||
|
|
3f0cd12235 |
57
.github/labels.yml
vendored
Normal file
57
.github/labels.yml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
labels:
|
||||||
|
- name: bc-break
|
||||||
|
color: eb6420
|
||||||
|
- name: blocks release
|
||||||
|
color: "000000"
|
||||||
|
- name: 'difficulty: easy'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'difficulty: hard'
|
||||||
|
color: e99695
|
||||||
|
- name: 'difficulty: medium'
|
||||||
|
color: fef2c0
|
||||||
|
- name: hacktoberfest
|
||||||
|
color: b0581d
|
||||||
|
- name: 'needs: documentation'
|
||||||
|
color: c2e0c6
|
||||||
|
- name: 'needs: more info'
|
||||||
|
color: c2e0c6
|
||||||
|
- name: 'needs: rebase'
|
||||||
|
color: c2e0c6
|
||||||
|
- name: 'needs: tests'
|
||||||
|
color: c2e0c6
|
||||||
|
- name: 'status: duplicate'
|
||||||
|
color: cccccc
|
||||||
|
- name: 'status: fix-provided'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'status: future'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'status: has plan'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'status: invalid'
|
||||||
|
color: cccccc
|
||||||
|
- name: 'status: merge for next minor'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'status: merge for next patch'
|
||||||
|
color: c5def5
|
||||||
|
- name: 'status: wontfix'
|
||||||
|
color: cccccc
|
||||||
|
- name: 'type: bug'
|
||||||
|
color: e01b1b
|
||||||
|
- name: 'type: documentation'
|
||||||
|
color: 0052cc
|
||||||
|
- name: 'type: enhancement'
|
||||||
|
color: 09ab3c
|
||||||
|
- name: 'type: question'
|
||||||
|
color: cc317c
|
||||||
|
- name: 'type: refactor'
|
||||||
|
color: 0052cc
|
||||||
|
- name: 'type: rfc'
|
||||||
|
color: 0052cc
|
||||||
|
- name: 'type: roadmap'
|
||||||
|
color: 0052cc
|
||||||
|
- name: 'type: service'
|
||||||
|
color: "5319e7"
|
||||||
|
- name: 'type: support'
|
||||||
|
color: cc317c
|
||||||
|
- name: 'type: tests'
|
||||||
|
color: 0052cc
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# dokku mongo [](https://travis-ci.org/dokku/dokku-mongo) [](https://webchat.freenode.net/?channels=dokku)
|
# dokku mongo [](https://travis-ci.org/dokku/dokku-mongo) [](https://webchat.freenode.net/?channels=dokku)
|
||||||
|
|
||||||
Official mongo plugin for dokku. Currently defaults to installing [mongo 3.4.9](https://hub.docker.com/_/mongo/).
|
Official mongo plugin for dokku. Currently defaults to installing [mongo 3.4.20](https://hub.docker.com/_/mongo/).
|
||||||
|
|
||||||
## requirements
|
## requirements
|
||||||
|
|
||||||
|
|||||||
2
config
2
config
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export MONGO_IMAGE=${MONGO_IMAGE:="mongo"}
|
export MONGO_IMAGE=${MONGO_IMAGE:="mongo"}
|
||||||
export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="3.4.9"}
|
export MONGO_IMAGE_VERSION=${MONGO_IMAGE_VERSION:="3.4.20"}
|
||||||
export MONGO_ROOT=${MONGO_ROOT:="$DOKKU_LIB_ROOT/services/mongo"}
|
export MONGO_ROOT=${MONGO_ROOT:="$DOKKU_LIB_ROOT/services/mongo"}
|
||||||
export MONGO_HOST_ROOT=${MONGO_HOST_ROOT:=$MONGO_ROOT}
|
export MONGO_HOST_ROOT=${MONGO_HOST_ROOT:=$MONGO_ROOT}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[plugin]
|
[plugin]
|
||||||
description = "dokku mongo service plugin"
|
description = "dokku mongo service plugin"
|
||||||
version = "1.6.1"
|
version = "1.7.0"
|
||||||
[plugin.config]
|
[plugin.config]
|
||||||
|
|||||||
@@ -11,20 +11,20 @@ teardown() {
|
|||||||
|
|
||||||
@test "($PLUGIN_COMMAND_PREFIX:list) with no exposed ports, no linked apps" {
|
@test "($PLUGIN_COMMAND_PREFIX:list) with no exposed ports, no linked apps" {
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
||||||
assert_contains "${lines[*]}" "l mongo:3.4.9 running - -"
|
assert_contains "${lines[*]}" "l mongo:3.4.20 running - -"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "($PLUGIN_COMMAND_PREFIX:list) with exposed ports" {
|
@test "($PLUGIN_COMMAND_PREFIX:list) with exposed ports" {
|
||||||
dokku "$PLUGIN_COMMAND_PREFIX:expose" l 4242 4243 4244 4245
|
dokku "$PLUGIN_COMMAND_PREFIX:expose" l 4242 4243 4244 4245
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
||||||
assert_contains "${lines[*]}" "l mongo:3.4.9 running 27017->4242 27018->4243 27019->4244 28017->4245 -"
|
assert_contains "${lines[*]}" "l mongo:3.4.20 running 27017->4242 27018->4243 27019->4244 28017->4245 -"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "($PLUGIN_COMMAND_PREFIX:list) with linked app" {
|
@test "($PLUGIN_COMMAND_PREFIX:list) with linked app" {
|
||||||
dokku apps:create my_app
|
dokku apps:create my_app
|
||||||
dokku "$PLUGIN_COMMAND_PREFIX:link" l my_app
|
dokku "$PLUGIN_COMMAND_PREFIX:link" l my_app
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
run dokku "$PLUGIN_COMMAND_PREFIX:list"
|
||||||
assert_contains "${lines[*]}" "l mongo:3.4.9 running - my_app"
|
assert_contains "${lines[*]}" "l mongo:3.4.20 running - my_app"
|
||||||
dokku --force apps:destroy my_app
|
dokku --force apps:destroy my_app
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user