Hi Luke,
Thanks for your help!
I just tried out your solution and get back the following error: `groupmod: GID '1000' already exists`. Here is the workflow that I follow:
```
$ git clone https://github.com/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles.git
$ cd ~/sel4/seL4-CAmkES-L4v-dockerfiles/
$ git pull # Make sure to be up-to-date.
$ git checkout fix_rust
$ git pull # Make sure to be up-to-date. `fix_rust` is ahead of `master` so no missing commits.
$ ./build.sh -p -b camkes -s rust
$ make user CAMKES_IMG=camkes-rust HOST_DIR="~/sel4/"
```
I attached a more detailed log of the error I get. The command throwing this is (full command in log file):
`/bin/sh -c groupadd -fg ${GID} ${GROUP} [...] && chmod -R ug+rw /home/${UNAME}`
Does this look familiar to you?
Best,
Cedric
-----Original Message-----
From: Devel On Behalf Of devel-request@sel4.systems
Sent: samedi, 15 août 2020 04:00
To: devel@sel4.systems
Subject: Devel Digest, Vol 75, Issue 8
Send Devel mailing list submissions to
devel@sel4.systems
To subscribe or unsubscribe via the World Wide Web, visit
https://sel4.systems/lists/listinfo/devel?mc_phishing_protection_id=28047-bs...
or, via email, send a message with subject or body 'help' to
devel-request@sel4.systems
You can reach the person managing the list at
devel-owner@sel4.systems
When replying, please edit your Subject line so it is more specific than "Re: Contents of Devel digest..."
Today's Topics:
1. Re: Dockerfiles - "camkes-rust" Image
(Mondy, Luke (Data61, Kensington NSW))
----------------------------------------------------------------------
Message: 1
Date: Fri, 14 Aug 2020 06:29:32 +0000
From: "Mondy, Luke (Data61, Kensington NSW)"
To: "devel@sel4.systems"
Subject: Re: [seL4] Dockerfiles - "camkes-rust" Image
Message-ID:
Content-Type: text/plain; charset="us-ascii"
Hello Cedric,
Thanks for the report. I believe the best way to use the camkes-rust image is to run this:
make user CAMKES_IMG=camkes-rust
However, in saying that, it unfortunately does not perform quite as hoped. Because of the way the code is built, it ends up putting the Cargo/Rust content into /root/.cargo, which is inaccessible to you as a non-root user.
This is an oversight on my part, as unfortunately these interactive bits of the Dockerfile system don't get tested automatically.
I've made a PR on GitHub, which shows the fixes needed: https://github.com/SEL4PROJ/seL4-CAmkES-L4v-dockerfiles/pull/24
Note that the master branch has also been recently updated, so you may need to pick further commits from there (or simply pull them all down first) for things to work.
Let me know if that helps.
Cheers,
Luke
--
Dr Luke Mondy, Systems Administrator,
P +61 2 9490 5773 | https://ts.data61.csiro.au/?mc_phishing_protection_id=28047-bsrk3aadu815grd7...
Trustworthy Systems | DATA61 | CSIRO
CSIRO Staff Association Delegate
Hours at CSIRO
Monday: 9:00am to 5pm
Tues, Wed, Fri: 1:30pm to 5pm
________________________________________
From: Devel on behalf of Cedric MAIRE
Sent: Friday, 14 August 2020 2:42 AM
To: devel@sel4.systems
Subject: [seL4] Dockerfiles - "camkes-rust" Image
Dear seL4 developers,
I am using the provided dockerfiles repository to build the docker images in order to compile seL4.
I would like to add a rust compiler to my docker image, which I do with "./build.sh -p -b camkes -s rust". This builds an image tagged "trustworthysystems/camkes-rust". I would like to launch this image in a container using the "Makefile" as I would do for the "trustworthysystems/camkes" image (using "make user").
I tried adding targets to the "Makefile" file changing the "USER_BASE_IMG" variable to use "trustworthysystems/camkes-rust" instead of "trustworthysystems/camkes", without success. I also tried to force the image by renaming/retagging "trustworthysystems/camkes " to "trustworthysystems/camkes-old" and "trustworthysystems/camkes-rust" to "trustworthysystems/camkes ". I also forced every base image to be the one containing the Rust compiler (in "Makefile"). All without success.
For some reason "trustworthysystems/camkes-rust" image is never used. If I start it manually using docker commands I am able to launch and attach to it, getting the expected Rust compiler. Through the "Makefile" it ever only uses "trustworthysystems/camkes" without the Rust compiler.
Is there an easy way to get this to work? What am I missing?
Best regards,
Cedric
===============================================================================
The ICRC - working to protect and assist people affected by armed conflict and other situations of violence. Find out more: www.icrc.org
This e-mail is intended for the named recipient(s) only.
Its contents are confidential and may only be retained by the named recipient
(s) and may only be copied or disclosed with the consent of the International Committee of the Red Cross (ICRC). If you are not an intended recipient please delete this e-mail and notify the sender.
===============================================================================
_______________________________________________
Devel mailing list
Devel@sel4.systems
https://sel4.systems/lists/listinfo/devel?mc_phishing_protection_id=28047-bs...
------------------------------
Subject: Digest Footer
_______________________________________________
Devel mailing list
Devel@sel4.systems
https://sel4.systems/lists/listinfo/devel?mc_phishing_protection_id=28047-bs...
------------------------------
End of Devel Digest, Vol 75, Issue 8
************************************
===============================================================================
The ICRC - working to protect and assist people affected by armed conflict and
other situations of violence. Find out more: www.icrc.org
This e-mail is intended for the named recipient(s) only.
Its contents are confidential and may only be retained by the named recipient
(s) and may only be copied or disclosed with the consent of the International
Committee of the Red Cross (ICRC). If you are not an intended recipient please
delete this e-mail and notify the sender.
===============================================================================