-
Notifications
You must be signed in to change notification settings - Fork 423
Description
Issue
I am trying to use a custom image to build my project. I have named the image builder
. It is locally on my machine and I refer to it in my Cross.toml file. (Eventually I will refer to an image stored in my private gitlab registry but that should make no difference I presume.)
$ docker images -a
d07de5b7450 17 hours ago 633MB builder
$ cat Cross.toml
[target.builder]
image = "builder:latest"
When I try to build the project with my custom image, I get following error:
$ cross build --target builder
sh: 1: xargo: Permission denied
If I try to run it as root just for the kicks:
$ sudo -s
$ cross build --target builder
sh: 1: xargo: not found
Context
I am using docker. The image my binary is going to be ran in uses different version of GLIB than my Ubuntu 19.04
machine that I want to compile the project on. The target image uses debian-strech
base.
I have a builder image for CI. At the moment, my during my development cycle I have to run that image and compile my project inside a container. And back on the host machine I run the project inside another docker container.
The error I was getting:
./myservice: /lib/x86_64-linux-gnu/libm.so.6: version 'GLIBC_2.29' not found (required by ./myservice)
I am hoping cross
could speed up my dev cycle.
Machine context
cross 0.1.16
xargo 0.3.16
cargo 1.37.0 (9edd08916 2019-08-02)