Skip to content

Conversation

@mickel8
Copy link
Contributor

@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 LVala and sgfn July 17, 2024 15:40
@mickel8 mickel8 mentioned this pull request Jul 17, 2024
63 tasks
Comment on lines 58 to 59
config :bundlex, :disable_precompiled_os_deps, apps: [:ex_libsrtp]

Copy link
Contributor

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
Contributor

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
Contributor 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
Contributor 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
Contributor 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
@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.

4 participants