Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upgrade to include certbot-dns-cpanel v0.4.0? #620

Open
benze opened this issue Jan 28, 2025 · 0 comments
Open

How to upgrade to include certbot-dns-cpanel v0.4.0? #620

benze opened this issue Jan 28, 2025 · 0 comments

Comments

@benze
Copy link

benze commented Jan 28, 2025

I've been trying to get the LetsEncrypt certbot working with my DNS provider and have realized that the cpanel plugin that is bundled in the NPM is an older version.

How can I rebuild the NPM addon to use a more recent version of the certbot-dns-cpanel plugin? I've looked at the Dockerfile and do not see where it gets added to the container?

I've tried to build the Dockerfile for v1.0.1 and I am getting errors during the build process:

 /tmp/addon-nginx-proxy-manager/proxy-manager  #v1.0.1  docker build .                                                                                                                      
[+] Building 3.0s (8/9)                                                                                                                                                                            docker:orbstack
 => [internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 4.57kB                                                                                                                                                                        0.0s
 => [internal] load metadata for ghcr.io/hassio-addons/base-nodejs:0.1.1                                                                                                                                      1.9s
 => [internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                                               0.0s
 => [1/5] FROM ghcr.io/hassio-addons/base-nodejs:0.1.1@sha256:6fc68d485f147c9db03adb8366e8ec3f012832803e0a2ab334023f51a5e91eb0                                                                                0.0s
 => [internal] load build context                                                                                                                                                                             0.0s
 => => transferring context: 2.89kB                                                                                                                                                                           0.0s
 => CACHED [2/5] COPY requirements.txt /tmp/                                                                                                                                                                  0.0s
 => CACHED [3/5] COPY patches/*.patch /usr/src/
 => ERROR [4/5] RUN     apk add --no-cache --virtual .build-dependencies         build-base=0.5-r3         git=2.43.0-r0         libffi-dev=3.4.4-r3         openssl-dev=3.1.4-r3         patch=2.7.6-r10     0.8s
------
 > [4/5] RUN     apk add --no-cache --virtual .build-dependencies         build-base=0.5-r3         git=2.43.0-r0         libffi-dev=3.4.4-r3         openssl-dev=3.1.4-r3         patch=2.7.6-r10         python3-dev=3.11.6-r1         && apk add --no-cache         apache2-utils=2.4.58-r1         certbot=2.7.4-r0         libcap=2.69-r1         logrotate=3.21.0-r1         nginx-mod-stream=1.24.0-r14         nginx=1.24.0-r14         openssl=3.1.4-r3         py3-pip=23.3.1-r0         python3=3.11.6-r1         && pip3 install -r /tmp/requirements.txt         && yarn global add modclean         && curl -J -L -o /tmp/nginxproxymanager.tar.gz         "https://github.com/NginxProxyManager/nginx-proxy-manager/archive/v2.10.4.tar.gz"     && mkdir /app     && tar zxvf         /tmp/nginxproxymanager.tar.gz         --strip 1 -C /app         && for i in /usr/src/*.patch; do         patch -d /app -p 1 < "${i}"; done         && cd /app/frontend     && yarn install     && yarn build     && rm -rf node_modules         && mkdir -p /opt/nginx-proxy-manager/frontend     && cp -r /app/frontend/dist/. /opt/nginx-proxy-manager/frontend/         && cd /app/backend     && yarn install     && rm -rf node_modules     && cp -r /app/backend/. /opt/nginx-proxy-manager/         && cp -R /app/global/. /opt/nginx-proxy-manager/global/         && cd /opt/nginx-proxy-manager     && yarn install     && rm -rf /etc/services.d/frontend     && rm -rf /opt/nginx-proxy-manager/config         && rm -f -r /etc/nginx     && cp -r /app/docker/rootfs/etc/nginx /etc/nginx     && rm -f /etc/nginx/conf.d/dev.conf         && cp /app/docker/rootfs/etc/letsencrypt.ini /etc     && cp /app/docker/rootfs/etc/logrotate.d/nginx-proxy-manager /etc/logrotate.d         && sed -i "s#user npm;#user root;#" /etc/nginx/nginx.conf     && sed -i "s#root /app/frontend;#root /opt/nginx-proxy-manager/frontend;#"         /etc/nginx/conf.d/production.conf     && sed -i "s#table.string('id').notNull().primary();#table.string('id', 32).notNull().primary();#"         /opt/nginx-proxy-manager/migrations/20190227065017_settings.js         && mkdir -p         /run/nginx         && modclean         --path /opt/nginx-proxy-manager         --no-progress         --keep-empty         --run         && yarn global remove modclean     && yarn cache clean         && apk del --purge .build-dependencies         && rm -f -r         /app         /etc/init.d/nginx         /etc/logrotate.d/nginx         /opt/nginx-proxy-manager/node_modules/bcrypt/build         /root/.cache         /root/.node-gyp         /tmp/.[!.]*         /tmp/*         /usr/lib/node_modules         /usr/local/share/.cache         /var/lib/nginx         /var/log/nginx         /var/tmp/nginx         /var/www:
0.237 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
0.408 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
0.715 ERROR: unable to select packages:
0.716   libcrypto3-3.1.4-r3:
0.716     breaks: openssl-dev-3.1.7-r1[libcrypto3=3.1.7-r1]
0.716     satisfies: world[libcrypto3=3.1.4-r3]
0.716                ca-certificates-20230506-r0[so:libcrypto.so.3]
0.716                python3-3.11.11-r0[so:libcrypto.so.3]
0.716                apk-tools-2.14.0-r5[so:libcrypto.so.3]
0.716                libcurl-8.5.0-r0[so:libcrypto.so.3]
0.716                libssl3-3.1.4-r3[so:libcrypto.so.3]
0.716   libssl3-3.1.4-r3:
0.716     breaks: openssl-dev-3.1.7-r1[libssl3=3.1.7-r1]
0.716     satisfies: world[libssl3=3.1.4-r3]
0.716                python3-3.11.11-r0[so:libssl.so.3]
0.716                apk-tools-2.14.0-r5[so:libssl.so.3]
0.716                libcurl-8.5.0-r0[so:libssl.so.3]
0.716   git-2.43.6-r0:
0.716     breaks: .build-dependencies-20250128.050437[git=2.43.0-r0]
0.716   openssl-dev-3.1.7-r1:
0.716     breaks: .build-dependencies-20250128.050437[openssl-dev=3.1.4-r3]
0.716   python3-dev-3.11.11-r0:
0.716     breaks: .build-dependencies-20250128.050437[python3-dev=3.11.6-r1]
0.716   .build-dependencies-20250128.050437:
0.716     masked in: cache
0.716     satisfies: world[.build-dependencies=20250128.050437]
------

Am I doing something wrong or is there a problem with the Dockerfile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant