<div dir="ltr">Hi Stefano<div><br></div><div>Been a few days. I think I discovered what was wrong with your dockerfile... you were missing the installation part <br><br>perl Makefile.PL  <br><br>I made some improvements, including changes required for when you want the rest server to use GHRh37<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br>You can checkout the code here:  <a href="https://github.com/duartemolha/ensembl-rest-docker">https://github.com/duartemolha/ensembl-rest-docker</a><br><br>I have build it and it seems to be working fine now</div><div dir="ltr"><br></div><div dir="ltr">Once again thank you for pointing me in the right direction</div><div dir="ltr"><br></div><div dir="ltr">Duarte<table border="0" cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;font-family:proxima-nova-1,proxima-nova-2,Tahoma,Helvetica,Verdana,sans-serif;vertical-align:baseline;border-spacing:0px;color:rgb(51,51,51);line-height:18.2px"><tbody style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><tr style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline"><td style="padding:0px;border:0px;outline:0px;font-style:inherit;font-size:0px;font-family:inherit;vertical-align:baseline;width:auto;height:20px"><img src="https://about.me/t/sig?u=duarte" width="1" height="1" style="margin:0px;padding:0px;border:0px;outline:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;overflow:hidden"></td></tr></tbody></table></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 2 May 2023 at 16:06, Stefano Giorgetti <<a href="mailto:sgiorgetti@ebi.ac.uk">sgiorgetti@ebi.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hello Duarte,</p>
    <p>That's weird. It looks like the configuration is missing.</p>
    <p>I can suggest to</p>
    <ul>
      <li>run the container and log in with interactive session</li>
      <li>you should land at "/opt/ensembl-rest"; if not, "cd" into
        there</li>
      <li>check where a file "ensembl_rest.conf" is there or not (I
        guess not)</li>
      <li>assuming this file is missing</li>
      <ul>
        <li>cp ensembl_rest.conf.default ensembl_rest.conf</li>
        <li>you may want to change the default ensembl version (from 88
          to 109 ... or whatever you are interested in)</li>
        <ul>
          <li>you may need to install a text editor</li>
        </ul>
        <li>temporarily you may want to switch the debug mode on - pls,
          see
