drone-plugins / drone-ansible

Drone plugin to provision via Ansible
http://plugins.drone.io/drone-plugins/drone-ansible
Apache License 2.0
31 stars 44 forks source link

replace libressl-dev libressl with openssl-dev #47

Closed beastpu closed 3 years ago

beastpu commented 3 years ago

when building a docker image ,the error as follow:

The command '/bin/sh -c apk del libressl-dev;apk add --no-cache bash git curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base &&   pip3 install -U pip &&   pip3 install ansible==2.10.0 boto3==1.13.10 &&   apk del --no-cache python3-dev libffi-dev libressl-dev build-base' returned a non-zero code: 1

i found the detail error message by run apk fix

ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20 owned by libretls-3.3.3-r0.
ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20.0.3 owned by libretls-3.3.3-r0.
1 error; 353 MiB in 108 packages

Note that in this case, we could replacelibressl-dev libessl with openssl-dev and everything would probably just work.

tboerger commented 3 years ago

Everythin on Alpine uses libressl by default, so why should we do this switch? You did not provide enough context why this change should be applied.

beastpu commented 3 years ago

the alpine version of the base image is 3.14

/ # cat /etc/alpine-release
3.14.0

it contains libretls package which depend on usr/lib/libtls.so.20

# apk info libretls
libretls-3.3.3-r0 description:
port of libtls from libressl to openssl

libretls-3.3.3-r0 webpage:
https://git.causal.agency/libretls/

libretls-3.3.3-r0 installed size:
84 KiB

but LibreSSL 3.3.3 (May 3rd, 2021) conflict libtls.so.20 the error as follow:

ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20 owned by libretls-3.3.3-r0.
ERROR: libressl3.3-libtls-3.3.3-r0: trying to overwrite usr/lib/libtls.so.20.0.3 owned by libretls-3.3.3-r0.