Docker Community Forums

Share and learn in the Docker community.

Automatic builds from any repo


(Redixin) #1

Is this possible to use any other repo for automatic builds?

Something like
clone url: git://my.gitserver.com/myrepo.git
build trigger: https://registry.hub.docker.com/u/foo/bar/trigger/de78-5ddb-11e4-899f-4a478e3f/

and when I doing request on build trigger url, it clones from clone url and makes build?


(Andy Rothfusz) #2

Yes, you could do this. You would still need to put the base Dockerfile in either GitHub or Bitbucket. But in the Dockerfile you could install git and clone from other repositories.


(Rallyforge) #3

But in this case Dockerfile is still on github.


(Sven Dowideit) #4

so long as your Dockerfile is on GitHub or Bitbucket (as you indicate it is), you can write a Dockerfile like:

FROM ubuntu
RUN apt-get update && apt-get install git
RUN git clone git://my.gitserver.com/myrepo.git
WORKDIR /myrepo
RUN make

(Redixin) #5

See the post above

omg post must be at least 20 characters