{"id":1600,"date":"2025-04-25T04:57:33","date_gmt":"2025-04-25T04:57:33","guid":{"rendered":"https:\/\/craftcookcode.com\/?p=1600"},"modified":"2025-04-25T04:57:34","modified_gmt":"2025-04-25T04:57:34","slug":"installing-animal-shelter-manager-3-on-docker-so-close","status":"publish","type":"post","link":"https:\/\/craftcookcode.com\/?p=1600","title":{"rendered":"Installing Animal Shelter Manager 3 on Docker &#8211; So close"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Intro &#8211; Do Unto what the Sister In-law commands<\/h2>\n\n\n\n<p>My sister in-law runs a dog training business in Queensland.  Part of her business is to track records of her canine clients &#8211; especially notes, vaccinations when they&#8217;re due, medical records and certificates.<\/p>\n\n\n\n<p>In a previous job she had experience with <a href=\"https:\/\/sheltermanager.com\/site\/en_home.html\" target=\"_blank\" rel=\"noopener\" title=\"\">Animal Shelter Manager<\/a> (ASM3).  She&#8217;s familiar with the features and interface to know it will cover her needs.<\/p>\n\n\n\n<p>Her business is not big enough to justify the price of the SaaS version of ASM3; so being the tech savvy (debatable) one the family &#8211; it was my task getting it up and running for her.  <\/p>\n\n\n\n<p>This lead to several nights of struggling, annoyance and failure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fitting the pieces together<\/h2>\n\n\n\n<p>To start off I wanted to get a demo version running so I can see what I need to do to deploy it for her. <\/p>\n\n\n\n<p>I checked out the ASM3 github repository and yes!  There is a <a href=\"https:\/\/github.com\/sheltermanager\/asm3\/tree\/master\/scripts\/docker\" target=\"_blank\" rel=\"noopener\" title=\"\">Dockerfile and a docker-compose.yml<\/a>.<\/p>\n\n\n\n<p>But no &#8211; it is six years old and didn&#8217;t work when I tried to build it.  I tried a couple of other miscellaneous sites offering hope; but to no avail.<\/p>\n\n\n\n<p>In the end after many google searches; I stumbled across <a href=\"https:\/\/lesbianunix.dev\/about\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/lesbianunix.dev\/about <\/a>with the following guide:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"928\" height=\"344\" src=\"https:\/\/craftcookcode.com\/wp-content\/uploads\/2025\/04\/docker_asm3_3-1.png\" alt=\"\" class=\"wp-image-1610\" srcset=\"https:\/\/craftcookcode.com\/wp-content\/uploads\/2025\/04\/docker_asm3_3-1.png 928w, https:\/\/craftcookcode.com\/wp-content\/uploads\/2025\/04\/docker_asm3_3-1-300x111.png 300w, https:\/\/craftcookcode.com\/wp-content\/uploads\/2025\/04\/docker_asm3_3-1-768x285.png 768w\" sizes=\"(max-width: 928px) 100vw, 928px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Apart from a domain name that was sure to set off all the &#8220;appropriate content&#8221; filters at work; with a few modifications <strong><em>I could get it to work<\/em><\/strong>.  Looking at the instructions from the author R\u00e6n; it is substantially different to the old Dockerfile and the instructions on the ASM3 home page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s build it<\/h2>\n\n\n\n<p>With my base working version &#8211; I cobbled up some Dockerfiles for ASM3 and postres and a docker compose file to tie them together:<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/jon-donker\/asm3_docker\">https:\/\/github.com\/jon-donker\/asm3_docker<\/a><\/p>\n\n\n\n<p><em>(Note that this is not a production version and have to obscure passwords etc in the final version)<\/em><\/p>\n\n\n\n<p>The containers build just fine and fire up with no problem.<\/p>\n\n\n\n<p>Vising the website<\/p>\n\n\n\n<p>http:\/\/localhost\/<\/p>\n\n\n\n<p>ASM3 redirects and builds the database &#8211; but then goes to a login page.  I enter the username and password; but it loops back to the login page.<\/p>\n\n\n\n<p>I think the problem lies with the base_url and service_url in <a href=\"https:\/\/github.com\/jon-donker\/asm3_docker\/blob\/main\/asm3\/asm3.conf\" title=\"\">asm3.conf<\/a>; possibly with http-asm3.conf settings.  <\/p>\n\n\n\n<p>Anyway &#8211; I logged a issue with ASM3 see if it is something simple that I missed; or maybe I have to start pulling apart of source code to find what it is trying to do.<\/p>\n\n\n\n<p>I&#8217;ll update this post when I find something.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Intro &#8211; Do Unto what the Sister In-law commands My sister in-law runs a dog training business in Queensland. Part of her business is to track&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1603,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[68],"tags":[82,81,65],"class_list":["post-1600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-animal-shelter-manager","tag-asm3","tag-docker"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1600"}],"version-history":[{"count":7,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1600\/revisions"}],"predecessor-version":[{"id":1611,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/posts\/1600\/revisions\/1611"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=\/wp\/v2\/media\/1603"}],"wp:attachment":[{"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craftcookcode.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}