Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
109 stars 27 forks source link

Fix Cargo Clean #398

Closed ErikDeSmedt closed 5 months ago

ErikDeSmedt commented 5 months ago

To reproduce the issue do make docker-image, make docker-shell, cargo clean.

The issue is that you lack the rights to delete tmp/gltesting/target. The folder was added as a volume and cannot be deleted.

We keep the rust target directory in /tmp/gltesting/target/target instead so it can be safely deleted.

I'd recommend to run rm -rf /tmp/gltesting on the host-machine after merging this update.

Randy808 commented 5 months ago

I was still having some permission issues so I ended up executing a shell in the container as root with: docker exec -u root -it <container_id> bash

and running: chown -R <user> /tmp/gltesting

ErikDeSmedt commented 5 months ago

Is this a one time action or would you have to do it every time?

On Wed, Mar 27, 2024, 7:38 PM Randy808 @.***> wrote:

I was still having some permission issues so I ended up executing a shell in the container as root with: docker exec -u root -it bash

and running: chown -R /tmp/gltesting

— Reply to this email directly, view it on GitHub https://github.com/Blockstream/greenlight/pull/398#issuecomment-2023660454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATJLK6CTPE2UTEJRVBBCJTY2MGZFAVCNFSM6AAAAABFKW2ZQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTGY3DANBVGQ . You are receiving this because you authored the thread.Message ID: @.***>

Randy808 commented 5 months ago

It was a one time action