Skip to content

Commit

Permalink
added docker image to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
GiuseppeBocci authored Sep 3, 2023
1 parent b623586 commit 0a9be1b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ <h1>Welcome to Web App NMTF_link’s documentation!<a class="headerlink" href="#
<li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="install.html#dowload-repo">Dowload repo</a></li>
<li class="toctree-l2"><a class="reference internal" href="install.html#install-requirements">Install requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="install.html#in-a-docker-container">In a Docker container</a></li>
<li class="toctree-l2"><a class="reference internal" href="install.html#run-app">Run app</a></li>
</ul>
</li>
Expand Down
42 changes: 21 additions & 21 deletions docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Installation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#dowload-repo">Dowload repo</a></li>
<li class="toctree-l2"><a class="reference internal" href="#install-requirements">Install requirements</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#on-your-computer">On your computer</a></li>
<li class="toctree-l3"><a class="reference internal" href="#in-a-docker-container">In a docker container</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#install-requirements">Install requirements</a></li>
<li class="toctree-l2"><a class="reference internal" href="#in-a-docker-container">In a Docker container</a></li>
<li class="toctree-l2"><a class="reference internal" href="#run-app">Run app</a></li>
</ul>
</li>
Expand Down Expand Up @@ -88,25 +85,23 @@
<h1>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h1>
<section id="dowload-repo">
<h2>Dowload repo<a class="headerlink" href="#dowload-repo" title="Permalink to this heading"></a></h2>
<p>You can downoal it from: <a class="reference external" href="https://github.com/DEIB-GECO/NMTF-web">https://github.com/DEIB-GECO/NMTF-web</a> .</p>
<p>You can downoal it from: <a class="reference external" href="https://github.com/DEIB-GECO/nmtf-web">https://github.com/DEIB-GECO/nmtf-web</a> .</p>
<p>Or you can download it using git command:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">git clone https://github.com/DEIB-GECO/NMTF-web</span>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">git clone https://github.com/DEIB-GECO/nmtf-web</span>
</pre></div>
</div>
<p>Or wget:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">wget --no-check-certificate --content-disposition https://github.com/DEIB-GECO/NMTF-web</span>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">wget --no-check-certificate --content-disposition https://github.com/DEIB-GECO/nmtf-web</span>
</pre></div>
</div>
<p>Or curl:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">curl -LJO https://github.com/DEIB-GECO/NMTF-web</span>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">curl -LJO https://github.com/DEIB-GECO/nmtf-web</span>
</pre></div>
</div>
</section>
<section id="install-requirements">
<h2>Install requirements<a class="headerlink" href="#install-requirements" title="Permalink to this heading"></a></h2>
<section id="on-your-computer">
<h3>On your computer<a class="headerlink" href="#on-your-computer" title="Permalink to this heading"></a></h3>
<p>You can install web_app_nmtf directly on you device:</p>
<p>You can install nmtf-web directly on you device:</p>
<ol class="arabic simple">
<li><p>Be sure to have python 3.7 installed or you can create and eviorment with conda:</p></li>
</ol>
Expand All @@ -123,21 +118,26 @@ <h3>On your computer<a class="headerlink" href="#on-your-computer" title="Permal
</div>
</section>
<section id="in-a-docker-container">
<h3>In a docker container<a class="headerlink" href="#in-a-docker-container" title="Permalink to this heading"></a></h3>
<p>Or youc can use a docker container:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker load &lt; nmtf_web.tar</span>
<h2>In a Docker container<a class="headerlink" href="#in-a-docker-container" title="Permalink to this heading"></a></h2>
<p>Or you can use a docker container:</p>
<ol class="arabic simple">
<li><p>Pull the image from DockerHub:</p></li>
</ol>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker pull giuseppebocci/nmtf-web:latest</span>
</pre></div>
</div>
<ol class="arabic simple" start="2">
<li><p>Create and start the container, mapping the port 5000 on the port 5000:</p></li>
</ol>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker run -p 5000:5000 --name container_name giuseppebocci/nmtf-web</span>
</pre></div>
</div>
</section>
</section>
<section id="run-app">
<h2>Run app<a class="headerlink" href="#run-app" title="Permalink to this heading"></a></h2>
<p>If you installed requirements with pip use:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">python app.py</span>
</pre></div>
</div>
<p>If you loaded the docker map the port 5000 and run a container using:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker run -p 5000:5000 nmtf_web</span>
<p>To start the Docker container after the first time:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">docker start -a container_name</span>
</pre></div>
</div>
</section>
Expand Down
Loading

0 comments on commit 0a9be1b

Please sign in to comment.