ehazlett / conduit Goto Github PK
View Code? Open in Web Editor NEWDeployment system for Docker
Deployment system for Docker
It seems a lot is missing from the repository
Where's the Dockerfile?
The Makefile referes to a target called image
but it doesn't exists..
I try to redeploy a container with a linked container (e.g. jpetazzo/figdemo linked to redis)
That produces that output :
time="2015-06-11T21:12:09Z" level=info msg="starting conduit v0.0.5"
time="2015-06-11T21:12:09Z" level=info msg="repos: [ggerbaud/figdemo redis]"
time="2015-06-11T21:12:09Z" level=info msg="tags: [latest]"
time="2015-06-11T21:12:29Z" level=debug msg="webhook received: name=ggerbaud/figdemo"
time="2015-06-11T21:12:29Z" level=debug msg="docker client: url=unix:///var/run/docker.sock"
time="2015-06-11T21:12:29Z" level=debug msg="deploying: image=ggerbaud/figdemo tag=latest"
time="2015-06-11T21:12:29Z" level=info msg="deploying new image for container: e72c86d0a3"
time="2015-06-11T21:12:29Z" level=debug msg="e72c86d0a3: pulling new image: repo=ggerbaud/figdemo:latest"
time="2015-06-11T21:12:30Z" level=debug msg="e72c86d0a3: launching new container"
time="2015-06-11T21:12:30Z" level=debug msg="docker client: url=unix:///var/run/docker.sock"
time="2015-06-11T21:12:30Z" level=debug msg="e72c86d0a3: stopping old container"
time="2015-06-11T21:12:30Z" level=debug msg="e72c86d0a3: removing old container"
2015/06/11 21:12:30 http: multiple response.WriteHeader calls
time="2015-06-11T21:12:30Z" level=debug msg="sending response payload: callback=https://registry.hub.docker.com/u/ggerbaud/figdemo/hook/.../"
The problem seems to be in the StartContainer but I can't see the error because of multiple response.WriteHeader calls
This is to control the process of which containers are started. Examples could be:
This would start new containers and replace the old ones one at a time. This would be ideal for applications that can have multiple versions running at the same time (no database migrations, etc)
This would start a new container and then stop all old containers before starting the rest. This way there is no downtime. This would also prevent the old versions from serving that could cause issues if there was a major update or database changes, etc.
Suggestions for other policies welcome :)
Can conduit pull from a private registry? Like AWS ECR?
Hi @ehazlett ,
I am testing conduit. The web hook is received (from docker hub or manually from curl). But the image does not get deployed.
My repo is public, so I don't think I need to pass any credentials.
what could be going wrong ?
thanks
I'm having the same issue described in #6 [1]. I forked the repo and am trying to add some extra debugging output, but I'm not sure what should be in the conduit
file that appears in this line in the Dockerfile (and which is also the entrypoint), and so the build is failing:
COPY conduit /bin/conduit
I see that conduit
is in .gitignore. What should be in this file so I can build conduit locally?
[1] If it's helpful: I'm using docker machine with --driver amazonec2
to auto-deploy this Docker Hub repo.
When deploying with a specific tag version, latest
is always pulled.
Deployed conduit with -r ehazlett/go-demo and token, passed port 8080 to host, tested with curl -d '{"repository": {"repo_name": "ehazlett/go-demo"}}' http://localhost:8080?token=s3cr3+
no response from conduit container
conduit logs:
time="2015-05-15T00:23:02Z" level=info msg="starting conduit v0.0.4"
time="2015-05-15T00:23:02Z" level=info msg="repos: [ehazlett/go-demo]"
time="2015-05-15T00:23:02Z" level=info msg="tags: [latest]"
go-demo container isn't deployed and isn't in docker ps history...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.