Comments (7)
Did you already run make
in that directory? Maybe you already have a _build
directory owned by a different user? If not, try changing the chown
command in the Dockerfile to chown -R
and see if that helps...
from datakit.
Actually, I think this example is just broken. Could you try the fix in #619?
from datakit.
Yep, it works now. Thanks for the quick fix @talex5!
from datakit.
The way I'm trying to run the CI example:
- Run DataKit server
$ docker run -it --net datakit-net --name datakit -v [path_to_git_repo]:/data -p 5640:5640 datakit/db
- Check server by running DataKit client
$ docker run -it --privileged --net datakit-net datakit/client
bash-4.3$ ls -l /db/branch/master/ro/
[git_repos_contents]
From this, and the subsequent server logs, I assume that the server is running and reachable on tcp://0.0.0.0:5640
.
- Run CI
$ docker run --name my-ci --net datakit-net -p 8443:8443 my-ci --metadata-store tcp:0.0.0.0:5640
2018-03-02 13:12.13 INF [datakit-ci] Generating new private key...
2018-03-02 13:12.13 APP [datakit-ci] >>> Configure the CI by visiting
https://127.0.0.1:8443/auth/intro/SFEq6uYvHCgKJjg1iOrHy4BwIG2heYGc
2018-03-02 13:12.13 INF [datakit-ci] Connecting to DataKit server on tcp:0.0.0.0:5640
2018-03-02 13:12.13 INF [datakit-ci] Starting monitor loop
2018-03-02 13:12.13 WRN [datakit-ci] Failed to connect to DataKit: (Failure
"Failed to connect to DataKit server at proto=\"tcp\" addr=\"0.0.0.0:5640\": (Failure\
\n \"Error connecting socket to 9p endpoint tcp:0.0.0.0:5640: Unix.Unix_error(Unix.ECONNREFUSED, \\\"connect\\\", \\\"\\\")\")") (will retry in 10s)
Could you please point out what I'm doing wrong? (I would create a new issue but I assume this is due to some misconfiguration on my side.)
from datakit.
Okay, it seems like the CI can connect if I use 172.19.0.2:5640
(taken from the output of docker network inspect datakit-net
).
from datakit.
You have to give the actual address of the server. 0.0.0.0
is a special address that means "listen on any interface", but you can't use it as a destination. You should be able to use --metadata-store tcp:datakit:5640
.
from datakit.
Yeah, it works with tcp:datakit:5640
, thanks!
from datakit.
Related Issues (20)
- Invalid use of `${ROOT}` HOT 2
- check version
- Datakit using irmin store not writing to repository HOT 1
- Minor release with s/per_file/per_module/ ? HOT 3
- "git commit" seems to break the transaction interface HOT 4
- Unable to run DataKit Local-Git bridge HOT 2
- Unix.ENAMETOOLONG when using datakit-bridge-local-git HOT 3
- Unix.EROFS while running self-ci locally HOT 8
- DataKitCI: configure docker run HOT 5
- CI: Rebuilding a job doesn't cancel its childen jobs HOT 5
- Can't create new live log on branch HOT 13
- Assert_failure ci/src/cI_monitored_pool.ml:44:2 HOT 5
- CI: local-bridge does not rebuild on new commit HOT 3
- CI: local state repo HOT 2
- CI: unable to use Git.run HOT 2
- Datakit-CI is rebuilding PR on title edit HOT 3
- Irmin.merge_head: conflict, retrying (223684) (100% CPU) HOT 10
- Irmin 2.0.0
- datakit-client is not compatible with result 1.5 on OCaml 4.08+
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 datakit.