mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
use tini to run every container (#1195)
fixes #1101 additional context: * this was introduced in docker 1.13 (1/2017), we require docker 17.10 (10/2017), this should not have any issues dependency-wise, as `docker-init` is in the docker install from that point in time. unless explicitly removed, it should be in the dind container we use as well... * the PR that introduced this to docker is https://github.com/moby/moby/pull/26061 for additional context * it may be wise to put this through some paces, if anybody has any... interesting... function containers. the tests seem to work fine, however, and this shouldn't be something users have to think about (?) at all, just something that we are doing. this isn't the default in docker for compatibility reasons, which is maybe a yellow flag but I am not sure tbh
This commit is contained in:
@@ -224,6 +224,8 @@ const (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
// TODO this should all be driver-specific config and not in the
|
||||
// driver package itself. fix if we ever one day try something else
|
||||
Docker string `json:"docker"`
|
||||
DockerNetworks string `json:"docker_networks"`
|
||||
DockerLoadFile string `json:"docker_load_file"`
|
||||
@@ -235,6 +237,7 @@ type Config struct {
|
||||
PreForkNetworks string `json:"pre_fork_networks"`
|
||||
MaxTmpFsInodes uint64 `json:"max_tmpfs_inodes"`
|
||||
EnableReadOnlyRootFs bool `json:"enable_readonly_rootfs"`
|
||||
EnableTini bool `json:"enable_tini"`
|
||||
}
|
||||
|
||||
func average(samples []Stat) (Stat, bool) {
|
||||
|
||||
Reference in New Issue
Block a user