Good questions,  Eric..

Best place for dependency info is docker itself -- for rhel/centos,  you
can see the list here:
https://docs.docker.com/engine/installation/linux/rhel/.    When I install
docker-engine on a clean CentOS 7.2 VM,  I get no other packages installed,
 so I believe there aren't any that are not normally available.
 Installing docker-compose is simply downloading the  binary  -- it has no
dependencies other than docker-engine.

The git clone is done within the container for each sub-component build.
That guarantees that there is no interaction between them, and that there's
nothing sitting within your local clone that is not available from the git
repository.   I have not set this up to clone from the local repo.   That
could be possible using volumes,  but I haven't spent the time to get that
portion working (patches welcome!).  If someone would like to look at that,
 I'd be happy to work with them..

-Dan




On Wed, Oct 19, 2016 at 6:47 PM, Eric Friedrich <[email protected]> wrote:

> I haven't used docker build before, so some basic questions...
>
> Any dependencies to set this up?
>
> Is git repo cloned and then that source built? Is it possible to build a
> local reoo?
>
> On Oct 19, 2016 7:54 PM, "Dan Kirkwood" <[email protected]> wrote:
>
> > Hi all..
> >
> > I've made changes to the way we can use docker for building rpms for
> > traffic control,  and I'd love to get feedback.  docker and
> docker-compose
> > are both required for this,  but the remaining toolset is handled within
> > docker containers.
> >
> > I'm adding these instructions to the build/README.md:
> >
> > From current master or from the psql branch:
> >
> > > cd infrastructure/docker/build
> > > docker-compose build
> > > GITREPO=https://github.com/apache/incubator-trafficcontrol BRANCH=psql
> > docker-compose up
> >
> > On both the `docker-compose build` and ` ... up` commands, you can supply
> > one or more sub-project names with a `_build` suffix, e.g.
> `docker-compose
> > build traffic_ops_build`.   Otherwise,  all are built.
> >
> > Feedback/suggestions/participation is welcome!
> >
> > Thanks.. Dan
> >
>

Reply via email to