<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Good reason for me to dive into the API!</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Zach Mullen <<a href="mailto:zach.mullen@kitware.com">zach.mullen@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, January 27, 2016 at 2:21 PM<br>
<span style="font-weight:bold">To: </span>Brian Chapman <<a href="mailto:brian.chapman@utah.edu">brian.chapman@utah.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:girder-users@public.kitware.com">girder-users@public.kitware.com</a>" <<a href="mailto:girder-users@public.kitware.com">girder-users@public.kitware.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Girder-users] Upgrading Girder and Girder Version<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Wed, Jan 27, 2016 at 3:52 PM, Brian E Chapman <span dir="ltr">
<<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Zach,</div>
<div><br>
</div>
<div>As an update, your instructions worked great except I needed to install git in order for the "girder-install web” step to work.</div>
</div>
</blockquote>
<div><br>
</div>
<div>Thanks, good to know.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div><br>
</div>
<div>A related question, is there a process to do a batch thumbnail generation for images that are in the repository?</div>
</div>
</blockquote>
<div><br>
</div>
<div>Not currently. It wouldn't be too difficult to write this in a plugin; you'd want to do a find() on the file model for anything that is an image mime type or has certain file extensions, and then run the thumbnailing on it.</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Brian</div>
<div><br>
</div>
<div><br>
</div>
<span><span class="">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Zach Mullen <<a href="mailto:zach.mullen@kitware.com" target="_blank">zach.mullen@kitware.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, January 27, 2016 at 11:14 AM<br>
<span style="font-weight:bold">To: </span>Brian Chapman <<a href="mailto:brian.chapman@utah.edu" target="_blank">brian.chapman@utah.edu</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:girder-users@public.kitware.com" target="_blank">girder-users@public.kitware.com</a>" <<a href="mailto:girder-users@public.kitware.com" target="_blank">girder-users@public.kitware.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Girder-users] Upgrading Girder and Girder Version<br>
</div>
<div><br>
</div>
</span>
<div>
<div class="h5">
<div>
<div>
<div dir="ltr">
<div>Hi Brian,</div>
<div><br>
</div>
1. The version will show up in the web UI on the front page, near the bottom of the text. For a programmatic way to query it, you can send a GET request to /api/v1/system/version, which contains the API version as well as the git sha1 hash.
<div><br>
</div>
<div>2. The upgrade process, as of right now, is very simple. It sounds like you're using pip, so you can simply run `pip install -U girder` and then run `girder-install web` afterward; that should rebuild everything. The web install step requires a somewhat
 new version of nodejs, so you might have to update that as well if yours is too old. The log files and girder.local.cfg file will be stored within the docker container, all other system metadata lives in the mongo database. If you are using a filesystem assetstore,
 the files in those assetstores will also be stored locally within the container filesystem.</div>
<div><br>
</div>
<div>3. The container hasn't been tested with all the plugins; installing PIL with all the required system libraries is not done in that image. Prior to running `pip install Pillow`, you should install the following:</div>
<br>
<div>
<pre style="color:rgb(0,0,0)">    apt-get install libjpeg-dev libfreetype6-dev zlib1g-dev libpng-dev</pre>
<pre style="color:rgb(0,0,0)"><br></pre>
<pre style="color:rgb(0,0,0)"><font face="arial,helvetica,sans-serif">HTH,</font></pre>
<pre style="color:rgb(0,0,0)"><br></pre>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<div dir="ltr">
<div>
<div dir="ltr">Zach Mullen<br>
Kitware, Inc.<br>
<a href="tel:919-869-8858" value="+19198698858" target="_blank">919-869-8858</a></div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Wed, Jan 27, 2016 at 12:53 PM, Brian E Chapman <span dir="ltr">
<<a href="mailto:Brian.Chapman@utah.edu" target="_blank">Brian.Chapman@utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi Everyone,</div>
<div><br>
</div>
<div>I’ve got a version of Girder running in a Docker container that I built several months ago using girder:latest. MongoDB is running in a separate linked Docker container. Three questions:</div>
<div><br>
</div>
<ol>
<li>I cannot see what version of Girder I’m running, either through the web interface or within the container (using pip freeze or importing girder and looking for the _<span style="font-style:italic">version</span>__ attribute. How do I determine the version
 of girder I’m running.</li><li>What is the appropriate way to upgrade girder? I don’t see anything on the admin page that indicates how to upgrade (e.g. Like in Midas). I’m tempted to create a new docker container. What data are actually stored in the docker container vs MongoDB? Just
 the log files?</li><li>I turned on the thumbnail generation plugin (version 0.1.0). When I went to generate a thumbnail, I get a PIL not installed message. When I connect to the container and try to install PIL I get a "jpeg is required unless explicitly disabled…” Has the container
 been tested with all the PlugIns? Curious of how much back tracking I need to do with the installation.</li></ol>
<span><font color="#888888">
<div>Brian</div>
<div><br>
</div>
</font></span></div>
<br>
_______________________________________________<br>
Girder-users mailing list<br>
<a href="mailto:Girder-users@public.kitware.com" target="_blank">Girder-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/girder-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/girder-users</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</span>
</body>
</html>