This commit is contained in:
Sergey Paramoshkin 2024-08-26 11:14:08 +03:00
parent 8f672c9404
commit 64a1583aa7
No known key found for this signature in database
GPG Key ID: 2DDC9CC04EC41558
1 changed files with 24 additions and 22 deletions

View File

@ -1,25 +1,27 @@
FROM ubuntu:22.04 FROM ubuntu:22.04
RUN apt update && apt install -y wget libgtk-3-0 RUN echo "deb http://packages.lab50.net/okular jammy main non-free" > /etc/apt/sources.list.d/okulargost.list
COPY 3party/cprocsp/linux-amd64_deb.tgz /tmp/src/ RUN apt update && apt install -y wget libgtk-3-0 okular-csp-utils
RUN cd /tmp/src && \ # COPY 3party/cprocsp/linux-amd64_deb.tgz /tmp/src/
tar -xf linux-amd64_deb.tgz && \ # RUN cd /tmp/src && \
linux-amd64_deb/install.sh && \ # tar -xf linux-amd64_deb.tgz && \
dpkg -i linux-amd64_deb/cprocsp-pki-cades-64*.deb && \ # linux-amd64_deb/install.sh && \
dpkg -i linux-amd64_deb/cprocsp-rdr-gui-gtk-64*.deb && \ # dpkg -i linux-amd64_deb/cprocsp-pki-cades-64*.deb && \
# делаем симлинки # dpkg -i linux-amd64_deb/cprocsp-rdr-gui-gtk-64*.deb && \
cd /bin && \
ln -s /opt/cprocsp/bin/amd64/certmgr && \
ln -s /opt/cprocsp/bin/amd64/cpverify && \
ln -s /opt/cprocsp/bin/amd64/cryptcp && \
ln -s /opt/cprocsp/bin/amd64/csptest && \
ln -s /opt/cprocsp/bin/amd64/csptestf && \
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 && \
# прибираемся
rm -rf /tmp/src
COPY 3party/okular/install.sh /tmp/ # # делаем симлинки
RUN bash /tmp/install.sh && rm -fv /tmp/install.sh # cd /bin && \
# ln -s /opt/cprocsp/bin/amd64/certmgr && \
# ln -s /opt/cprocsp/bin/amd64/cpverify && \
# ln -s /opt/cprocsp/bin/amd64/cryptcp && \
# ln -s /opt/cprocsp/bin/amd64/csptest && \
# ln -s /opt/cprocsp/bin/amd64/csptestf && \
# 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 && \
# # прибираемся
# rm -rf /tmp/src
# COPY 3party/okular/install.sh /tmp/
# RUN bash /tmp/install.sh && rm -fv /tmp/install.sh