diff --git a/Dockerfile b/Dockerfile index 7d769b9..e46d395 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,6 @@ RUN apt-get -y update && \ libfontconfig \ mc \ net-tools \ - openssh-server \ supervisor \ gnupg \ gnupg2 \ @@ -44,19 +43,15 @@ RUN apt-get -y update && \ curl -sL https://deb.nodesource.com/setup_15.x | bash - && \ apt-get install -y nodejs -# Configure Supervisord, SSH and base env +# Configure Supervisord and base env COPY supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf WORKDIR /root RUN mkdir -p /var/log/supervisor && \ - mkdir -p /var/run/sshd && \ echo 'root:root' | chpasswd && \ - rm -rf .ssh && \ - rm -rf .profile && \ - mkdir .ssh + rm -rf .profile -COPY ssh/id_rsa .ssh/id_rsa COPY bash/profile .profile # Install InfluxDB @@ -72,7 +67,7 @@ RUN wget https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION dpkg -i telegraf_${TELEGRAF_VERSION}_amd64.deb && rm telegraf_${TELEGRAF_VERSION}_amd64.deb # Configure Telegraf -RUN mv -f /etc/telegraf/telegraf.conf /etc/telegraf/telegraf.conf.default +RUN mv -f /etc/telegraf/telegraf.conf /etc/telegraf/telegraf.conf.default COPY telegraf/telegraf.conf /etc/telegraf/telegraf.conf COPY telegraf/init.sh /etc/init.d/telegraf @@ -99,7 +94,7 @@ RUN chmod 755 /usr/share/snmp/mibs #COPY rootfs /tmp #RUN /tmp/grafana-plugins.sh -EXPOSE 22/tcp 3003/tcp 8086/tcp 8888/tcp 8125/udp +EXPOSE 3003/tcp 8086/tcp 8888/tcp 8125/udp #VOLUME /var/lib/influxdb /var/lib/grafana /var/lib/backups # Cleanup diff --git a/README.md b/README.md index 671c82f..c119f51 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ docker run --ulimit nofile=66000:66000 -d \ -p 3003:3003 \ -p 3004:8888 \ -p 8086:8086 \ - -p 22022:22 \ -p 8125:8125/udp \ -v /path/for/influxdb:/var/lib/influxdb \ -v /path/for/grafana:/var/lib/grafana \ @@ -58,14 +57,7 @@ Host Container Service 3004 8888 influxdb-admin (chronograf) 8086 8086 influxdb HTTP API port 8125 8125 telegraf -22022 22 sshd ``` -## SSH - -```sh -ssh root@localhost -p 22022 -``` -By default root password login disabled. If ssh connection needed, please configure key authentication. Access from docker host: ``` @@ -116,5 +108,5 @@ Port: 8086 ### InfluxDB Shell (CLI) -1. Establish a ssh or docker exec connection with the container +1. Establish a docker exec connection with the container 2. Launch `influx` to open InfluxDB Shell (CLI) diff --git a/ssh/id_rsa b/ssh/id_rsa deleted file mode 100644 index a0f959b..0000000 --- a/ssh/id_rsa +++ /dev/null @@ -1,51 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIJKQIBAAKCAgEA0qtihbe5Vg532k3MqULzP1JaRt7PXPQAxwks9XXHUOO3H/4w -Ij7Xoe4ydHabLEH/5a/RrOdECNm7/kL3xBgPqcfOfYZfgdl0okI88IIC0M8mBRJG -4FIt6shIxQi2uNbaUsSIyPP/mFhi1BHhU+Kt0SJTZ8nmpuIAR64bGKLIaOMno87E -oZcu1CrhrHxZ9uw3KtHh/oGNZU7fJMiSBdXrimcKvqLHaK9zgMWD+qg1QEymK1K6 -e8Itw7+HQKimo2JJKgtNUYV55CaQRhA4MscSa4hYc4ap7q7sEyaRJU7+241bqOol -jnSmoKrmIb4BKIbKI6j0rVCvu2FnQ6VOpoGL/QC5Sr/ZhpmFuL7G4SJ4IrQu3WgU -UaPEeauYrLfqsKuR2r1Apav0VdwbjuaDLcDfO/ftwlXPftpg7qsMz6eIJzCnkEPD -fUTV4BmgLvxpJRd/EYk9aW0LrxB3k+gDnd36Xt37kvkx1goMrVADtszMDwTZyTHD -9EtHlH1F+8/JNDkyDH9HTFnyL7K7pugf5iQA0cNDKBW6ypavTlEUBsZ/S+CJB6Rn -8hbwTQSLC0GRlH8a50AMZFmUMn0IBp+3dwGiztN6m48DgGYmvumJlxW/We5EcHvw -duJY1tdzNPvUXM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7u1G1CpY96gmi -FNuLQRJfcOQBi7sIPBEU4cWIY6HPloZFSs+8KDQlaPcjaRkyZdsmKnwKS5Z7/Q53 -YzShg3scuCXAFNCWGwdy9/nXj3UZ4bjrYzwHPpjiW4KQTILyMeBkqFF/g2odJ4SU -ntczpPYayTzEvY0lJsgqsKR4cquhLTIiEIFYT1TwjBaRK/kJnNU/oMmByxDsHFda -D7KiCd78OkEc6OsmP/u5vnMSi8la1UUuugkHgg7J00xlDwvOM9KLdMoBrrhUmwXE -XpNU5Jj/fozAeiecG9eXIJGdxzZ7m+RU6EZ+AMIZoNmpNEqfYvFeh/cHWmlr ------END RSA PRIVATE KEY----- diff --git a/ssh/id_rsa.pub b/ssh/id_rsa.pub deleted file mode 100644 index 114173d..0000000 --- a/ssh/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDSq2KFt7lWDnfaTcypQvM/UlpG3s9c9ADHCSz1dcdQ47cf/jAiPteh7jJ0dpssQf/lr9Gs50QI2bv+QvfEGA+px859hl+B2XSiQjzwggLQzyYFEkbgUi3qyEjFCLa41tpSxIjI8/+YWGLUEeFT4q3RIlNnyeam4gBHrhsYosho4yejzsShly7UKuGsfFn27Dcq0eH+gY1lTt8kyJIF1euKZwq+osdor3OAxYP6qDVATKYrUrp7wi3Dv4dAqKajYkkqC01RhXnkJpBGEDgyxxJriFhzhqnuruwTJpElTv7bjVuo6iWOdKagquYhvgEohsojqPStUK+7YWdDpU6mgYv9ALlKv9mGmYW4vsbhIngitC7daBRRo8R5q5ist+qwq5HavUClq/RV3BuO5oMtwN879+3CVc9+2mDuqwzPp4gnMKeQQ8N9RNXgGaAu/GklF38RiT1pbQuvEHeT6AOd3fpe3fuS+THWCgytUAO2zMwPBNnJMcP0S0eUfUX7z8k0OTIMf0dMWfIvsrum6B/mJADRw0MoFbrKlq9OURQGxn9L4IkHpGfyFvBNBIsLQZGUfxrnQAxkWZQyfQgGn7d3AaLO03qbjwOAZia+6YmXFb9Z7kRwe/B24ljW13M0+9RczsFPChOn3wo6U2IfFog34/cRxZdJ6ILiUaLIH9C8cwum9Q== samuele@Dell-XPS-13