1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-02-24 13:25:18 +00:00

Updated Docker Installation (textile)

FrancescoFdd5 2020-01-08 16:41:56 +01:00
parent fcb3184eed
commit c6a94c3768

@ -3,9 +3,13 @@ Install Docker(on host or guest) : "Docker Installation Guide":https://docs.dock
Steps: Steps:
# Install git, python # Install git, python
# <pre><code>git clone https://github.com/retspen/webvirtcloud.git</code></pre> <pre><code>sudo apt install git python</code></pre>
# <pre><code>cd webvirtcloud/</code></pre> # Clone from repository
# <pre><code>cp webvirtcloud/settings.py.template webvirtcloud/settings.py</code></pre> <pre><code>git clone https://github.com/retspen/webvirtcloud.git</code></pre>
# Move to the installation folder
<pre><code>cd webvirtcloud/</code></pre>
# Copy the setting.py file
<pre><code>cp webvirtcloud/settings.py.template webvirtcloud/settings.py</code></pre>
# Generate random number using Python: # Generate random number using Python:
<pre><code> <pre><code>
import random, string import random, string
@ -13,8 +17,10 @@ haystack = string.ascii_letters + string.digits + string.punctuation
print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)])) print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
</code></pre> </code></pre>
# copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = '' # copy 'generated code' and paste it to webvirtcloud/settings.py as SECRET_KEY = ''
# <pre><code>docker build -t retspen/webvirtcloud:0.1 .</code></pre> # Build the docker container
# <pre><code>docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1</code></pre> <pre><code>docker build -t retspen/webvirtcloud:0.1 .</code></pre>
# Start the container. *Use this command only for the first start*
<pre><code>docker run -d -p 80:80 -p 6080:6080 retspen/webvirtcloud:0.1</code></pre>
# Run browser enter host url with http. # Run browser enter host url with http.
# Login with: Username admin, password admin # Login with: Username admin, password admin
# Change your admin password # Change your admin password
@ -23,10 +29,10 @@ print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
*** ***
Additional Information: Additional Information:
# docker run command creates new container from base image. # Docker run command creates new container from base image.
# to stop docker container use: # To stop docker container use:
<pre><code>docker stop <container id></code></pre> <pre><code>docker stop <container id></code></pre>
# to get cointainer id use: # To get cointainer id use:
<pre><code>docker ps -a <pre><code>docker ps -a
or or
docker container ls</code></pre> docker container ls</code></pre>