LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 07-01-2023, 04:35 AM   #1
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
Question Compile a project for docker to a bare metal.


Hello there.

A "Open Source" project that is compiled inside a docker is it possible / advisable to compile it on bare metal?

I want to compile chirpstack.
 
Old 07-01-2023, 06:51 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
You'll have to read the docs.
https://www.chirpstack.io/docs/chirp...downloads.html

Docker is even in the makefile
https://github.com/chirpstack/chirps...aster/Makefile

You are probably going to have to pick that apart. Or contact the developer.
https://forum.chirpstack.io/
 
Old 07-01-2023, 10:15 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
I guess you can compile it, just you need to do that manually. Follow all the Dockerfile commands and Makefiles (looks not that trivial).
 
Old 07-01-2023, 03:02 PM   #4
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Original Poster
Rep: Reputation: 21
Thank you both

Quote:
Originally Posted by teckk View Post
You'll have to read the docs.
Docker is even in the makefile
https://github.com/chirpstack/chirps...aster/Makefile
Yes, I already tried cargo install cross but it fails. I need to learn about cargo I guess. :-/ In the meantime I will try the binaries suggestion.
Code:
Compiling dirs-sys v0.3.7
   Compiling nix v0.26.2
   Compiling nix v0.24.3
   Compiling which v4.4.0
   Compiling supports-color v1.3.1
   Compiling directories v4.0.1
   Compiling ctrlc v3.4.0
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ctrlc-3.4.0/src/lib.rs:63:31
   |
63 | static INIT_LOCK: Mutex<()> = Mutex::new(());
   |                               ^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0015`.
error: could not compile `ctrlc` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cross v0.2.5`, intermediate artifacts can be found at `/tmp/cargo-installq5cYY9`
 
  


Reply

Tags
bare metal, docker



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Renewed Interest in OpenStack Bare Metal Project Ironic, as Software Moves Closer to Hardware LXer Syndicated Linux News 0 08-07-2020 07:33 AM
using libc file in bare metal arm gcc compile embeddedlinux Linux - Newbie 1 10-10-2012 07:25 PM
PXE bare metal provisioning kd93088 Red Hat 1 08-07-2005 08:58 AM
Can I do a Bare Metal Restore? bob151 Linux - Software 1 04-14-2005 06:41 PM
Bare-metal restore problems with Redhat ES 3.0 robthky Linux - General 0 08-12-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration