OpenSIPS/docker-opensips

"Unable to locate package opensips-cli" error on image build

Closed this issue · 3 comments

$ sudo docker build -t opensips/opensips:3.4.2 \
> --build-arg OPENSIPS_BUILD=releases \
> --build-arg OPENSIPS_VERSION=3.4 \
> --build-arg OPENSIPS_VERSION_MINOR=2 \
> --build-arg OPENSIPS_CLI=true \
> --build-arg OPENSIPS_EXTRA_MODULES='opensips-auth-modules opensips-http-modules opensips-mysql-module opensips-restclient-module opensips-tls-module opensips-tls-openssl-module opensips-tlsmgm-module opensips-wss-module' \
> --no-cache /opt/docker-opensips/
...
Step 14/20 : RUN if [ ${OPENSIPS_CLI} = true ]; then     echo "deb https://apt.opensips.org bullseye cli-nightly" >/etc/apt/sources.list.d/opensips-cli.list     && apt-get -y update -qq && apt-get -y install opensips-cli     ;fi
 ---> Running in 149f63294dac

W: Skipping acquire of configured file 'cli-nightly/binary-amd64/Packages' as repository 'https://apt.opensips.org bullseye InRelease' doesn't have the component 'cli-nightly' (component misspelt in sources.list?)
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package opensips-cli
The command '/bin/sh -c if [ ${OPENSIPS_CLI} = true ]; then     echo "deb https://apt.opensips.org bullseye cli-nightly" >/etc/apt/sources.list.d/opensips-cli.list     && apt-get -y update -qq && apt-get -y install opensips-cli     ;fi' returned a non-zero code: 100

Can you check again now, please?

Yeap, it's working now, many thanks!

You are actually trying to install it while the debian repo was re-caching. Not sure how to solve this issue, but I will give it some thought. Thanks for reporting!