Day 02 - Companies [Phoenix/Elixir]

Progress

  • Application: Complete and tested with two endpoints
  • CI: Complete
  • Deployment:
    • Dev: In-progress
    • Production: In-Progress

Summary

Our elixir skills are quickening, and after a day of working with the new changes to Phoenix we created a new company service api in a matter of minutes, not hours. Within 30 minutes we had two endpoints built and a new template company service api in a matter of minutes, not hours. Within 30 minutes we had two endpoints built and a new template identified for building elixir non-umbrella apps.

Learnings of the day: Dockerizing new elixir apps.

At first we used edib but have recently moved to mix_docker. Following the tutorial was easy enough except for two gotchas.

  1. We leverage an internal library for our influxdb reporting, honeybadger.io reporting and service configuration. In order to handle that we need to copy our deps in our dockerfiles. Continuously we were bumping into a deps/ directory not error. Pro tip: .dockerignore has deps included so be sure to remove that line before trying to copy the deps directory in your Dockerfile script.

  2. Enviroment variables for the docker containers have a slightly different syntax for mixdocker. Use "${}" along side `System.getenv()`.

Our infrastructure team has been ready to assist with any blocking issues we have with deployments. Today they identified issues with our internal configuration file. From the issues found, there is a need for either a validator or application that can help craft these configurations, especially since there is domain knowledge of all the details.

Still working towards full deployment. I expected the first few days to be backed up but unlocked in the coming days.

Stay tuned for deployment updates.