mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-22 06:14:16 +00:00
Created 2. Docker Installation (textile)
parent
2f9d3e04e6
commit
92ddcba88e
1 changed files with 25 additions and 0 deletions
25
2.-Docker-Installation.textile
Normal file
25
2.-Docker-Installation.textile
Normal file
|
@ -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:
|
||||||
|
<pre><code>
|
||||||
|
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)]))
|
||||||
|
<generated code>
|
||||||
|
exit()
|
||||||
|
</code></pre>
|
||||||
|
# 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
|
Loading…
Reference in a new issue