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

Error in building docker image for localci and linux #674

Open
anirbanc3 opened this issue Nov 13, 2024 · 0 comments
Open

Error in building docker image for localci and linux #674

anirbanc3 opened this issue Nov 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anirbanc3
Copy link

Describe the bug
I am trying to build the docker image for localci and linux for veracruz. But I am getting the following error:
=> ERROR [corim_builder 7/12] RUN cocli comid create --template MyComidPsaIak.json
I do not understand what is the root cause of the error and how to resolve it. Any help or leads in this regard will be greatly appreciated.

Full log:

anirban@madras:~/veracruz/docker$ make localci-build
DOCKER_BUILDKIT=1 docker build --network host --build-arg ARCH=x86_64 --build-arg DOCKER_ARCH=amd64/ --build-arg VERSION=v23.12  -t veracruz/base:v23.12 -f base/Dockerfile .
[+] Building 0.8s (15/35)                                                                                                                                              docker:default
 => [internal] load build definition from Dockerfile                                                                                                                             0.0s
 => => transferring dockerfile: 5.57kB                                                                                                                                           0.0s
 => WARN: FromAsCasing: 'AS' and 'from' keywords' casing do not match (line 18)                                                                                                  0.0s
 => WARN: FromAsCasing: 'AS' and 'from' keywords' casing do not match (line 30)                                                                                                  0.0s
 => WARN: ConsistentInstructionCasing: Command 'from' should match the case of the command majority (uppercase) (line 18)                                                        0.0s
 => WARN: ConsistentInstructionCasing: Command 'from' should match the case of the command majority (uppercase) (line 30)                                                        0.0s
 => WARN: UndefinedArgInFrom: FROM argument 'DOCKER_ARCH' is not declared (line 18)                                                                                              0.0s
 => WARN: UndefinedArgInFrom: FROM argument 'DOCKER_ARCH' is not declared (line 30)                                                                                              0.0s
 => WARN: UndefinedArgInFrom: FROM argument 'DOCKER_ARCH' is not declared (line 46)                                                                                              0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                  0.4s
 => [internal] load metadata for docker.io/library/golang:1.19                                                                                                                   0.4s
 => [internal] load .dockerignore                                                                                                                                                0.0s
 => => transferring context: 52B                                                                                                                                                 0.0s
 => [internal] load build context                                                                                                                                                0.0s
 => => transferring context: 224B                                                                                                                                                0.0s
 => CACHED [corim_builder  1/12] FROM docker.io/library/golang:1.19@sha256:3025bf670b8363ec9f1b4c4f27348e6d9b7fec607c47e401e40df816853e743a                                      0.0s
 => CACHED [stage-2  1/17] FROM docker.io/library/ubuntu:22.04@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97                                           0.0s
 => => resolve docker.io/library/ubuntu:22.04@sha256:0e5e4a57c2499249aafc3b40fcd541e9a456aab7296681a3994d631587203f97                                                            0.0s
 => CANCELED [go_builder 2/2] RUN set -eux;     echo "iteration 0";     git clone https://github.com/veracruz-project/proxy_attestation_server.git --branch dreemkiller_sev --t  0.3s
 => CACHED [corim_builder  2/12] RUN set -eux;     go install github.com/veraison/corim/cocli@latest                                                                             0.0s
 => CACHED [corim_builder  3/12] COPY MyComidPsaIak.json /go/                                                                                                                    0.0s
 => CACHED [corim_builder  4/12] COPY AWSNitroComid.json /go/                                                                                                                    0.0s
 => CACHED [corim_builder  5/12] COPY corimMini.json /go/                                                                                                                        0.0s
 => CACHED [corim_builder  6/12] COPY AMDSEVSNP.json /go/                                                                                                                        0.0s
 => ERROR [corim_builder  7/12] RUN cocli comid create --template MyComidPsaIak.json                                                                                             0.1s
 => CANCELED [stage-2  2/17] RUN apt-get update &&     apt-get upgrade -y &&     apt-get install --no-install-recommends -y         bash-completion         bc         bison     0.2s
------                                                                                                                                                                                
 > [corim_builder  7/12] RUN cocli comid create --template MyComidPsaIak.json:                                                                                                        
0.104 Error: 1/1 creations(s) failed
0.104 >> creation failed for "": error decoding template from MyComidPsaIak.json: error unmarshalling field "Triples": error unmarshalling field "AttestVerifKeys": type not set
------
Dockerfile:39
--------------------
  37 |     COPY corimMini.json /go/
  38 |     COPY AMDSEVSNP.json /go/
  39 | >>> RUN cocli comid create --template MyComidPsaIak.json
  40 |     RUN cocli comid create --template AWSNitroComid.json
  41 |     RUN cocli comid create --template AMDSEVSNP.json
--------------------
ERROR: failed to solve: process "/bin/sh -c cocli comid create --template MyComidPsaIak.json" did not complete successfully: exit code: 1
make: *** [Makefile:48: base] Error 1

To Reproduce
run make localci-build inside veracruz/docker folder.

Expected behaviour
The docker should be properly built and run

Screenshots, terminal output, or logs
Added the full log.

Environment, Git commit hash, and configuration
CPU: Intel 9th gen
OS: Ubuntu 220.4
Docker: version 27.3.1

Additional context
Docker is installed in the system

@anirbanc3 anirbanc3 added the bug Something isn't working label Nov 13, 2024
@anirbanc3 anirbanc3 changed the title Error in building fdocker image for localci and linux Error in building docker image for localci and linux Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant