Juniper / nita-ansible

Ansible, a radically simple IT automation engine, part of the Juniper NITA solution
Apache License 2.0
7 stars 11 forks source link

current installer for ansible breaks with specific version numbers #17

Open adrian-soroceanu-jnpr opened 1 year ago

adrian-soroceanu-jnpr commented 1 year ago

root@ubuntu20-04:~/nita-webapp/nita-ansible# ./build_container.sh [+] Building 1.9s (6/21)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 2.27kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/amd64/alpine:3.16.1 0.3s => CACHED [ 1/17] FROM docker.io/amd64/alpine:3.16.1@sha256:9b2a28eb47540823042a2ba401386845089bb7b62a9637d55816132c4c3c36eb 0.0s => [internal] load build context 0.1s => => transferring context: 10.46kB 0.0s => ERROR [ 2/17] RUN apk add --no-cache sudo python3 py3-pip openssl ca-certificates git gcc libxml2-dev libxslt-dev musl-dev bash python3-dev openssh expect sshpass libffi-dev openssl-dev build-base curl vim 1.6s


[ 2/17] RUN apk add --no-cache sudo python3 py3-pip openssl ca-certificates git gcc libxml2-dev libxslt-dev musl-dev bash python3-dev openssh expect sshpass libffi-dev openssl-dev build-base curl vim ansible-core=2.12.0 ansible=5.8.0:

0 0.576 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz

0 0.963 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz

0 1.381 ERROR: unable to select packages:

0 1.427 ansible-core-2.13.6-r0:

0 1.427 breaks: world[ansible-core=2.12.0]

0 1.427 satisfies: ansible-5.8.0-r0[ansible-core]

0 1.427 ansible-5.8.0-r0:

0 1.427 breaks: world[ansible=5.8.0]


Dockerfile:25

24 |
25 | >>> RUN apk add --no-cache sudo \ 26 | >>> python3 py3-pip openssl ca-certificates git \ 27 | >>> gcc libxml2-dev libxslt-dev musl-dev \ 28 | >>> bash python3-dev openssh expect sshpass \ 29 | >>> libffi-dev openssl-dev build-base curl vim \ 30 | >>> ansible-core=2.12.0 \ 31 | >>> ansible=5.8.0 32 |

ERROR: failed to solve: process "/bin/sh -c apk add --no-cache sudo python3 py3-pip openssl ca-certificates git gcc libxml2-dev libxslt-dev musl-dev bash python3-dev openssh expect sshpass libffi-dev openssl-dev build-base curl vim ansible-core=2.12.0 ansible=5.8.0" did not complete successfully: exit code: 2

wildsubnet commented 1 year ago

This is resolved in an open pull request. (https://github.com/Juniper/nita-ansible/pull/16).