I’m so irritated.
Remember when you were able to replace the battery in your cell phone without dealing with the time and expense of taking it to someone else? Well we’ve reached that crossroads with the “Dockerization” of OpenEMR. Until I’m able to wrap my head around the Docker system, I’m taking this time (as a non-developer) to vent my frustrations over what was once but no longer is a simple process. Remember when you could just make a change to a file and FTP it up to it’s target location? Those days are gone. I made a change to the patient_list.php module and got it to work on my local home grown non-Docker installation of OpenEMR on Ubuntu. Now it’s time to upload to the AWS Cloud version, but guess what? There are three possible locations where it would go:
/$ sudo find -name patient_list.php
./mnt/docker/overlay2/37cd64f405bd9a379a34e5db5aca0599f1b47bb055ae59cddd104829f9e51151/merged/var/www/localhost/htdocs/openemr/interface/reports/patient_list.php
./mnt/docker/overlay2/37cd64f405bd9a379a34e5db5aca0599f1b47bb055ae59cddd104829f9e51151/diff/var/www/localhost/htdocs/openemr/interface/reports/patient_list.php
./mnt/docker/overlay2/b97e4bfbc7085a53eed153efffedaeda7391068f252e81c61a0c59b1e0d912fa/diff/var/www/localhost/htdocs/openemr/interface/reports/patient_list.php
ubuntu@ip-10-0-1-129:/$
At this point I could be bold and just replace all three files via FTP, but in the back of my mind I can’t help but think I’m going to break something. After initially realizing I have no idea what to do, I crank up the old Google search and find this article:
In which are listed the steps for editing files in a Docker container:
- Find the container id of a running container
- Login inside the docker container using CONTAINER ID
- Update the package manager
- Install the required package vi, nano, vim etc.
- Edit the file using either vim or nano
- Install vim editor along with dockerfile
- Using remote editor by exposing the port 22
- Best practices for editing the file
Are you freaking kidding me? I feel like the guy at the fast-food restaurant who just wants to use the bathroom and instead of being able to get a token to open the door (put in coin, turn knob and you’re in) I’m presented with a touch-screen displaying - you guessed it - a Rubik’s cube! I know I’m sounding like a meat-headed sloth that wants to stick with the old way of doing things, but considering the cornucopia of responsibilities I have as an IT professional, this just adds one more layer of complexity to what I already have on my plate.
Once I get a fundamental understanding of the Docker system down pat I suspect I’ll change my tune, but for the sake of saving time, I guess that’s why we have services like Fiverr to pawn this work off onto people in the know. Just had to get this off my chest.
</end of rant grrrrrr arrrrgh>