From d20c555fac3279c05f32aa6aade4b19e1c92b884 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 21 Apr 2017 17:55:28 -0300 Subject: [PATCH 01/14] Added A3 token dependecy --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3697696..9be2c7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,10 @@ RUN apt-get update \ firefox \ firefox-locale-pt \ xauth \ + opensc \ + libopensc-openssl \ + pcscd \ + pcsc-tools \ --no-install-recommends \ && apt-get purge --auto-remove -y \ && rm -rf /var/lib/apt/lists/* \ @@ -22,6 +26,19 @@ RUN apt-get update \ ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ +ADD \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libjbig0_2.0-2_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libtiff4_3.9.6-6ubuntu1_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/fontconfig-config_2.9.0-7_all.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libfontconfig1_2.9.0-7_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxbase2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ + /src/ + +RUN find /src/ -type f -exec apt -y install {} \; + # Add ff user RUN groupadd -g 1000 -r ff \ From b72e60041140348437188711719273d876b1cc31 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 21 Apr 2017 17:35:50 -0300 Subject: [PATCH 02/14] Space --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 9be2c7c..813ce23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apt-get update \ ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ + ADD \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libjbig0_2.0-2_amd64.deb \ https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libtiff4_3.9.6-6ubuntu1_amd64.deb \ From 667a59518b5b95fdb4499ea74706bda0e720f92b Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 21 Apr 2017 17:37:50 -0300 Subject: [PATCH 03/14] Add safesign identify client package --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 813ce23..9c93e67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,7 @@ ADD \ RUN find /src/ -type f -exec apt -y install {} \; +ADD http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb # Add ff user RUN groupadd -g 1000 -r ff \ From 58ed9a67c2d41685eddc5d5533d2055c083ed553 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 21 Apr 2017 17:39:35 -0300 Subject: [PATCH 04/14] Moved below safesign package --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c93e67..1744f6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,6 @@ RUN apt-get update \ && rm -rf /src/*.deb -ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ -COPY startup.sh /home/ff/ ADD \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libjbig0_2.0-2_amd64.deb \ @@ -42,6 +40,9 @@ RUN find /src/ -type f -exec apt -y install {} \; ADD http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb +ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ +COPY startup.sh /home/ff/ + # Add ff user RUN groupadd -g 1000 -r ff \ && useradd -u 1000 -r -g ff -G audio,video ff \ From 8edff020ccdd6482682f20057ab1e8f19d1a48b9 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 21 Apr 2017 17:40:31 -0300 Subject: [PATCH 05/14] Add command to install safesign package --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1744f6e..e5fe068 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,8 @@ ADD http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubunt ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ +RUN apt -y install /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb + # Add ff user RUN groupadd -g 1000 -r ff \ && useradd -u 1000 -r -g ff -G audio,video ff \ From fbed77e002156b2a2f0aa7be022f6bee6c96b822 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Wed, 26 Apr 2017 21:22:16 -0300 Subject: [PATCH 06/14] Move above the provision commands --- Dockerfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index c83f1df..9a42aab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,18 @@ FROM ubuntu:latest LABEL maintainer "Fabio Rodrigues Ribeiro " # Install Firefox + +ADD \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libjbig0_2.0-2_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libtiff4_3.9.6-6ubuntu1_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/fontconfig-config_2.9.0-7_all.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libfontconfig1_2.9.0-7_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxbase2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ + # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ + /src/ + RUN apt-get update \ && apt-get upgrade -y \ && apt-get install -y \ @@ -24,18 +36,6 @@ RUN apt-get update \ && rm -rf /src/*.deb - -ADD \ - # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libjbig0_2.0-2_amd64.deb \ - https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libtiff4_3.9.6-6ubuntu1_amd64.deb \ - # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/fontconfig-config_2.9.0-7_all.deb \ - # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libfontconfig1_2.9.0-7_amd64.deb \ - https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxbase2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ - https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ - # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ - # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ - /src/ - RUN find /src/ -type f -exec apt -y install {} \; ADD http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb From 627cb2a291b69dadbad2d5700dcfdf96785cd8ee Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Wed, 26 Apr 2017 21:22:53 -0300 Subject: [PATCH 07/14] Unify on the ADD command --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9a42aab..aec928d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ ADD \ https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ + http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb \ /src/ RUN apt-get update \ @@ -38,7 +39,6 @@ RUN apt-get update \ RUN find /src/ -type f -exec apt -y install {} \; -ADD http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ From 8551bb148c88f599503d093cc846da1dc65d747f Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Wed, 26 Apr 2017 21:48:37 -0300 Subject: [PATCH 08/14] Simplify the command --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aec928d..5608443 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,18 +32,17 @@ RUN apt-get update \ pcscd \ pcsc-tools \ --no-install-recommends \ + && apt -y install /src/*.deb \ && apt-get purge --auto-remove -y \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /src/*.deb -RUN find /src/ -type f -exec apt -y install {} \; ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ -RUN apt -y install /src/safesignidentityclient_3.0.77-Ubuntu_amd64.deb # Add ff user RUN groupadd -g 1000 -r ff \ From 07f07407308eb3ffb52326665491cbb624748987 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Wed, 26 Apr 2017 21:28:41 -0300 Subject: [PATCH 09/14] Eliminate spaces --- Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5608443..2be1d12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,13 +37,9 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && rm -rf /src/*.deb - - - ADD https://cloud.gastecnologia.com.br/cef/warsaw/install/GBPCEFwr64.deb /src/ COPY startup.sh /home/ff/ - # Add ff user RUN groupadd -g 1000 -r ff \ && useradd -u 1000 -r -g ff -G audio,video ff \ @@ -52,7 +48,6 @@ RUN groupadd -g 1000 -r ff \ && chown -R ff:ff /home/ff \ && passwd -d root - # Run firefox as non privileged user USER ff From 64b024647317daf69d158afc40e5dc2fb3fe8fe9 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Tue, 2 May 2017 13:38:34 -0300 Subject: [PATCH 10/14] Add command to start token daemon --- startup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/startup.sh b/startup.sh index 98f1982..d8838b8 100644 --- a/startup.sh +++ b/startup.sh @@ -22,5 +22,6 @@ else su -c "/etc/init.d/warsaw start" fi +su -c "/etc/init.d/pcscd start" /usr/local/bin/warsaw/core \ && firefox -private-window www.caixa.gov.br From a4e8e2782bce9059e5f6db2f36a8e141b0b955ba Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Sun, 23 Jul 2017 16:51:36 -0300 Subject: [PATCH 11/14] Change broken link --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2be1d12..9e07636 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ ADD \ https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ - http://www.iti.gov.br/images/middlewares/safesignidentityclient_3.0.77-Ubuntu_amd64.deb \ + https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/safesignidentityclient_3.0.77-Ubuntu_amd64.deb \ /src/ RUN apt-get update \ From 368b28d22c2e3207578afdc00d33b3b786aa91b1 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Fri, 11 Aug 2017 10:51:57 -0300 Subject: [PATCH 12/14] Update to newer safesign ubuntu 14.04 ready --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0db7270..4fa2f13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ ADD \ https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libwxgtk2.8-0_2.8.12.1-6ubuntu2_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libpcsclite1_1.8.5-1ubuntu1_amd64.deb \ # https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/libccid_1.4.7-1_amd64.deb \ - https://s3-sa-east-1.amazonaws.com/shared-www.validcertificadora.com.br/safesignidentityclient_3.0.77-Ubuntu_amd64.deb \ + http://www.digitalsigncertificadora.com.br/repositorio/downloads/SafeSignIC3.0.116-x86_64-ub14-tc-admin.deb \ /src/ RUN apt-get update \ From 4b79bb405e523440df5f4bcf6009aaf92e77a1b4 Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Thu, 23 Jul 2020 18:02:00 -0300 Subject: [PATCH 13/14] Move to root script --- root.sh | 1 + startup.sh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/root.sh b/root.sh index edd1807..559b576 100644 --- a/root.sh +++ b/root.sh @@ -1,6 +1,7 @@ #!/bin/bash /etc/init.d/warsaw start +/etc/init.d/pcscd start # Run Firefox as non privileged user setpriv --reuid=ff --regid=ff --init-groups --inh-caps=-all --reset-env env DISPLAY=$DISPLAY LANG=$LANG TZ=$TZ startup.sh diff --git a/startup.sh b/startup.sh index 7efa274..e94a0a4 100644 --- a/startup.sh +++ b/startup.sh @@ -8,7 +8,6 @@ cp /tmp/.docker.xauth /tmp/auth runx xauth add ${HOSTNAME}/unix${DISPLAY} . $(runx xauth list | awk '$1 !~ /localhost/ {print $3; exit}') runx xauth generate $DISPLAY . untrusted timeout 0 -su -c "/etc/init.d/pcscd start" /usr/local/bin/warsaw/core \ && runx firefox -no-remote -CreateProfile default \ && runx firefox -no-remote -private-window --class CaixaEconomica --name CaixaEconomica https://www.caixa.gov.br From f8b6f0e8281f3e292bf7da6d467110936473475c Mon Sep 17 00:00:00 2001 From: Fabio Rodrigues Ribeiro Date: Thu, 23 Jul 2020 18:06:52 -0300 Subject: [PATCH 14/14] Add USB device --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index 291add4..3c8e364 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,7 @@ services: memory: 512M shm_size: 2g volumes: + - /dev/bus/usb:/dev/bus/usb - /tmp/.X11-unix:/tmp/.X11-unix - ${XAUTHORITY}:/tmp/.docker.xauth:ro - ${BANKFILES}:/home/ff/Downloads