comanage-dev - Re: [comanage-dev] Docker and testing ?
Subject: COmanage Developers List
List archive
- From: Scott Koranda <>
- To: Tom Zeller <>
- Cc:
- Subject: Re: [comanage-dev] Docker and testing ?
- Date: Thu, 18 Jan 2018 12:50:22 -0600
- Ironport-phdr: 9a23:cs1/VRP588ozYDuCMYIl6mtUPXoX/o7sNwtQ0KIMzox0I/7/rarrMEGX3/hxlliBBdydt6odzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlViDanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZRcZfWSxPDJ2hYYUMAeoOMvpXoJT/qFQAtha+GRWgCfnzxjNUnHL6w6s32PkhHwHc2wwgGsoDvmnIo9XyKKcSTf2+wqzPzTXZdfxW3yry55LVeR0muvGMXrVwcdDLxkkpCgzKlE6dqZf9PzOVyOsNqWmb4PZ6WuKrl2EnrA9woje1xscrl4nJnpgZxUzD9SV82Ys4I8CzRkB8Yd6hCpRQtieaOpN3QsMkX2Fnpjw6yrsYtp6nYiQG0oooyAPCa/GBboOG4QrjWf6PLTp5mH5oereyhxix/Ee71uHxU8a53EpWoiZYl9TDqmwB2AfW58WCVPdx4EOs1S6N2gzN8O1JL045mbDHJ5I737I9mZgevELeFSHsgkr2lrWZdkA89+io9evnZrLmq4eZN4BuiwH+Nr0ims2jAegkKwQPUHaX9fq42bH58k35R7JKjvIykqbHqpzVOcMbpquhDw9U1IYs9Qq/Ai+43NkZgXUKLldIeByEgofyJ13DJf/1Aeujj1ixlTpk2+zKMabkD5jIMHTPjrPsca5460FGyQozyd5f54hTCrEEOP/zQUzxtNvCDhAjNQy73vzoBc5y1oMbQ22PA6uZPLnOvl+P4+IjO/OMa5MNuDbhN/gl4ObjgmM+mV8YZ6ap24EYaH+mEfh/PkqWf2Tsj8wFEWcLpQo+UPfqhEOYXT5SYXayQ7wz5is9CI24EYfPWJqhj6Kc0yemTdVqYTV6DVXEI3rsc4ieE6MQei+WJsJ7uiccVbW7SoQo0RqpqwDgzKd/aOHT/3tLm4jk0Y1O7OrPiVkR8iZ9CciUmzWWTGZul2UEThctxKByu012w1OI1rd3mftFDZpY4PYfAVRyDoLV0+EvU4O6YQnGZNrcDQ/+Gtg=
Hi,
> My next step in working on testing was to add phpunit as instructed
> here[1] to one of your comanage-registry-docker images. While it's
> easy enough to copy a Dockerfile and add a package to it, I thought
> perhaps I should create 'testing' images with your images as the
> parents.
I think that is a good idea, but I would wait a few weeks.
I am right in the middle of a refactoring of the Dockerfiles to take
advantage of the new(ish) Docker multi-stage build functionality.
I think it would make more sense (and be still easier) for your
"testing" image(s) to build on that base instead of the current
Dockerfiles.
> However, on the last dev call I think you mentioned that you
> were going to create additional COmanage images with a different
> parent image.
I need, for the TIER program, to create images that use CentOS 7 as a
base instead of Debian.
I don't have a full technical solution yet, but I expect that will be a
parallel multi-stage Dockerfile.
The goal of course is to have one maintainable set of files with no
overlap so that I am following the DRY prinicple. Unfortunately there
are still a few pieces of Docker functionality missing that make that
really easy.
> I imagine we would want to be able to run tests against
> both flavors of COmanage images.
I am not so sure. I don't think the base OS will matter at all. I think
it is more important to have more tests against one "platform" than
tests against multiple platforms.
> So, do you think I should create 'testing' images ?
Yes, in a few weeks.
In the meantime just do whatever is fast and easy to let you make
progress now, realizing you might have to throw away any Docker changes.
> Or is there a way
> to 'inject' packages required for testing ? Not sure what the best
> practice is in Docker-world.
Let me think about the best way to do this...
> Maybe you could keep some kind of testing hook/script in mind when
> working on the images.
I will.
Thanks,
Scott
>
> Thanks !
> Tom
>
> [1] https://spaces.internet2.edu/display/COmanage/COmanage+Testing
- [comanage-dev] Docker and testing ?, Tom Zeller, 01/18/2018
- Re: [comanage-dev] Docker and testing ?, Scott Koranda, 01/18/2018
- Re: [comanage-dev] Docker and testing ?, Tom Zeller, 01/19/2018
- Re: [comanage-dev] Docker and testing ?, Scott Koranda, 01/18/2018
Archive powered by MHonArc 2.6.19.