<a href="https://github.com/Ensembl/ensembl-rest/wiki/REST-Installation-and-Development" target="_blank">https://github.com/Ensembl/ensembl-rest/wiki/REST-Installation-and-Development</a>
          under section "Application Debugging"<br>
        </li>
        <li>./script/<a href="http://ensembl_rest_server.pl" target="_blank">ensembl_rest_server.pl</a> --port 80</li>
        <li>amend the Dockerfile to comprise these changes above and
          re-build the image</li>
        <li>pls, confirm my guessing was right ;-) ... or not :-(</li>
      </ul>
    </ul>
    <p>Best,</p>
    <p>S<br>
    </p>
    <div>On 02/05/2023 14:03, Duarte Molha
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Dear Stefano
        <div><br>
        </div>
        <div>I was able to build the image.<br>
          <br>
          but it does not run.<br>
          <br>
          you did not have this issue on your test?<br>
          <br>
          docker run ensembl-rest<br>
          Getopt::Long::Descriptive was configured with these ambiguous
          options: h<br>
          You must configure a default store type unless you use exactly
          one store plugin. at
          /usr/share/perl5/Catalyst/Plugin/ConfigLoader.pm line 101.<br>
          Compilation failed in require at
          /usr/share/perl5/Catalyst/Utils.pm line 309.</div>
        <div>
          <div>
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr"><br>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, 27 Apr 2023 at 16:20,
          Duarte Molha <<a href="mailto:duartemolha@gmail.com" target="_blank">duartemolha@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">Appreciate it Stefano<br>
            <br>
            I understand your concerns. I have a fast connection to the
            underlying database as it is all hosted in the same place. <br>
            This is not for general (public) consumption, only for
            internal use  <br>
            <br>
            But this is a great starting point
            <div><br>
            </div>
            <div>Many thanks</div>
            <div><br>
            </div>
            <div>Duarte<br clear="all">
              <div>
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr"><br>
                    </div>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </div>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Thu, 27 Apr 2023 at
              16:11, Stefano Giorgetti <<a href="mailto:sgiorgetti@ebi.ac.uk" target="_blank">sgiorgetti@ebi.ac.uk</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div>
                <p>Dear Duarte,</p>
                <p>Thanks for your email.</p>
                <p>From my perspective, the installation procedure is
                  (sort of) OK: there are a few minor inaccuracies (e.g.
                  expected directory structure, PERL5LIB setup) and
                  sub-optimal steps (e.g. Tabix, use of cpanm instead of
                  pre-compiled packages), but not essential ones.</p>
                <p>Carried it out, just in case, and can confirm I could
                  fire up a REST server instance in both a VM and Docker
                  container.<br>
                  TBH, I started from scratch, as not familiar with <a href="https://github.com/genomehubs/ensembl-rest-docker" target="_blank">https://github.com/genomehubs/ensembl-rest-docker</a></p>
                <p>This said, I am not sure I can bless and recommend
                  your approach.<br>
                  To achieve speed, you may also want to have fast
                  connection to the underlying DBs; not to mention good
                  tuning and configuration of the web server.<br>
                  Deployment of REST server in a Production environment
                  is not a trivial task.</p>
                <p>However, I am not aware of the specificities of your
                  use case(s) and environment, and can hardly advise.</p>
                <p>Finally, please find attached the Dockerfile I used,
                  which - although neither complete nor optimised - may
                  serve you as a reference.</p>
                <p>Best wishes,</p>
                <p>Stefano<br>
                </p>
                <p><br>
                </p>
                <div>On 25/04/2023 11:16, Duarte Molha wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div>I have tried unsuccessfully to create a
                        ENSEMBL REST server docker container to run
                        locally on my locally installed ensembl
                        database.</div>
                      <div><br>
                      </div>
                      <div>I tried to follow the instructions here:<br>
                        <br>
                        <a href="https://github.com/Ensembl/ensembl-rest/wiki/REST-Installation-and-Development" target="_blank">https://github.com/Ensembl/ensembl-rest/wiki/REST-Installation-and-Development</a><br>
                        <br>
                        It has not worked.<br>
                        <br>
                        The links for Catalyst are broken:</div>
                      <ul>
                        <li style="box-sizing:border-box"><a href="http://wiki.catalystframework.org/wiki/installation" rel="nofollow" style="box-sizing:border-box;background-color:transparent;text-decoration-line:none" target="_blank">http://wiki.catalystframework.org/wiki/installation</a> (basic)</li>
                        <li style="box-sizing:border-box;margin-top:0.25em"><a href="http://wiki.catalystframework.org/wiki/installingcatalyst" rel="nofollow" style="box-sizing:border-box;background-color:transparent;text-decoration-line:none" target="_blank">http://wiki.catalystframework.org/wiki/installingcatalyst</a> (advanced)<br>
                        </li>
                      </ul>
                      <div><font face="-apple-system,
                          BlinkMacSystemFont, Segoe UI, Noto Sans,
                          Helvetica, Arial, sans-serif, Apple Color
                          Emoji, Segoe UI Emoji" color="#1f2328"><span style="font-size:16px">I am able to install
                            it by using CPAN, but it might be part of
                            why I have been unsuccessful.<br>
                            <br>
                            I forked a github project that tries to do
                            this:<br>
                            <br>
                          </span></font><a href="https://github.com/genomehubs/ensembl-rest-docker" target="_blank">https://github.com/genomehubs/ensembl-rest-docker</a><br>
                        <font face="-apple-system, BlinkMacSystemFont,
                          Segoe UI, Noto Sans, Helvetica, Arial,
                          sans-serif, Apple Color Emoji, Segoe UI Emoji" color="#1f2328"><span style="font-size:16px"><br>
                            and modified it to work with human
                            species...<br>
                            <br>
                             </span></font><a href="https://github.com/duartemolha/ensembl-rest-docker" target="_blank">https://github.com/duartemolha/ensembl-rest-docker</a><br>
                        <br>
                        But it still is not working</div>
                      <div><br>
                      </div>
                      <div>Either some hints on what is wrong with my
                        code or (better yet) a pre-build version of your
                        rest server containerised would be
                        greatly appreciated<br>
                        <br>
                        The main reason I am doing this is because I am
                        developing some apps that I will want to do many
                        (fast) queries and I do not want to rely on
                        ensembl servers to get this as I will be rate
                        limited pretty sharpish :)<br>
                        <br>
                        Many thanks</div>
                      <div><br>
                      </div>
                      <div>Duarte</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
Dev mailing list    <a href="mailto:Dev@ensembl.org" target="_blank">Dev@ensembl.org</a>
Posting guidelines and subscribe/unsubscribe info: <a href="https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org" target="_blank">https://lists.ensembl.org/mailman/listinfo/dev_ensembl.org</a>
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a>
</pre>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>