-
Notifications
You must be signed in to change notification settings - Fork 7
[Recognizer] Add docker image #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e9eb083 to
514cae9
Compare
e402691 to
1781731
Compare
recognizer/config/config.exs
Outdated
| config :bundlex, :disable_precompiled_os_deps, apps: [:ex_libsrtp] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't you only disable the precompiled deps for MIX_ENV=prod. I guess the effect will be the same, but I won't have to install libsrtp for local development?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And btw, why we don't use the bundled libsrtp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bug when doing mix release, at least on Arch linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this and for testing I will just have a patch locally
| defp commit() do | ||
| case System.cmd("git", ["rev-parse", "--short", "HEAD"]) do | ||
| {hash, 0} -> "(#{String.trim(hash)})" | ||
| _ -> "" | ||
| try do | ||
| case System.cmd("git", ["rev-parse", "--short", "HEAD"]) do | ||
| {hash, 0} -> "(#{String.trim(hash)})" | ||
| _ -> "" | ||
| end | ||
| catch | ||
| _, _ -> "" | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to 'compute' this at compile time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. I also resigned from reading git commit as this is problematic in our docker build (we have Dockerfile nested in recognizer subdirectory so it doesnt have access to the .git dir in its parent)
recognizer/Dockerfile
Outdated
| # - https://hub.docker.com/_/debian?tab=tags&page=1&name=bullseye-20231009-slim - for the release image | ||
| # - https://pkgs.org/ - resource for finding needed packages | ||
| # - Ex: hexpm/elixir:1.16.0-erlang-26.2.1-debian-bullseye-20231009-slim | ||
| # |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete the final #
No description provided.