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
Loïc Guitaut
8b3e78f5bd
Display infos from list command in columns
...
Also add a LINKS column to easily view which services are linked to
which apps
2015-10-13 10:24:05 +02:00
Loïc Guitaut
5eed4378aa
Revamp link/unlink commands
...
Previously we were exporting `MONGO_URL` via the docker-args* hooks.
This seems to confuse our users (since the env var is not displayed
when calling `dokku config`) and in some cases it also seems that the
env var is not correctly set.
Another problem is if several services are linked to the same app and
if they are exporting `MONGO_URL` as well. Then we don’t know what
will be set.
To resolve theses issues, this patch changes the way we manage the env
vars. We use standard dokku commands (`config` and `docker-options`) so
config is set on the linked application and can be reviewed by the user
easily.
We also handle the case where `MONGO_URL` is already set on the
linked application. When it’s the case, we automatically generate
another env var based on the following pattern: DOKKU_<service
name>_<random unused color>_URL. For example, this can give:
DOKKU_MONGO_BLACK_URL.
Since naming is now handled automatically, the `alias` command has been
removed. If the user wants to set a different env var on her app, it’s
just a matter of using `dokku config:set` and pasting the wanted value.
IP in DSN has been removed in favor of host name exported by docker in
the container. This is more robust and simpler since the IP can change
but the name will remain the same if the service container restarts for
instance.
With all those changes, a new command has been introduced: `promote`.
The goal of this command is to easily set a service as the primary one
when several are linked to an app. (see README for an example)
2015-10-05 18:11:25 +02:00
Loïc Guitaut
8949686410
Display image & version in list
2015-09-16 17:42:26 +02:00
Loïc Guitaut
31cefc9387
Use authentication when creating database
2015-09-15 22:38:19 +02:00
Loïc Guitaut
c982923233
Add database name in DSN
2015-09-15 10:52:54 +02:00
Jose Diaz-Gonzalez
d6aa5fcf9c
Display which ports are exposed in list
2015-09-07 18:57:27 -04:00
Jose Diaz-Gonzalez
bcfcb36fda
make test
2015-09-06 22:55:28 -04:00
Jose Diaz-Gonzalez
2fbcd646a3
Fix link name
2015-09-06 22:07:19 -04:00
Jose Diaz-Gonzalez
0e06e6756a
Properly implement port expose/unexpose
2015-09-06 21:56:13 -04:00
Jose Diaz-Gonzalez
693222cd54
Move alias, link, unlink and logs commands into functions
2015-08-29 03:19:24 -04:00
Jose Diaz-Gonzalez
8980163b13
Move service checks into commands file
2015-08-29 02:58:51 -04:00
Jose Diaz-Gonzalez
e90217c9cd
Move info and list commands into shared functions
...
Also add better output formatting for both commands
2015-08-29 02:53:06 -04:00
Jose Diaz-Gonzalez
cfb31adaa7
Remove service verification from service_url function
...
It is not necessary to do so in a function that is called from other places that already verify the name.
2015-08-29 02:49:59 -04:00
Jose Diaz-Gonzalez
653bb8828b
Use central config for env vars
2015-08-29 01:54:00 -04:00
Jose Diaz-Gonzalez
b3397827e1
Fix service_url scheme. Closes #1
2015-08-25 16:09:08 -04:00
Jose Diaz-Gonzalez
7652f45d99
initial commit
2015-08-23 21:42:15 -04:00