From 92ddcba88e8a058fc21f77c81bd6ffa7fca4afb0 Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 2 Jul 2019 09:53:26 +0300 Subject: [PATCH] Created 2. Docker Installation (textile) --- 2.-Docker-Installation.textile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 2.-Docker-Installation.textile diff --git a/2.-Docker-Installation.textile b/2.-Docker-Installation.textile new file mode 100644 index 0000000..04a97bd --- /dev/null +++ b/2.-Docker-Installation.textile @@ -0,0 +1,25 @@ +Install Docker : "Docker Installation Guide":https://docs.docker.com/install/linux/docker-ce/centos/ + +Steps: +# git clone https://github.com/retspen/webvirtcloud.git +# cd webvirtcloud/ +# cp webvirtcloud/settings.py.template webvirtcloud/settings.py +# Generate random number: +

+python
+Python 2.7.5 (default, Oct 30 2018, 23:45:53)
+[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
+Type "help", "copyright", "credits" or "license" for more information.
+import random, string
+haystack = string.ascii_letters + string.digits + string.punctuation
+print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
+
+exit()
+
+# copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = '' +# docker build -t retspen/webvirtcloud:0.1 . +# docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1 +# Run browser enter host url with http. +# Login with: Username admin, password admin +# Change your admin password +# Add new host \ No newline at end of file