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

How to setup trustzone docker image #23

Open
xglreal opened this issue Oct 18, 2021 · 1 comment
Open

How to setup trustzone docker image #23

xglreal opened this issue Oct 18, 2021 · 1 comment

Comments

@xglreal
Copy link

xglreal commented Oct 18, 2021

I use the command make build TEE=tz to trustzone docker image, but some error had occured, how to fix it?

root:~/veracruz/docker# make build TEE=tz
DOCKER_BUILDKIT=1 docker build --build-arg USER=root --build-arg UID=0 --build-arg TEE=tz -t veracruz_image_tz:root -f Dockerfile .
[+] Building 3.7s (5/10)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 34B 0.0s
=> [internal] load metadata for docker.io/veracruz/tz:latest 3.1s
=> CACHED [1/8] FROM docker.io/veracruz/tz:latest@sha256:6ac100647955f85cef34cf2dbe565fa0bd45c38055ea9172f72afec51e587e63 0.0s
=> ERROR [2/8] RUN mkdir -p /work; if [ "root" != "root" ] ; then useradd -u 0 -m -p openssl rand -base64 32` -s /bin/bash root ; fi; 0.5s

[2/8] RUN mkdir -p /work; if [ "root" != "root" ] ; then useradd -u 0 -m -p openssl rand -base64 32 -s /bin/bash root ; fi; chown -R root /work;chown -Rf root /usr/local/rustup;chown -Rf root /usr/local/cargo:
#5 0.381 standard_init_linux.go:228: exec user process caused: exec format error

executor failed running [/bin/bash -c mkdir -p /work; if [ "$USER" != "root" ] ; then useradd -u $UID -m -p openssl rand -base64 32 -s /bin/bash $USER ; fi; chown -R $USER /work;chown -Rf $USER /usr/local/rustup;chown -Rf $USER /usr/local/cargo]: exit code: 1
Makefile:62: recipe for target 'build' failed
make: *** [build] Error 1

@ShaleXIONG
Copy link
Member

Hi,

Can you try make tz-base?

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