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

Docker containers cannot be built #1776

Open
kziemianek opened this issue Jun 14, 2023 · 2 comments
Open

Docker containers cannot be built #1776

kziemianek opened this issue Jun 14, 2023 · 2 comments
Labels
D4-documentation documentation creation/amendment I1-low should be completed within 20 working days Stale

Comments

@kziemianek
Copy link
Member

I tried to build docker containers as described in README.md but it fails with following error:

 => ERROR [builder 4/5] RUN make  

After investigation it turns out that image cannt be built from build.Dockerfile

kziemianek@kziemianek:~/projects/litentry/litentry-parachain/tee-worker$ docker build -f build.Dockerfile .
[+] Building 2.6s (10/25)                                                                                                                                                                                                                     
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 228B                                                                                                                                                                                                        0.0s
 => [internal] load build definition from build.Dockerfile                                                                                                                                                                               0.0s
 => => transferring dockerfile: 4.50kB                                                                                                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                                                                                                                          1.2s
 => [internal] load metadata for docker.io/integritee/integritee-dev:0.1.13                                                                                                                                                              1.2s
 => [runner 1/5] FROM docker.io/library/ubuntu:22.04@sha256:ac58ff7fe25edc58bdf0067ca99df00014dbd032e2246d30a722fa348fd799a5                                                                                                             0.0s
 => [builder 1/5] FROM docker.io/integritee/integritee-dev:0.1.13@sha256:ed8f14f21a6f4abbd5df830c7b040ae734c6640b4e2b8d5a82fbe5cabb5d4be2                                                                                                0.0s
 => [internal] load build context                                                                                                                                                                                                        0.9s
 => => transferring context: 5.05MB                                                                                                                                                                                                      0.7s
 => CACHED [builder 2/5] WORKDIR /root/work/tee-worker                                                                                                                                                                                   0.0s
 => CACHED [builder 3/5] COPY . /root/work                                                                                                                                                                                               0.0s
 => ERROR [builder 4/5] RUN make                                                                                                                                                                                                         0.5s
------
 > [builder 4/5] RUN make:
#0 0.507 make: *** No targets specified and no makefile found.  Stop.
------
build.Dockerfile:42
--------------------
  40 |     COPY . $HOME
  41 |     
  42 | >>> RUN make
  43 |     
  44 |     RUN cargo test --release
--------------------
ERROR: failed to solve: process "/bin/bash -c make" did not complete successfully: exit code: 2
@kziemianek kziemianek added the I1-low should be completed within 20 working days label Jun 14, 2023
@Kailai-Wang
Copy link
Collaborator

I think you need to specify extra args to build the docker image, this is the command used in CI:

          docker build -t litentry/integritee-worker
          --target deployed-worker
          --build-arg WORKER_MODE_ARG=sidechain --build-arg ADDITIONAL_FEATURES_ARG=
          -f tee-worker/build.Dockerfile .

The instruction in README is the original copy from upstream, which might be outdated

@Kailai-Wang Kailai-Wang added the D4-documentation documentation creation/amendment label Jun 15, 2023
@github-actions
Copy link
Contributor

❗ This issue is stale because it has been open for 60 days with no activity.
Please take proper action against it.
@litentry/parachain

@github-actions github-actions bot added the Stale label Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D4-documentation documentation creation/amendment I1-low should be completed within 20 working days Stale
Projects
None yet
Development

No branches or pull requests

2 participants