Girish Ramakrishnan
5b8fdad5cb
Revert "remove targetBoxVersion checks since all apps are now ported"
...
This reverts commit d104f2a077 .
gitlab is not ported :-(
2015-12-05 02:29:06 -08:00
Girish Ramakrishnan
24d3a81bc8
remove targetBoxVersion checks since all apps are now ported
2015-12-02 15:02:16 -08:00
Girish Ramakrishnan
268c7b5bcf
always create an isolated network ns
2015-12-01 13:59:45 -08:00
Girish Ramakrishnan
64716a2de5
cloudron exec: disable links for subcontainers
...
Dec 01 08:36:53 girish.cloudron.us node[5431]: Error: HTTP code is 409 which indicates error: undefined - Conflicting options: --net=container can't be used with links. This would result in undefined behavior
2015-12-01 00:51:41 -08:00
Girish Ramakrishnan
df8653cdd5
Do not set Hostname for subcontainers
2015-11-26 19:26:29 -08:00
Girish Ramakrishnan
32f677ca0d
make app subcontainers share network namespace with app
...
pid namespace sharing is coming in https://github.com/docker/docker/issues/10163
2015-11-26 19:18:31 -08:00
Girish Ramakrishnan
6bd9173a9d
this docker registry keeps going down
2015-11-12 16:22:53 -08:00
Girish Ramakrishnan
6bd68961d1
typo
2015-11-12 16:13:15 -08:00
Girish Ramakrishnan
7cd89accaf
better pullImage debug output
2015-11-12 15:58:39 -08:00
Girish Ramakrishnan
3766d67daa
create new container from cloudron exec
2015-11-10 21:36:20 -08:00
Girish Ramakrishnan
316e8dedd3
name is a query parameter
2015-11-02 14:08:34 -08:00
Girish Ramakrishnan
95b2bea828
Give containers a name
2015-11-02 09:34:31 -08:00
Girish Ramakrishnan
dd2a806ab8
Do not set hostname of app container
...
Some apps like pasteboard try to curl the public app url from inside
the container. This fails because we set the hostname and the hostname
maps to the internal docker IP.
To fix this, simply export two environment variables providing the
app's domain and origin. The hostname is set to the app location instead
of the FQDN for debugging.
Fixes #521
2015-10-23 16:17:35 -07:00
Girish Ramakrishnan
1a2948df85
VolumesFrom is part of HostConfig
2015-10-20 17:34:47 -07:00
Girish Ramakrishnan
14bc2c7232
rename isSubcontainer -> isAppContainer
2015-10-20 10:55:06 -07:00
Girish Ramakrishnan
76d286703c
ignore portBindings and exportPorts for subcontainers
2015-10-20 10:42:35 -07:00
Girish Ramakrishnan
c80a5b59ab
do not dump containerOptions
2015-10-20 10:27:53 -07:00
Girish Ramakrishnan
fb2e7cb009
scheduler: crash fixes
2015-10-20 09:36:30 -07:00
Girish Ramakrishnan
daba68265c
stop all containers of an app
2015-10-20 00:05:19 -07:00
Girish Ramakrishnan
6d04481c27
fix debug tag
2015-10-19 23:38:55 -07:00
Girish Ramakrishnan
41de667e3d
do not set container name (we use labels instead)
2015-10-19 22:09:38 -07:00
Girish Ramakrishnan
8530e70af6
delete all containers of an app
2015-10-19 22:09:34 -07:00
Girish Ramakrishnan
15aa4ecc5d
Add docker.createSubcontainer
2015-10-19 21:33:53 -07:00
Girish Ramakrishnan
25d74ed649
createContainer takes optional command
2015-10-19 16:22:35 -07:00
Girish Ramakrishnan
9346666b3e
add labels to container
2015-10-19 16:01:04 -07:00
Girish Ramakrishnan
13453552b5
createContainer only takes app object
2015-10-19 16:00:40 -07:00
Girish Ramakrishnan
ef38074b55
add asserts
2015-10-19 15:51:02 -07:00
Girish Ramakrishnan
e5e8eea7ac
make it work without app object
2015-10-19 15:45:43 -07:00
Girish Ramakrishnan
9be2efc4f2
downloadImage only requires manifest now
2015-10-19 15:37:57 -07:00
Girish Ramakrishnan
8d6dd62ef4
refactor container code into docker.js
2015-10-19 14:44:01 -07:00
Girish Ramakrishnan
6671b211e0
export a connection property from docker.js
2015-10-19 11:24:21 -07:00
Girish Ramakrishnan
d8e2bd6ff5
Refactor docker.js to not have mac stuff
2015-10-19 11:14:11 -07:00
Girish Ramakrishnan
774ba11a92
Move HostConfig to createContainer
...
Newer docker has obsoleted HostConfig in start container
2015-10-19 10:38:46 -07:00
Girish Ramakrishnan
ef9508ccc5
Use BOX_ENV instead of NODE_ENV
...
Let NODE_ENV be used by node modules and always be set to production
Fixes #453
2015-07-24 01:42:28 -07:00
Girish Ramakrishnan
df9d321ac3
app.portBindings and newManifest.tcpPorts may be null
2015-07-20 00:10:36 -07:00