Skip to content
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

[Recognizer] Add docker image #27

Merged
merged 4 commits into from
Jul 19, 2024
Merged

[Recognizer] Add docker image #27

merged 4 commits into from
Jul 19, 2024

Conversation

mickel8
Copy link
Member

@mickel8 mickel8 commented Jul 15, 2024

No description provided.

@mickel8 mickel8 force-pushed the reco-docker branch 30 times, most recently from e9eb083 to 514cae9 Compare July 16, 2024 10:10
@mickel8 mickel8 force-pushed the reco-docker branch 14 times, most recently from e402691 to 1781731 Compare July 17, 2024 15:38
@mickel8 mickel8 marked this pull request as ready for review July 17, 2024 15:40
@mickel8 mickel8 requested review from sgfn and LVala July 17, 2024 15:40
@mickel8 mickel8 mentioned this pull request Jul 17, 2024
54 tasks
Comment on lines 58 to 59
config :bundlex, :disable_precompiled_os_deps, apps: [:ex_libsrtp]

Copy link
Member

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?

Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

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

@mickel8 mickel8 requested a review from LVala July 18, 2024 12:26
Comment on lines 18 to 26
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
Copy link
Member

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?

Copy link
Member Author

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)

# - 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
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete the final #

@mickel8 mickel8 merged commit b6396d4 into master Jul 19, 2024
3 checks passed
@mickel8 mickel8 deleted the reco-docker branch July 19, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants