diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..80c764c --- /dev/null +++ b/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"] diff --git a/configurador.db b/configurador.db new file mode 100644 index 0000000..56c0a7d Binary files /dev/null and b/configurador.db differ diff --git a/configuradorfnmt_1.0.1-0_amd64.deb b/configuradorfnmt_1.0.1-0_amd64.deb new file mode 100644 index 0000000..56c0a7d Binary files /dev/null and b/configuradorfnmt_1.0.1-0_amd64.deb differ diff --git a/configuradorfnmt_1.0.1-0_amd64.deb.sha512sum b/configuradorfnmt_1.0.1-0_amd64.deb.sha512sum new file mode 100644 index 0000000..32ad4dd --- /dev/null +++ b/configuradorfnmt_1.0.1-0_amd64.deb.sha512sum @@ -0,0 +1 @@ +742cc8d6ff502f4baae3cab564aced6c9f66d6b7b24be4823ab0c1983831a5351a0cc92db8f05a90f0fbcc52425ff0d331685cac8f6acaf5c1d3633827069ba0