Comments (7)
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.
A core use-case is multi-node clustering which is not possible by mounting a container.
from faas.
Closing due to lack of interest.
from faas.
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.
Looks interesting. Have you run the tests from certify-incubator repo inside? Could be a good thing to try next
from faas.
# 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.
do you maybe have a certify-incubator container, that i can use to setup a dockerized test?
from faas.
Related Issues (20)
- Function execution is not stateless HOT 2
- Can multiple functions be run on a single runtime? HOT 1
- Question: Import path for common modules HOT 2
- requests schedule policy in openfaas HOT 1
- Is there a workflow tool for OpenFaaS? HOT 3
- some companies appear twice in the adopters list HOT 2
- Support Azure service bus topic/subscription HOT 1
- RPC and openfaas HOT 1
- Question about OpenAPI Spec 3.1 HOT 2
- [Improvement] OpenFaaS operator installation
- The README.md under fass/api-docs has an incorrect URL to the api spec file
- Setup repository locally
- Function failed to deploy with status code: 500 HOT 2
- Openfaas install gateway Crash HOT 2
- Consultation on the usage permissions of the community version
- Unable to log in to the gateway - connection refused HOT 8
- How do I use a tensorflow base image in the Dockerfile template? Is it possible? HOT 3
- Is the http_request_duration_seconds metric included in OpenFaaS CE? HOT 4
- Enabling "scaling to zero" functionality on faasd HOT 3
- [Question] Pricing options for freelance/solo developers? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faas.