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

//.cargo/env: No such file or directory #21

Open
soulmachine opened this issue Mar 10, 2023 · 2 comments
Open

//.cargo/env: No such file or directory #21

soulmachine opened this issue Mar 10, 2023 · 2 comments

Comments

@soulmachine
Copy link

I run the following command:

docker run -it --rm \
	-e SCP_PRIVKEY=ff701d781f43ce106f72dc26a46b6a83e053b5d07bb3d4ceab79c91ca822a66b \
	-e BOLOS_SDK=/project/deps/nanos-secure-sdk \
	-e BOLOS_ENV=/opt/bolos \
	-u 5178 \
	-v $(pwd):/project \
	-e SUPPORT_SR25519= \
	-e SUBSTRATE_PARSER_FULL= \
	-e DISABLE_PREVIOUS= \
	-e DISABLE_CURRENT= \
	-e COIN= \
	-e APP_TESTING= \
	zondax/builder-bolos:latest bash

It will print an error on the screen:

/tmp/entrypoint.sh: line 10: //.cargo/env: No such file or directory

It seems the shell script /tmp/entrypoint.sh can not get ther $HOME environment variable.

@soulmachine
Copy link
Author

soulmachine commented Mar 10, 2023

Adding a -e HOME=/home/zondax in the command will solve the issue, but I think there might be a better solution

@carlosala
Copy link
Contributor

it should be enough removing that $HOME, I'd say. That is going to be the WORKDIR

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