Adding files needed to create a container able to store the spanish digital certificate.

This commit is contained in:
sergiotarxz 2021-01-15 16:25:46 +01:00
parent 656bacb44a
commit 7140c885b3
Signed by: sergiotarxz
GPG Key ID: E5903508B6510AC2
4 changed files with 28 additions and 0 deletions

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM debian:sid
COPY ./id_rsa.pub /id_rsa.pub
COPY ./configuradorfnmt_1.0.1-0_amd64.deb.sha512sum /configuradorfnmt_1.0.1-0_amd64.deb.sha512sum
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
RUN apt dist-upgrade -y
RUN apt install -y curl
RUN curl -O -L 'https://descargas.cert.fnmt.es/Linux/configuradorfnmt_1.0.1-0_amd64.deb'
RUN [ "$(sha512sum /configuradorfnmt_1.0.1-0_amd64.deb | awk '{ print $1 }' )" = "$(cat /configuradorfnmt_1.0.1-0_amd64.deb.sha512sum | awk '{ print $1 }')" ]
RUN apt install -y openssh-server
RUN useradd -m sergio -s /bin/bash && su sergio -c "mkdir ~/.ssh"
RUN cat /id_rsa.pub >> /home/sergio/.ssh/authorized_keys
RUN apt install -y libgtk2.0-0
RUN apt install -y libcanberra-gtk-module
RUN apt install -y libcanberra-gtk3-module
RUN apt install -y libpcsclite1
RUN apt install -y firefox
RUN apt install -y gconf2
RUN dpkg -i /configuradorfnmt_1.0.1-0_amd64.deb
RUN ssh-keygen -A
RUN apt-get install -y xorg
RUN mkdir -p /run/sshd
RUN apt install -y openbox
RUN echo "X11UseLocalhost no" >> /etc/ssh/sshd_config
EXPOSE 22/tcp
CMD ["/usr/sbin/sshd", "-D"]

BIN
configurador.db Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
742cc8d6ff502f4baae3cab564aced6c9f66d6b7b24be4823ab0c1983831a5351a0cc92db8f05a90f0fbcc52425ff0d331685cac8f6acaf5c1d3633827069ba0