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

--Release flag on cargo build command: #8

Open
darderik opened this issue Oct 4, 2022 · 1 comment
Open

--Release flag on cargo build command: #8

darderik opened this issue Oct 4, 2022 · 1 comment

Comments

@darderik
Copy link

darderik commented Oct 4, 2022

Hello! I was wondering if this was a common issue or not. Basically i'm trying to ultimate the compiling of netmuxd by using the command docker-compose run netmuxd and after fetching the rust image(successfully) i get this:
Screenshot (55)

command: sh -c "[ ! -f /build/netmuxd ] && cargo build --release --features zeroconf && cp target/debug/netmuxd /build/ && chmod +x /build/netmuxd || return 0"

@pikati985
Copy link

pikati985 commented Oct 18, 2022

Hey, I managed to figure out a way around this error. The zeroconf part is throwing an error, so I replaced the command line in the netmuxd section of docker-compose.yaml with the following

command: sh -c "[ ! -f /build/netmuxd ] && cargo build --release && cp -r target / build/ || return 0"

Note that this command also copies the entire target folder to build folder, AKA bin. I did this, since I got an error saying that the debug folder couldn't be found. So I just copied the whole target folder, and searched for the netmuxd file once finished. Then I just copied that out to the bin folder.

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

No branches or pull requests

2 participants