Browse Source

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

master
sergiotarxz 6 months ago
parent
commit
7140c885b3
Signed by: sergiotarxz GPG Key ID: E5903508B6510AC2
  1. 27
      Dockerfile
  2. BIN
      configurador.db
  3. BIN
      configuradorfnmt_1.0.1-0_amd64.deb
  4. 1
      configuradorfnmt_1.0.1-0_amd64.deb.sha512sum

27
Dockerfile

@ -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

BIN
configuradorfnmt_1.0.1-0_amd64.deb

1
configuradorfnmt_1.0.1-0_amd64.deb.sha512sum

@ -0,0 +1 @@
742cc8d6ff502f4baae3cab564aced6c9f66d6b7b24be4823ab0c1983831a5351a0cc92db8f05a90f0fbcc52425ff0d331685cac8f6acaf5c1d3633827069ba0
Loading…
Cancel
Save