erlexec | Execute and control OS processes from Erlang/OTP | Runtime Evironment library
kandi X-RAY | erlexec Summary
kandi X-RAY | erlexec Summary
Execute and control OS processes from Erlang/OTP. This project implements an Erlang application with a C++ port program that gives light-weight Erlang processes fine-grain control over execution of OS processes.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of erlexec
erlexec Key Features
erlexec Examples and Code Snippets
Community Discussions
Trending Discussions on erlexec
QUESTION
I have an executable created via mix release
which works just fine when I run it with start
on my local machine. However, my docker image crashes when trying to start
the executable and I don't know why.
ANSWER
Answered 2020-Nov-03 at 15:25This was a tricky one. After reading other similar questions (and the comments from @potibas and @Stefano) I found out what was happening.
So, as I have said, the release file works well on my local machine. This happens because in my local machine the files were being compiled to its operative system (OS).
Now, the docker VM does not have the same OS as my local machine. This matters because of this line:
COPY . /
Here I am copying everything from the workdir to docker. Including the binaries and dependencies compiled for my local machine's OS.
This caused the issue above mentioned.
SolutionThere are 2 possible solutions.
- Remove the
_build
anddeps
folders from the image after theCOPY
command, viaRUN rm -r _build
andRUN rm -r deps/
. - Add the mentioned folders as well as all the non-essential files to a
.dockerignore
file.
I personally opted for the second option, as it allows me to have a leaner image.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install erlexec
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page