From 7429674ac448ff867ac133cf424a0da9bfceeb20 Mon Sep 17 00:00:00 2001 From: minicooper666 Date: Fri, 5 May 2023 18:27:04 +0300 Subject: [PATCH 1/3] Update due to debian stretch moved to archive --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index befcff3..a66d1b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ FROM debian:stretch-slim as cryptopro-generic ENV TZ="Europe/Moscow" \ docker="1" +RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list + RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ echo $TZ > /etc/timezone @@ -25,18 +27,19 @@ RUN cd /tmp/src && \ ln -s /opt/cprocsp/bin/amd64/der2xer && \ ln -s /opt/cprocsp/bin/amd64/inittst && \ ln -s /opt/cprocsp/bin/amd64/wipefile && \ - ln -s /opt/cprocsp/sbin/amd64/cpconfig && \ + ln -s /opt/cprocsp/sbin/amd64/cpconfig && \ # прибираемся - rm -rf /tmp/src + rm -rf /tmp/src # Образ с PHP cli и скриптами FROM cryptopro-generic ADD dist /tmp/src RUN apt-get update && \ - apt-get install -y --no-install-recommends expect alien php7.0-cli php7.0-dev libboost-dev unzip g++ curl && \ - cd /tmp/src && \ - tar -xf cades_linux_amd64.tar.gz && \ +# added lsb-core libccid pcscd libmotif-common to get working in 2023 + apt-get install -y --no-install-recommends lsb-core libccid pcscd libmotif-common expect alien php7.0-cli php7.0-dev libboost-dev unzip g++ curl && \ + cd /tmp/src && \ + tar -xf cades-linux-amd64.tar.gz && \ alien -kci lsb-cprocsp-devel-4.0.9921-5.noarch.rpm && \ alien -kci cprocsp-pki-2.0.0-amd64-phpcades.rpm && \ alien -kci cprocsp-pki-2.0.0-amd64-cades.rpm && \ From db797815947e6df0335ae46ae3bc36f39d538f89 Mon Sep 17 00:00:00 2001 From: minicooper666 Date: Fri, 5 May 2023 18:29:20 +0300 Subject: [PATCH 2/3] cleaning up --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a66d1b3..071d113 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,16 +27,15 @@ RUN cd /tmp/src && \ ln -s /opt/cprocsp/bin/amd64/der2xer && \ ln -s /opt/cprocsp/bin/amd64/inittst && \ ln -s /opt/cprocsp/bin/amd64/wipefile && \ - ln -s /opt/cprocsp/sbin/amd64/cpconfig && \ + ln -s /opt/cprocsp/sbin/amd64/cpconfig && \ # прибираемся - rm -rf /tmp/src + rm -rf /tmp/src # Образ с PHP cli и скриптами FROM cryptopro-generic ADD dist /tmp/src RUN apt-get update && \ -# added lsb-core libccid pcscd libmotif-common to get working in 2023 apt-get install -y --no-install-recommends lsb-core libccid pcscd libmotif-common expect alien php7.0-cli php7.0-dev libboost-dev unzip g++ curl && \ cd /tmp/src && \ tar -xf cades-linux-amd64.tar.gz && \ From 5c594e97ff953bb65b18254b8aabd46f69f384e6 Mon Sep 17 00:00:00 2001 From: minicooper666 Date: Fri, 5 May 2023 18:31:38 +0300 Subject: [PATCH 3/3] One more cleanup --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 071d113..cea6b98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM debian:stretch-slim as cryptopro-generic # Устанавливаем timezone ENV TZ="Europe/Moscow" \ docker="1" - +# Debian 9 Stretch ушла в архив, без этой строки пакеты не выкачать RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ @@ -37,8 +37,8 @@ ADD dist /tmp/src RUN apt-get update && \ apt-get install -y --no-install-recommends lsb-core libccid pcscd libmotif-common expect alien php7.0-cli php7.0-dev libboost-dev unzip g++ curl && \ - cd /tmp/src && \ - tar -xf cades-linux-amd64.tar.gz && \ + cd /tmp/src && \ + tar -xf cades_linux_amd64.tar.gz && \ alien -kci lsb-cprocsp-devel-4.0.9921-5.noarch.rpm && \ alien -kci cprocsp-pki-2.0.0-amd64-phpcades.rpm && \ alien -kci cprocsp-pki-2.0.0-amd64-cades.rpm && \