Commit Graph

66 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
ade8b44569 feat: re-allow dashes in names
This PR allows dashes in service names, while still sanitizing them before they are used as database names. If the datastore is pre-existing, the datatabase name is assumed to be the same as the service name, and returned appropriately.
2019-05-30 17:03:48 -04:00
Jose Diaz-Gonzalez
238f09dae0 chore: run shfmt 2019-05-30 11:06:25 -04:00
Jose Diaz-Gonzalez
f2846ab25b feat: switch to updated wait image 2019-03-25 12:46:42 -04:00
Jose Diaz-Gonzalez
1a4e141279 fix: correct handling of container retrieval
In the previous method, if the container was renamed or there were multiple names attached to the container, fetching the container ID would fail as the regex would only match at the end. Instead of using grep, use the docker 'filter' functionality to fetch the container ID as appropriate.
2019-03-25 12:37:35 -04:00
Jose Diaz-Gonzalez
bc6a5422d6 fix: correct the validation message 2019-03-09 16:39:34 -05:00
Jose Diaz-Gonzalez
cd5b3a14b8 fix: Strictly validate service names
We previously allowed a wide range of service names. As the service name is sometimes used to name databases, the name was actually more restricted than any character, resulting in services that wouldn't start. Going forward, only alphanumeric and underscore characters are allowed.

This only impacts service creation. Any services with invalid names should be migrated to a new service, with the data exported and imported as normal.

Closes dokku/dokku-redis#99
Closes dokku/dokku-mysql#47
Closes dokku/dokku-mongo#86
Closes dokku/dokku-redis#81
2019-03-09 15:54:21 -05:00
Jose Diaz-Gonzalez
682110c06e chore: minor consolidation in functions files 2019-03-09 15:54:21 -05:00
Jose Diaz-Gonzalez
1ce8d1747b fix: correct issues where docker ps is truncated
This should actually be refactored to avoid the grep call completely, but the current fix will correct the issue for now.

