]> git.immae.eu Git - github/fretlink/docker-ansible.git/commitdiff
Fix: update OpenSSL and certificates to avoid ansible-galaxy fails due to incompatibl...
authorWilliam Yeh <william.pjyeh@gmail.com>
Tue, 14 Jul 2015 03:29:14 +0000 (11:29 +0800)
committerWilliam Yeh <william.pjyeh@gmail.com>
Tue, 14 Jul 2015 03:29:14 +0000 (11:29 +0800)
Evidence:

  $ ansible-galaxy install ...
  - the API server (galaxy.ansible.com) is not responding, please try again later.

@see https://twitter.com/thejimic/status/592527999695597568

  > that's odd, can you see if you can hit the API directly (browser or curl/wget): https://galaxy.ansible.com/api/v1/

debian7-onbuild/Dockerfile
debian8-onbuild/Dockerfile
ubuntu12.04-onbuild/Dockerfile
ubuntu14.04-onbuild/Dockerfile

index 45bbd7f648b023f339cca97d29008f8980c0b80f..44ed6372f7e5b1f59be6adf5440e6ef5bd46961e 100644 (file)
@@ -37,8 +37,11 @@ RUN echo "===> Installing python, sudo, and supporting tools..."  && \
 
 COPY ansible-playbook-wrapper /usr/local/bin/
 
-ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
-ONBUILD  WORKDIR /tmp
+ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update   && \
+              echo "===> Updating TLS certificates..."         && \
+              apt-get install -y openssl ca-certificates
+
+ONBUILD  WORKDIR  /tmp
 ONBUILD  COPY  .  /tmp
 ONBUILD  RUN  \
               echo "===> Diagnosis: host information..."  && \
index 5db6cdf5d4c245655108a44d2d76f8f4c99181b8..65794be5c4479fb820ca386683c5c0d81b124d42 100644 (file)
@@ -37,8 +37,11 @@ RUN echo "===> Installing python, sudo, and supporting tools..."  && \
 
 COPY ansible-playbook-wrapper /usr/local/bin/
 
-ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
-ONBUILD  WORKDIR /tmp
+ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update   && \
+              echo "===> Updating TLS certificates..."         && \
+              apt-get install -y openssl ca-certificates
+
+ONBUILD  WORKDIR  /tmp
 ONBUILD  COPY  .  /tmp
 ONBUILD  RUN  \
               echo "===> Diagnosis: host information..."  && \
index 2fc78203f19aa46a7fb4d1b104bc026b58c31eeb..20ab8a1669e250a5f3e0778b35ffcf40d042c966 100644 (file)
@@ -33,8 +33,11 @@ RUN echo "===> Adding Ansible's PPA..."  && \
 
 COPY ansible-playbook-wrapper /usr/local/bin/
 
-ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
-ONBUILD  WORKDIR /tmp
+ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update   && \
+              echo "===> Updating TLS certificates..."         && \
+              apt-get install -y openssl ca-certificates
+
+ONBUILD  WORKDIR  /tmp
 ONBUILD  COPY  .  /tmp
 ONBUILD  RUN  \
               echo "===> Diagnosis: host information..."  && \
index a0e6580164ac32913d7015095fa99c40686e9f22..64dd859f32c2be30e73c817af0aae2af5aaca9af 100644 (file)
@@ -33,8 +33,11 @@ RUN echo "===> Adding Ansible's PPA..."  && \
 
 COPY ansible-playbook-wrapper /usr/local/bin/
 
-ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update
-ONBUILD  WORKDIR /tmp
+ONBUILD  RUN  DEBIAN_FRONTEND=noninteractive  apt-get update   && \
+              echo "===> Updating TLS certificates..."         && \
+              apt-get install -y openssl ca-certificates
+
+ONBUILD  WORKDIR  /tmp
 ONBUILD  COPY  .  /tmp
 ONBUILD  RUN  \
               echo "===> Diagnosis: host information..."  && \