Sign inSign up

deepeddy/mysqlite

By deepeddy

Updated about 7 years ago

SQLite version 3.8.2 2013-12-06 built on Ubuntu 14.04 base

Image
0

10K+

deepeddy/mysqlite repository overview

#docker build -t "deepeddy/mysqlite:" -f ./Dockerfile --no-cache --pull

FROM ubuntu:14.04

install SQLite engine and OpenSSH to allow remote shell commands between containers running this image

RUN apt-get update && apt-get -y install
sqlite3
openssh-client
openssh-server EXPOSE 22

#generate SSH keys. Generates an rsa key with NO pass phrase. RUN /bin/bash -c ' ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N ""' RUN /bin/bash -c ' cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys '

edit /etc/ssh/ssh_config to permit RSA remote authentication

RUN /bin/bash -c " sed -i 's/# RSAAuthentication yes/ RSAAuthentication yes/' /etc/ssh/ssh_config" RUN /bin/bash -c " sed -i 's/# IdentityFile ~/.ssh/id_rsa/ IdentityFile ~/.ssh/id_rsa/' /etc/ssh/ssh_config" RUN /bin/bash -c " sed -i 's/# Protocol 2,1/ Protocol 2,1/' /etc/ssh/ssh_config" RUN /bin/bash -c " sed -i '/^Host */a\ StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null\n LogLevel=verbose'
/etc/ssh/ssh_config"

#restart logging #RUN /bin/bash -c "/etc/init.d/rsyslog restart"

edit /etc/ssh/sshd_config to permit RSA remote authentication

RUN /bin/bash -c " sed -i 's/#AuthorizedKeysFile/AuthorizedKeysFile/' /etc/ssh/sshd_config;
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config;
sed -i 's/^UsePAM yes/UsePAM no/' /etc/ssh/sshd_config;
sed -i 's/^PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config"

CMD ["sh", "-c", "/etc/init.d/ssh start; /etc/init.d/rsyslog restart"] #CMD ["sh", "/etc/init.d/ssh start"]

Tag summary

Content type

Image

Digest

Size

307.6 MB

Last updated

about 7 years ago

docker pull deepeddy/mysqlite:masterDynamic