Giter Site home page Giter Site logo

Comments (7)

ericstoekl avatar ericstoekl commented on August 25, 2024

Instead of using DIND, would it be feasible to mount the docker socket as a volume in a docker container, so that instead of deploying FaaS inside of docker, we deploy it on our host, but controlled by a single docker container? I ran into this section of the docker run documentation:

$ docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/static-docker-binary:/usr/bin/docker busybox sh

By bind-mounting the docker unix socket and statically linked docker binary (refer to get the linux binary), you give the container the full access to create and manipulate the host’s Docker daemon.

from faas.

alexellis avatar alexellis commented on August 25, 2024

A core use-case is multi-node clustering which is not possible by mounting a container.

from faas.

alexellis avatar alexellis commented on August 25, 2024

Closing due to lack of interest.

from faas.

scher200 avatar scher200 commented on August 25, 2024

If just only we wanted this, still I thought it would be worth posting:
https://github.com/scher200/dosd
It gives you openfaas in a dind container, please try it:

docker run -d --name swarm -p 8080:8080 --privileged scher200/dosd

from faas.

alexellis avatar alexellis commented on August 25, 2024

Looks interesting. Have you run the tests from certify-incubator repo inside? Could be a good thing to try next

from faas.

scher200 avatar scher200 commented on August 25, 2024
# make test                                             
gateway_url=http://0.0.0.0:8081/ go test ./tests -v
=== RUN   Test_Deploy_Stronghash
--- PASS: Test_Deploy_Stronghash (0.01s)
=== RUN   Test_InvokeNotFound
--- PASS: Test_InvokeNotFound (0.00s)
	deploy_test.go:106: [1/30] Correct response: 404
=== RUN   Test_Deploy_PassingCustomEnvVars
--- PASS: Test_Deploy_PassingCustomEnvVars (10.16s)
	deploy_test.go:97: [1/30] Bad response want: [200], got: 500
	deploy_test.go:98: http://0.0.0.0:8081/function/env-test
	deploy_test.go:97: [2/30] Bad response want: [200], got: 500
	deploy_test.go:98: http://0.0.0.0:8081/function/env-test
	deploy_test.go:97: [3/30] Bad response want: [200], got: 500
	deploy_test.go:98: http://0.0.0.0:8081/function/env-test
	deploy_test.go:97: [4/30] Bad response want: [200], got: 500
	deploy_test.go:98: http://0.0.0.0:8081/function/env-test
	deploy_test.go:97: [5/30] Bad response want: [200], got: 500
	deploy_test.go:98: http://0.0.0.0:8081/function/env-test
	deploy_test.go:106: [6/30] Correct response: 200
PASS
ok  	_/home/administrator/Git/openfaas/certify-incubator/tests	10.177s

from faas.

scher200 avatar scher200 commented on August 25, 2024

do you maybe have a certify-incubator container, that i can use to setup a dockerized test?

from faas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.