Refs dokku/dokku-postgres#131
2018-12-02 14:29:24 -05:00
Jose Diaz-Gonzalez
4ae25c179c feat: add ability to upgrade service image and image-version 2018-10-10 00:13:56 -04:00
Jose Diaz-Gonzalez
6380a5db56 refactor: make variable as dns hostname more clear 2018-04-24 02:54:42 -04:00
Jose Diaz-Gonzalez
df593ec155 refactor: move unimplemented command detection into config file 2018-04-24 00:27:14 -04:00
Jose Diaz-Gonzalez
58557dcd91 refactor: allow usage of the same variable to disable docker pulls 2018-04-23 06:56:36 -04:00
Jose Diaz-Gonzalez
e9cd0094fc feat: use custom env var to disable pull actions 2018-04-11 15:11:26 -04:00
Jose Diaz-Gonzalez
c14cff0342 feat: support a separate data root for Docker bind mounts
This does not fix the :backup subcommand, which uses a temporary directory mounted to /backup.
2018-04-10 23:10:24 -04:00
Jose Diaz-Gonzalez
ed7acd355b feat: limit the mongodump output so the mongo:export command can run via ssh
Closes #84
2018-02-26 01:01:18 -05:00
Joseph Cutrono
75571ad7f2 using gzip as standard for backup and restore. upgrading mongo version. 2017-10-23 00:13:04 -04:00
Jose Diaz-Gonzalez
3d9930369e feat: add support for enhanced help output 2017-09-11 01:25:22 -04:00
Jose Diaz-Gonzalez
7d150f8797 Allow specifying custom config options via flag
Refs dokku/dokku-redis#64
Closes #37
2017-08-26 18:20:22 -04:00
Jose Diaz-Gonzalez
014d7b1e76 feat: add ability to specify custom flags on clone/create
Refs dokku/dokku-redis#64
2017-08-26 18:10:36 -04:00
Jose Diaz-Gonzalez
f001535060 feat: add s3 backup support 2016-10-31 11:39:22 -06:00
Jose Diaz-Gonzalez
dfddeaa13c Pin dokkupaas/wait:0.2 2016-09-21 01:27:00 -06:00
Jose Diaz-Gonzalez
83f9ed8615 Move link file creation up 2016-08-29 10:38:39 -04:00
Jose Diaz-Gonzalez
70a3c0646a Refactor common functions into separate file 2016-08-29 02:36:08 -04:00
Jose Diaz-Gonzalez
59fe01c0cf Add --internal-ip flag to info command 2016-08-28 23:24:15 -04:00
Jose Diaz-Gonzalez
c2ba33bcdd Fix expose tests 2016-08-28 22:15:01 -04:00
Jose Diaz-Gonzalez
4e4629a7c5 Document exposed ports when an invalid number of arguments are specified 2016-08-28 21:24:44 -04:00
Jose Diaz-Gonzalez
bd3cda4e42 Add --id flag 2016-08-28 17:55:44 -04:00
Jose Diaz-Gonzalez
c806328cc8 Add support for flags on the service:info command 2016-08-28 05:38:03 -04:00
Jose Diaz-Gonzalez
4e046f4d38 Secure password file 2016-08-27 01:38:38 -04:00
Jose Diaz-Gonzalez
1924739d74 Use cat and double-quotes when retrieving the password 2016-08-27 01:34:41 -04:00
Jose Diaz-Gonzalez
fbfacb44c4 Add missing mkdir calls 2016-08-27 01:34:37 -04:00
Jose Diaz-Gonzalez
95e9fd114e Add missing SERVICE_ROOT env var 2016-08-27 01:10:28 -04:00
Jose Diaz-Gonzalez
c93ac0a236 Output the config/data directories when performing service:info 2016-08-27 00:57:14 -04:00
Jose Diaz-Gonzalez
df77033516 Only wait for a single port 2016-08-26 23:05:22 -04:00
Jose Diaz-Gonzalez
93ef01aba5 Fix calls to docker-options plugin under all 0.4.x releases 2016-06-09 12:31:32 -04:00
Martin Alix
14cab3253b Adding roles for admin user
Rights missing to perform system.version actions:
```> db.system.version.remove({})
WriteResult({
	"writeError" : {
		"code" : 13,
		"errmsg" : "not authorized on admin to execute command { delete: \"system.version\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"
	}
})```
2016-05-23 12:24:24 -04:00
Jose Diaz-Gonzalez
372f2eef23 Alphabetize functions to improve organization 2016-05-16 02:28:50 -04:00
Jose Diaz-Gonzalez
e6308b3172 Remove remaining direct dokku calls 2016-05-16 00:24:51 -04:00
Jose Diaz-Gonzalez
fd53f236c7 Use docker-options functions directly to avoid setting DOKKU_APP_NAME twice 2016-05-15 19:29:37 -04:00
Jose Diaz-Gonzalez
fb7213d4e5 shellcheck disable 2016-05-08 15:16:46 -04:00
Jose Diaz-Gonzalez
108a02f61e quote SERVICE_NAME value 2016-05-08 14:57:05 -04:00
Jose Diaz-Gonzalez
4c4f74fc9a use an extension for sed calls on os x 2016-05-08 14:56:56 -04:00
Jose Diaz-Gonzalez
9fcca9ee02 trim whitespace from url 2016-05-08 14:56:46 -04:00
Jose Diaz-Gonzalez
63062c4107 shellcheck disable 2016-05-08 14:56:37 -04:00
Jose Diaz-Gonzalez
15e385a628 use config functions properly 2016-05-08 14:56:23 -04:00
Jose Diaz-Gonzalez
2cd7c1a352 Quote more variables 2016-05-08 03:00:47 -04:00
Jose Diaz-Gonzalez
0e5e1b8fc3 quote $APP variable 2016-05-08 03:00:17 -04:00
Jose Diaz-Gonzalez
3edec37f54 Rework how config vars are sourced
- ensure we source config/functions from the correct directory
- move config sourcing up before DOKKU_TRACE to reduce trace output
2016-05-08 03:00:05 -04:00
Jose Diaz-Gonzalez
27ded0dca0 create container if not exists on service:start 2016-05-04 01:02:14 -04:00
Jose Diaz-Gonzalez
9a7c88550d Read MONGO_DATABASE_SCHEME variable from app when setting MONGO_URL 2016-04-19 15:11:51 -04:00