From 73e62ba0fa13cb6bc1c05d7c33472b41a62e86f5 Mon Sep 17 00:00:00 2001 From: Akilan Date: Wed, 22 Feb 2023 17:10:14 +0000 Subject: [PATCH] docker files --- .DS_Store | Bin 6148 -> 8196 bytes .gitignore | 3 + .../containers/Akilan1999/docker-ubuntu-sshd | 1 + client/trackcontainers/.gitkeep | 0 cmd/action.go | 2 +- config/generate/generateFiles.go | 17 +++-- p2p/iptable/.gitkeep | 0 server/.DS_Store | Bin 0 -> 6148 bytes server/docker/.DS_Store | Bin 0 -> 6148 bytes server/docker/containers/README | 7 -- .../docker/containers/cpuhorovod/Dockerfile | 43 ----------- .../containers/cpuhorovod/description.txt | 1 - .../containers/cpuhorovod/scripts/start | 11 --- .../docker-ubuntu-sshd-x11/Dockerfile | 61 --------------- .../docker-ubuntu-sshd-x11/README.md | 72 ------------------ .../docker-ubuntu-sshd-x11/description.txt | 1 - .../docker-ubuntu-sshd-x11/ports.json | 16 ---- .../docker-ubuntu-sshd-x11/scripts/start | 14 ---- .../containers/docker-ubuntu-sshd/Dockerfile | 61 --------------- .../containers/docker-ubuntu-sshd/README.md | 72 ------------------ .../docker-ubuntu-sshd/description.txt | 1 - .../containers/docker-ubuntu-sshd/ports.json | 22 ------ .../docker-ubuntu-sshd/scripts/start | 11 --- .../docker/containers/gpuhorovod/Dockerfile | 41 ---------- .../containers/gpuhorovod/description.txt | 1 - .../containers/gpuhorovod/scripts/start | 11 --- server/docker/containers/ubuntuvnc/Dockerfile | 61 --------------- server/docker/containers/ubuntuvnc/README.md | 72 ------------------ .../containers/ubuntuvnc/description.txt | 1 - .../docker/containers/ubuntuvnc/scripts/start | 11 --- 30 files changed, 16 insertions(+), 598 deletions(-) create mode 160000 Akilan1999/docker-ubuntu-sshdserver/docker/containers/Akilan1999/docker-ubuntu-sshd delete mode 100644 client/trackcontainers/.gitkeep delete mode 100644 p2p/iptable/.gitkeep create mode 100644 server/.DS_Store create mode 100644 server/docker/.DS_Store delete mode 100644 server/docker/containers/README delete mode 100644 server/docker/containers/cpuhorovod/Dockerfile delete mode 100644 server/docker/containers/cpuhorovod/description.txt delete mode 100644 server/docker/containers/cpuhorovod/scripts/start delete mode 100644 server/docker/containers/docker-ubuntu-sshd-x11/Dockerfile delete mode 100644 server/docker/containers/docker-ubuntu-sshd-x11/README.md delete mode 100644 server/docker/containers/docker-ubuntu-sshd-x11/description.txt delete mode 100644 server/docker/containers/docker-ubuntu-sshd-x11/ports.json delete mode 100644 server/docker/containers/docker-ubuntu-sshd-x11/scripts/start delete mode 100644 server/docker/containers/docker-ubuntu-sshd/Dockerfile delete mode 100644 server/docker/containers/docker-ubuntu-sshd/README.md delete mode 100644 server/docker/containers/docker-ubuntu-sshd/description.txt delete mode 100644 server/docker/containers/docker-ubuntu-sshd/ports.json delete mode 100644 server/docker/containers/docker-ubuntu-sshd/scripts/start delete mode 100644 server/docker/containers/gpuhorovod/Dockerfile delete mode 100644 server/docker/containers/gpuhorovod/description.txt delete mode 100644 server/docker/containers/gpuhorovod/scripts/start delete mode 100644 server/docker/containers/ubuntuvnc/Dockerfile delete mode 100644 server/docker/containers/ubuntuvnc/README.md delete mode 100644 server/docker/containers/ubuntuvnc/description.txt delete mode 100644 server/docker/containers/ubuntuvnc/scripts/start diff --git a/.DS_Store b/.DS_Store index 987eb7eacc19e9e205575d2c0c29c58a0428c6b2..5a9b600b6ef65102eabbeb796ee79b7ef0cf98d0 100644 GIT binary patch literal 8196 zcmeI1PjAyO7{*_(U7J#db^vJykRoxN#@Ns##HH(>!z38eTHpYvByG2arAd{vtEOqF zXZQ|$1+IJ&J_dJA@Vs_5#qM^S(4^T?{JQb;*v`*RGG|02>XZIcq7@=?aBy6%BD*AU zJs)#vAv^OBQNT~MPXQg!8lBK^PHj(E0+xU!UICX3)CnCK>K}8xG-!u9=)HsZns)JZ zp@(tq>pt>w~6|AWi`fBn@zjRG8i@c+R z`QdeP%(>AzlekjrPt#HMg!$=@!XO>5um2JYh2mnV?3A6V^RayxPupW}JW17)-m%_Zx9E_JU}TNJG#cK=R>T5cT6}J)T7URC?R0!l^iw?()j%>BiRj zs=N7Y>ul9MeZGP6v(2ruvx@WJ@sk&O-J@_A#b2?`kwo@q2Q8`J7dhWI+V%I-Ug%?t zY|tu>+esA05kD-rt|Axp2`>gf#tmuSl5$bx(ZOVsC2)NN3aY74?$ zumo-#0a0wWn{^E9{3U0OkoVdyj!!r^v2LcKv>=n)aYVTtN4)rlA<8bK?5SmOrXtQD S{r3+6USi+>lDy4sGl73&oVt+! delta 177 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGqg`E6q~50D9Qw6GlIqP8HyOPQ;L&wlJX}O zs!ukMVKHN8NCXO&FqAVON#^GO)ia<;l?4~&<>cq3gG}34=)}I5or6P=8OQ?y0d64S k3dHRj3%@f@=9e*KWSDHjBh3S}8{{646B#zg^UPre0KR%5jsO4v diff --git a/.gitignore b/.gitignore index 6397c95..801c83c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ generate/Test #ignore windows exe files *.exe dist/ + +# ignore docker image files +server/docker/containers/ diff --git a/Akilan1999/docker-ubuntu-sshdserver/docker/containers/Akilan1999/docker-ubuntu-sshd b/Akilan1999/docker-ubuntu-sshdserver/docker/containers/Akilan1999/docker-ubuntu-sshd new file mode 160000 index 0000000..fbee2ad --- /dev/null +++ b/Akilan1999/docker-ubuntu-sshdserver/docker/containers/Akilan1999/docker-ubuntu-sshd @@ -0,0 +1 @@ +Subproject commit fbee2ad6a9626b73dc34299cfa37e7db63230505 diff --git a/client/trackcontainers/.gitkeep b/client/trackcontainers/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/cmd/action.go b/cmd/action.go index 596ed79..c9fad39 100644 --- a/cmd/action.go +++ b/cmd/action.go @@ -135,7 +135,7 @@ var CliAction = func(ctx *cli.Context) error { //Sets default paths to the config file if SetDefaultConfig { - err := generate.SetDefaults("P2PRC") + err := generate.SetDefaults("P2PRC", false) if err != nil { fmt.Print(err) } diff --git a/config/generate/generateFiles.go b/config/generate/generateFiles.go index 41cb816..c9323b7 100644 --- a/config/generate/generateFiles.go +++ b/config/generate/generateFiles.go @@ -2,6 +2,7 @@ package generate import ( "github.com/Akilan1999/p2p-rendering-computation/p2p" + "github.com/go-git/go-git/v5" "os" ) @@ -100,14 +101,18 @@ func GenerateDockerFiles() (err error) { return err } } - //if _, err = os.Stat(path + "server/docker/ip_table.json"); os.IsNotExist(err) { - // _, err = os.Create(path + "p2p/iptable/ip_table.json") - // if err != nil { - // return err - // } - //} } + + // Clone base docker image + _, err = git.PlainClone(path+"server/docker/containers/docker-ubuntu-sshd", false, &git.CloneOptions{ + URL: "https://github.com/Akilan1999/docker-ubuntu-sshd", + Progress: os.Stdout, + }) + if err != nil { + return err + } + return } diff --git a/p2p/iptable/.gitkeep b/p2p/iptable/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/server/.DS_Store b/server/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2575f6f5d5e6c2341820a29cd0b5bc807d4b5ae4 GIT binary patch literal 6148 zcmeHK&u`N(6n^eXmr{Xx0BIMbNL;5;wy6@@C6saCN)Q|Xm81zJT8OLsSPxaDoVWjh ze}OB13I7Wx_@3=a%^I$#LVnWo=h*MFpT8z{O+;c+MNf%_MC8C3yLVBv827VpS;w?6 zPpC0s%3q~&7N#=Xina|_0jt2SDZt-uk0O#ZqYG+&zq~0thade`rc!UjhRb4MzV#pB zB29{NH2Ntzd)+&|eP`bpI3N8la_N^rSrwBYf6q^Eq)fw`dJw)%;^lPs;DyY}Aj#rf z5t1lI$cJ}H7RlvAR#{XiuCF_szSEx$4_2$=@#xS!IUTPL-PN;W)K5>w>vi9G`1r}$ z>*+=MHIr8=YZBO>l-)CU1J|fD))W=9G(?U}Xmniqd6vp-j&|-F&>W&IsGy2UN+_ix zZrRxWSibM@rhId7s-Vf_%Y@wTUn28v3it)HEWIibt|@yQSp=0r7BzU z@9=6jbGnaw7FesK058pyKC6|-ZL_IY=iA1sgQ2YLk^<(Na0a`Sl+DE|U=`R21$cjO z;f$WaTBF)JP^c>au#0A8sPnnU9M_;{u-1qkn9x+9rV4Y#5Sos5*Ti`SYmJ&t!dyOt znOT?{icqs-d{>2&@HE=eDqt08DzK*?hkX9O{QLdCNwQB?0jt1&rGV(3`{xrZ$(*fQ xi{rD_g@1yxaa^rYQBauUSXKBaK7cDjpUV}XXRy|Y7MT4bpk%OxRp6g0@CWv6uwDQF literal 0 HcmV?d00001 diff --git a/server/docker/.DS_Store b/server/docker/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8f300a789687d0e4883b3bf2fce3412e792c70ad GIT binary patch literal 6148 zcmeHKL2uJA6n^f?mTm%72&7$*B5@s~Y*Qt~B`fWL1D6HC0Z?h0utm$_s!7*FRVioq z5BvqL{1W~PC-|Q2p`^`@LxB7$`*ZB~+3^?qxh5jfn}tt^+C=0aF*di6)fl&PTC;|! zVV+QZj3}m*BAQaR=4~si0#<>)O#$A!+cYMLeVbEh|Gr4%I7noGb`B25Nc%sPp>z!= zm}e8i`4&u)ILkYo@1n8MytTRIY&kp5d;d(%{d|REDbZo^>u^Oa$3Xo?qYG!?d-XSN8RO~yLftl^3h>; zxokQ2A3lC|GCWT%Qu#@}Jqg4sWw#Ap!Dkd|^$4?Z65w5#SnF`b?$asBs-)rpyvmZ^sW68491+53PBmQmy25pSb0-MCk}g)p;%Sw~x{LRUDZ%ei z-N(n68J(^4@nfYAhhAdA@ccfizM`ssgOwmom<@Kesyg;>f(+Ze9 z;OyM=K(>FYfK}k1Q-I@xi^S*|EHtXnflOTifK5~@Lz(|BFvm6M87wrS1tv5VsHwtS zF@&b0-Zg%n!9t^^lQ5SLVMZ3_h9cDH=-*ZDBs`5aw+dJVstRoA$2On;gX{1ARg!(O z3RngHD+NTe@ArF{k~v$~CdX&3i}V4Bjr|IZih|4>$Ev_b@h*}ww7FaWdIk%PsDar( O0!jv(Sq1*60>1$1khi4( literal 0 HcmV?d00001 diff --git a/server/docker/containers/README b/server/docker/containers/README deleted file mode 100644 index a5ada78..0000000 --- a/server/docker/containers/README +++ /dev/null @@ -1,7 +0,0 @@ -Containers -=========== - -Structure - |_ Containers - |_ (To ensure the name is the same as the tag name) - |_ DockerFile \ No newline at end of file diff --git a/server/docker/containers/cpuhorovod/Dockerfile b/server/docker/containers/cpuhorovod/Dockerfile deleted file mode 100644 index 90e8f43..0000000 --- a/server/docker/containers/cpuhorovod/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -from horovod/horovod-cpu -# Switch to root user to install additional software -USER 0 - - -# Make sure we don't get notifications we can't answer during building. -env DEBIAN_FRONTEND noninteractive - -run apt-get -q -y update; apt-get -q -y upgrade -run apt install net-tools - -# Prepare scripts and configs -add ./scripts/start /start - - -# Set root password -run echo 'root:password' >> /root/passwdfile - - -# Create user and it's password -run useradd -m -G sudo master && \ - echo 'master:password' >> /root/passwdfile - - -# Apply root password -run chpasswd -c SHA512 < /root/passwdfile && \ - rm /root/passwdfile - - -# Port 22 is used for ssh -expose 22 - - -# Assign /data as static volume. -volume ["/data"] - - -# Fix all permissions -run chmod +x /start - - -# Starting sshd -cmd ["/start"] \ No newline at end of file diff --git a/server/docker/containers/cpuhorovod/description.txt b/server/docker/containers/cpuhorovod/description.txt deleted file mode 100644 index 7a100b7..0000000 --- a/server/docker/containers/cpuhorovod/description.txt +++ /dev/null @@ -1 +0,0 @@ -Running official horovod dockerfile cpu version diff --git a/server/docker/containers/cpuhorovod/scripts/start b/server/docker/containers/cpuhorovod/scripts/start deleted file mode 100644 index 9dde9d0..0000000 --- a/server/docker/containers/cpuhorovod/scripts/start +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# docker-ubuntu-sshd /start script -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# ----------------------------------------------------------------------------- - - -# Run OpenSSH server in daemon mode -/usr/sbin/sshd -D \ No newline at end of file diff --git a/server/docker/containers/docker-ubuntu-sshd-x11/Dockerfile b/server/docker/containers/docker-ubuntu-sshd-x11/Dockerfile deleted file mode 100644 index a3628ab..0000000 --- a/server/docker/containers/docker-ubuntu-sshd-x11/Dockerfile +++ /dev/null @@ -1,61 +0,0 @@ -# ----------------------------------------------------------------------------- -# This is base image of Ubuntu LTS with SSHD service. -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# Require: Docker (http://www.docker.io/) -# ----------------------------------------------------------------------------- - - -# Base system is the latest LTS version of Ubuntu. -# from consol/ubuntu-xfce-vnc - -# due to dependency issues vnc is still work in progress -from ubuntu:20.04 - -# Switch to root user to install additional software -USER 0 - - -# Make sure we don't get notifications we can't answer during building. -env DEBIAN_FRONTEND noninteractive - - -# Prepare scripts and configs -add ./scripts/start /start - - -# Download and install everything from the repos. -run apt-get -q -y update; apt-get -q -y upgrade && \ - apt-get -q -y install sudo openssh-server && \ - mkdir /var/run/sshd - - -# Set root password -run echo 'root:password' >> /root/passwdfile - - -# Create user and it's password -run useradd -m -G sudo master && \ - echo 'master:password' >> /root/passwdfile - - -# Apply root password -run chpasswd -c SHA512 < /root/passwdfile && \ - rm /root/passwdfile - - -# Port 22 is used for ssh -expose 22 - - -# Assign /data as static volume. -volume ["/data"] - - -# Fix all permissions -run chmod +x /start - - -# Starting sshd -cmd ["/start"] diff --git a/server/docker/containers/docker-ubuntu-sshd-x11/README.md b/server/docker/containers/docker-ubuntu-sshd-x11/README.md deleted file mode 100644 index ee62e54..0000000 --- a/server/docker/containers/docker-ubuntu-sshd-x11/README.md +++ /dev/null @@ -1,72 +0,0 @@ -Ubuntu LTS with SSH (Docker) -========= - -A Docker file to build a [docker.io] base container with Ubuntu LTS and a sshd service -[docker.io]: http://docker.io -Nice and easy way to get any server up and running using docker - - -Instructions ------------ - - Install Docker first. - Read [installation instructions] (http://docs.docker.io/en/latest/installation/). - - - - Clone this repository: - - `$ git clone https://github.com/art567/docker-ubuntu-sshd.git` - - - - Enter local directory: - - `$ cd docker-ubuntu-sshd` - - - Change passwords in Dockerfile: - - `$ vi Dockerfile` - - - Build the container: - - `$ sudo docker build -t art567/ubuntu .` - - - - Run the container: - - `$ sudo docker run -d=true --name=ubuntu --restart=always -p=2222:22 -v=/opt/data:/data art567/ubuntu /start` - - - - Your container will start and bind ssh to 2222 port. - - - - Find your local IP Address: - - `$ ifconfig` - - - - Connect to the SSH server: - - `$ ssh root@ -p 2222` - - - - If you don't want to deal with root: - - `$ ssh master@ -p 2222` - - -**VERY IMPORTANT!!!** ------------ - - **Don't forget to change passwords in Dockerfile before building image!** - - -Versions ------------ -Some branches represents Ubuntu versions. - -Branch `master` is always represented by latest Ubuntu LTS - - For example: - - 12.04 - Ubuntu 12.04 LTS - - 14.04 - Ubuntu 14.04 LTS - - 16.04 - Ubuntu 16.04 LTS - diff --git a/server/docker/containers/docker-ubuntu-sshd-x11/description.txt b/server/docker/containers/docker-ubuntu-sshd-x11/description.txt deleted file mode 100644 index dc5b3fa..0000000 --- a/server/docker/containers/docker-ubuntu-sshd-x11/description.txt +++ /dev/null @@ -1 +0,0 @@ -Simple Ubuntu 20.04 image \ No newline at end of file diff --git a/server/docker/containers/docker-ubuntu-sshd-x11/ports.json b/server/docker/containers/docker-ubuntu-sshd-x11/ports.json deleted file mode 100644 index 520565b..0000000 --- a/server/docker/containers/docker-ubuntu-sshd-x11/ports.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "Port": [ - { - "PortName": "SSH", - "InternalPort": 22, - "Type": "tcp", - "Description": "SSH Port" - }, - { - "PortName": "VNC", - "InternalPort": 5900, - "Type": "tcp", - "Description": "VNC port" - } - ] -} \ No newline at end of file diff --git a/server/docker/containers/docker-ubuntu-sshd-x11/scripts/start b/server/docker/containers/docker-ubuntu-sshd-x11/scripts/start deleted file mode 100644 index 3c9caa9..0000000 --- a/server/docker/containers/docker-ubuntu-sshd-x11/scripts/start +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# docker-ubuntu-sshd /start script -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# ----------------------------------------------------------------------------- - - -# Run OpenSSH server in daemon mode -/usr/sbin/sshd -D - -# Running x11 server with password - diff --git a/server/docker/containers/docker-ubuntu-sshd/Dockerfile b/server/docker/containers/docker-ubuntu-sshd/Dockerfile deleted file mode 100644 index a3628ab..0000000 --- a/server/docker/containers/docker-ubuntu-sshd/Dockerfile +++ /dev/null @@ -1,61 +0,0 @@ -# ----------------------------------------------------------------------------- -# This is base image of Ubuntu LTS with SSHD service. -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# Require: Docker (http://www.docker.io/) -# ----------------------------------------------------------------------------- - - -# Base system is the latest LTS version of Ubuntu. -# from consol/ubuntu-xfce-vnc - -# due to dependency issues vnc is still work in progress -from ubuntu:20.04 - -# Switch to root user to install additional software -USER 0 - - -# Make sure we don't get notifications we can't answer during building. -env DEBIAN_FRONTEND noninteractive - - -# Prepare scripts and configs -add ./scripts/start /start - - -# Download and install everything from the repos. -run apt-get -q -y update; apt-get -q -y upgrade && \ - apt-get -q -y install sudo openssh-server && \ - mkdir /var/run/sshd - - -# Set root password -run echo 'root:password' >> /root/passwdfile - - -# Create user and it's password -run useradd -m -G sudo master && \ - echo 'master:password' >> /root/passwdfile - - -# Apply root password -run chpasswd -c SHA512 < /root/passwdfile && \ - rm /root/passwdfile - - -# Port 22 is used for ssh -expose 22 - - -# Assign /data as static volume. -volume ["/data"] - - -# Fix all permissions -run chmod +x /start - - -# Starting sshd -cmd ["/start"] diff --git a/server/docker/containers/docker-ubuntu-sshd/README.md b/server/docker/containers/docker-ubuntu-sshd/README.md deleted file mode 100644 index ee62e54..0000000 --- a/server/docker/containers/docker-ubuntu-sshd/README.md +++ /dev/null @@ -1,72 +0,0 @@ -Ubuntu LTS with SSH (Docker) -========= - -A Docker file to build a [docker.io] base container with Ubuntu LTS and a sshd service -[docker.io]: http://docker.io -Nice and easy way to get any server up and running using docker - - -Instructions ------------ - - Install Docker first. - Read [installation instructions] (http://docs.docker.io/en/latest/installation/). - - - - Clone this repository: - - `$ git clone https://github.com/art567/docker-ubuntu-sshd.git` - - - - Enter local directory: - - `$ cd docker-ubuntu-sshd` - - - Change passwords in Dockerfile: - - `$ vi Dockerfile` - - - Build the container: - - `$ sudo docker build -t art567/ubuntu .` - - - - Run the container: - - `$ sudo docker run -d=true --name=ubuntu --restart=always -p=2222:22 -v=/opt/data:/data art567/ubuntu /start` - - - - Your container will start and bind ssh to 2222 port. - - - - Find your local IP Address: - - `$ ifconfig` - - - - Connect to the SSH server: - - `$ ssh root@ -p 2222` - - - - If you don't want to deal with root: - - `$ ssh master@ -p 2222` - - -**VERY IMPORTANT!!!** ------------ - - **Don't forget to change passwords in Dockerfile before building image!** - - -Versions ------------ -Some branches represents Ubuntu versions. - -Branch `master` is always represented by latest Ubuntu LTS - - For example: - - 12.04 - Ubuntu 12.04 LTS - - 14.04 - Ubuntu 14.04 LTS - - 16.04 - Ubuntu 16.04 LTS - diff --git a/server/docker/containers/docker-ubuntu-sshd/description.txt b/server/docker/containers/docker-ubuntu-sshd/description.txt deleted file mode 100644 index dc5b3fa..0000000 --- a/server/docker/containers/docker-ubuntu-sshd/description.txt +++ /dev/null @@ -1 +0,0 @@ -Simple Ubuntu 20.04 image \ No newline at end of file diff --git a/server/docker/containers/docker-ubuntu-sshd/ports.json b/server/docker/containers/docker-ubuntu-sshd/ports.json deleted file mode 100644 index e24ff6a..0000000 --- a/server/docker/containers/docker-ubuntu-sshd/ports.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "Port": [ - { - "PortName": "SSH", - "InternalPort": 22, - "Type": "tcp", - "Description": "SSH Port" - }, - { - "PortName": "NoVNC", - "InternalPort": 5901, - "Type": "tcp", - "Description": "NoVNC port" - }, - { - "PortName": "NoVNC", - "InternalPort": 6081, - "Type": "tcp", - "Description": "NoVNC port" - } - ] -} \ No newline at end of file diff --git a/server/docker/containers/docker-ubuntu-sshd/scripts/start b/server/docker/containers/docker-ubuntu-sshd/scripts/start deleted file mode 100644 index 5286196..0000000 --- a/server/docker/containers/docker-ubuntu-sshd/scripts/start +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# docker-ubuntu-sshd /start script -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# ----------------------------------------------------------------------------- - - -# Run OpenSSH server in daemon mode -/usr/sbin/sshd -D diff --git a/server/docker/containers/gpuhorovod/Dockerfile b/server/docker/containers/gpuhorovod/Dockerfile deleted file mode 100644 index ed75ef6..0000000 --- a/server/docker/containers/gpuhorovod/Dockerfile +++ /dev/null @@ -1,41 +0,0 @@ -from horovod/horovod -# Switch to root user to install additional software -USER 0 - - -# Make sure we don't get notifications we can't answer during building. -env DEBIAN_FRONTEND noninteractive - - -# Prepare scripts and configs -add ./scripts/start /start - - -# Set root password -run echo 'root:password' >> /root/passwdfile - - -# Create user and it's password -run useradd -m -G sudo master && \ - echo 'master:password' >> /root/passwdfile - - -# Apply root password -run chpasswd -c SHA512 < /root/passwdfile && \ - rm /root/passwdfile - - -# Port 22 is used for ssh -expose 22 - - -# Assign /data as static volume. -volume ["/data"] - - -# Fix all permissions -run chmod +x /start - - -# Starting sshd -cmd ["/start"] \ No newline at end of file diff --git a/server/docker/containers/gpuhorovod/description.txt b/server/docker/containers/gpuhorovod/description.txt deleted file mode 100644 index 7a100b7..0000000 --- a/server/docker/containers/gpuhorovod/description.txt +++ /dev/null @@ -1 +0,0 @@ -Running official horovod dockerfile cpu version diff --git a/server/docker/containers/gpuhorovod/scripts/start b/server/docker/containers/gpuhorovod/scripts/start deleted file mode 100644 index 9dde9d0..0000000 --- a/server/docker/containers/gpuhorovod/scripts/start +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# docker-ubuntu-sshd /start script -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# ----------------------------------------------------------------------------- - - -# Run OpenSSH server in daemon mode -/usr/sbin/sshd -D \ No newline at end of file diff --git a/server/docker/containers/ubuntuvnc/Dockerfile b/server/docker/containers/ubuntuvnc/Dockerfile deleted file mode 100644 index d253d87..0000000 --- a/server/docker/containers/ubuntuvnc/Dockerfile +++ /dev/null @@ -1,61 +0,0 @@ -# ----------------------------------------------------------------------------- -# This is base image of Ubuntu LTS with SSHD service. -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# Require: Docker (http://www.docker.io/) -# ----------------------------------------------------------------------------- - - -# Base system is the latest LTS version of Ubuntu. -# from consol/ubuntu-xfce-vnc - -# due to dependency issues vnc is still work in progress -from dorowu/ubuntu-desktop-lxde-vnc - -# Switch to root user to install additional software -USER 0 - - -# Make sure we don't get notifications we can't answer during building. -env DEBIAN_FRONTEND noninteractive - - -# Prepare scripts and configs -add ./scripts/start /start - - -# Download and install everything from the repos. -run apt-get -q -y update; apt-get -q -y upgrade && \ - apt-get -q -y install sudo openssh-server && \ - mkdir /var/run/sshd - - -# Set root password -run echo 'root:password' >> /root/passwdfile - - -# Create user and it's password -run useradd -m -G sudo master && \ - echo 'master:password' >> /root/passwdfile - - -# Apply root password -run chpasswd -c SHA512 < /root/passwdfile && \ - rm /root/passwdfile - - -# Port 22 is used for ssh -expose 22 - - -# Assign /data as static volume. -volume ["/data"] - - -# Fix all permissions -run chmod +x /start - - -# Starting sshd -cmd ["/start"] diff --git a/server/docker/containers/ubuntuvnc/README.md b/server/docker/containers/ubuntuvnc/README.md deleted file mode 100644 index ee62e54..0000000 --- a/server/docker/containers/ubuntuvnc/README.md +++ /dev/null @@ -1,72 +0,0 @@ -Ubuntu LTS with SSH (Docker) -========= - -A Docker file to build a [docker.io] base container with Ubuntu LTS and a sshd service -[docker.io]: http://docker.io -Nice and easy way to get any server up and running using docker - - -Instructions ------------ - - Install Docker first. - Read [installation instructions] (http://docs.docker.io/en/latest/installation/). - - - - Clone this repository: - - `$ git clone https://github.com/art567/docker-ubuntu-sshd.git` - - - - Enter local directory: - - `$ cd docker-ubuntu-sshd` - - - Change passwords in Dockerfile: - - `$ vi Dockerfile` - - - Build the container: - - `$ sudo docker build -t art567/ubuntu .` - - - - Run the container: - - `$ sudo docker run -d=true --name=ubuntu --restart=always -p=2222:22 -v=/opt/data:/data art567/ubuntu /start` - - - - Your container will start and bind ssh to 2222 port. - - - - Find your local IP Address: - - `$ ifconfig` - - - - Connect to the SSH server: - - `$ ssh root@ -p 2222` - - - - If you don't want to deal with root: - - `$ ssh master@ -p 2222` - - -**VERY IMPORTANT!!!** ------------ - - **Don't forget to change passwords in Dockerfile before building image!** - - -Versions ------------ -Some branches represents Ubuntu versions. - -Branch `master` is always represented by latest Ubuntu LTS - - For example: - - 12.04 - Ubuntu 12.04 LTS - - 14.04 - Ubuntu 14.04 LTS - - 16.04 - Ubuntu 16.04 LTS - diff --git a/server/docker/containers/ubuntuvnc/description.txt b/server/docker/containers/ubuntuvnc/description.txt deleted file mode 100644 index dc5b3fa..0000000 --- a/server/docker/containers/ubuntuvnc/description.txt +++ /dev/null @@ -1 +0,0 @@ -Simple Ubuntu 20.04 image \ No newline at end of file diff --git a/server/docker/containers/ubuntuvnc/scripts/start b/server/docker/containers/ubuntuvnc/scripts/start deleted file mode 100644 index 5286196..0000000 --- a/server/docker/containers/ubuntuvnc/scripts/start +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# ----------------------------------------------------------------------------- -# docker-ubuntu-sshd /start script -# -# Authors: Art567 -# Updated: Sep 20th, 2015 -# ----------------------------------------------------------------------------- - - -# Run OpenSSH server in daemon mode -/usr/sbin/sshd -D