<div dir="ltr">G'day all,<div><br></div><div>I am migrating a number of systems onto containers, and have hit a blocker with a solution with over 100 mapfiles, all of which refer to a database that is tucked away in a vpc in the cloud, with an a record for the connection host (ie <a href="http://host.cloud.com">host.cloud.com</a>)</div><div><br></div><div>I also have a copy of the database on a development machine (ie host.docker.internal)</div><div><br></div><div>For most everything else in the docker world (our web interfaces etc), I can set use env variables in the container system, but I'm really struggling with how best to do this in this case. I can do a url variable for the connection parameter, and specify the database in every call... seems pretty clumsy, and not good practice really. but my attempts to reference environment variables in the mapfile have been very unsuccessful.</div><div><br></div><div>Could I ask :</div><div><br></div><div>a) is there actually a simpler way to achieve the same outcome, that I have completely missed, or </div><div><br></div><div>b) does someone have an example of how to do it?</div><div><br></div><div>c) is this actually just not possible, and I should just get my sed out before every deployment commit?</div><div><br></div><div>cheers</div><div><br></div><div>Ben</div><div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div><a href="https://www.ausvet.com.au/" style="background-color:transparent;color:rgb(51,122,183);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1em" target="_blank"><img src="https://www.ausvet.com.au/email/footer.png" title="Ausvet Website" alt="Ausvet Logo" width="190" border="0" style="border:0px;vertical-align:middle;border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px"></a><br></div><br style="color:rgb(51,51,51);font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif;font-size:14px"><div style="font-weight:bold;font-size:13.5pt;color:grey;display:inline-block;font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif">Dr Ben Madin</div><span style="color:rgb(51,51,51);font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif;font-size:14px"><span> </span></span><div style="font-size:7.5pt;color:grey;display:inline-block;font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif">BVMS MVPHMgmt PhD MANZCVS GAICD</div><span style="color:rgb(51,51,51);font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif;font-size:14px"></span><div style="font-weight:bold;font-size:10pt;color:grey;font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif">Managing Director</div><div style="display:table;padding-top:10px;color:rgb(51,51,51);font-family:"Open Sans",Corbel,"Maven Pro",Helvetica,Arial,sans-serif;font-size:14px"><div style="display:table-row"><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">Mobile:</div><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey"><a href="tel:+61448887220" style="background-color:transparent;color:rgb(51,122,183);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1em;line-height:1em" target="_blank">+61 448 887 220</a></div></div><div style="display:table-row"><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">E-mail:</div><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey"><a href="mailto:ben@ausvet.com.au" style="background-color:transparent;color:rgb(51,122,183);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1em;line-height:1em" target="_blank">ben@ausvet.com.au</a></div></div><div style="display:table-row"><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">Website:</div><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey"><a href="https://www.ausvet.com.au/" style="background-color:transparent;color:rgb(51,122,183);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1em;line-height:1em" target="_blank">www.ausvet.com.au</a></div></div><div style="display:table-row"><span style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">Skype:<span> </span></span><span style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey"><a style="background-color:transparent;color:rgb(51,122,183);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:1em;line-height:1em">benmadin</a></span></div><div style="display:table-row"><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">Address:<span> </span></div><div style="display:table-cell;padding-right:10px;font-size:10pt;padding-bottom:0px;color:grey">5 Shuffrey Street<br>Fremantle, WA 6160<br>Australia</div></div></div></div></div></div></div>