So we actually have a wide range of distributions and versions at
Rosetta… CentOS, RHEL, Oracle Linux, Debian, Ubuntu. And each of the
various RH derivatives have their own differences that we’d like testing to
verify against. (A lot of them handle LDAP differently, or have different
names for certain packages.) Right now I’ve got testing working great
- name: ubuntu-14.04
- name: ubuntu-12.04
- name: ubuntu-10.04
- name: centos-6.5
- name: centos-5.10
But I’m looking to expand that to cover all the various cases the code
actually accounts for. And we actually do some specific user customizations
only on the Oracle nodes, beyond the LDAP stuff, so that really needs to be
one of the platforms we verify with.
If I use a config like so:
- name: oraclelinux-5
provision_command: yum update -y
The provision_command fires after the initial setup commands, so that
doesn’t help me try to update the yum repos before I try to run “Step 2 :
RUN yum install -y sudo openssh-server openssh-clients which curl”. I
imagine that this would present a similar issue with the Debian nodes
trying to rewrite sources.list before apt-get is called.
It seems like I probably need to pull these images, modify them, and
publish them on our local repository. However, I’m not seeing any
documentation about how to use kitchen-docker with a local repo vs the main
~~ StormeRider ~~
“Every world needs its heroes […] They inspire us to be better than we
are. And they protect from the darkness that’s just around the corner.”
(from Smallville Season 6x1: “Zod”)
On why I hate the phrase “that’s so lame”… http://bit.ly/Ps3uSS
On Mon, Apr 20, 2015 at 3:22 PM, Noah Kantrowitz firstname.lastname@example.org
On Apr 20, 2015, at 2:55 PM, Morgan Blackthorne email@example.com
• RHEL and Oracle Linux are two platforms that we use and would
like to add to our regular set of tests. Looking at the docker repos, I see
many RHEL images, but none seem to be official. I also couldn’t get Oracle
Linux working by specifying the following in my .kitchen.yml:
- name: oraclelinux-5
This pulled down the image ok, but then tried to use the RHEL mirrors in
yum, which needless to say failed. Anyone who has examples for OL and RHEL
5 and 6 would be greatly appreciated.
I use the standard Hub images for CentOS 6.5 and 7 without incident.
• I'm getting an error on my Debian containers like so: "W: Failed
Hash Sum mismatch"
It seems like the best/easiest way to work around this issue would be to
actually point the containers at our local Debian mirrors (which would be
preferable anyways to preserve bandwidth when running these tests). Is
there a good way to specify what URLs to use in the sources.list file
before docker tries to apt-get update the container?
This would be entirely up to the image overall, but you can specify an
array of commands to add to the Dockerfile so “echo whatever >>
/etc/apt/sources.list” is an option that should work regardless.