casasglobal-org / pbdm-workflow

Workflow to run PBDM executables compiled from Pascal source code
GNU General Public License v3.0
0 stars 0 forks source link

Building container fails with error #21

Open luisponti opened 3 days ago

luisponti commented 3 days ago

When building container as instructed in the readme file:

> cd mgd-olive-scripts-main/casas_pbdm_workflow/processing/resources/worker-container
> docker build -t app .

returns the following error:

[+] Building 5.3s (14/18)                                                                                               docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                    0.0s
 => => transferring dockerfile: 1.49kB                                                                                                  0.0s
 => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 14)                       0.0s
 => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 15)                       0.0s
 => [internal] load .dockerignore                                                                                                       0.0s
 => => transferring context: 2B                                                                                                         0.0s
 => [internal] load build context                                                                                                       0.0s
 => => transferring context: 2.00kB                                                                                                     0.0s
 => CACHED [ 1/15] ADD sbin/apk.static /sbin/                                                                                           0.0s
 => CACHED [ 2/15] ADD etc/apk/repositories /etc/apk/                                                                                   0.0s
 => CACHED [ 3/15] RUN [ "/sbin/apk.static", "--allow-untrusted", "-U",       "add", "--initdb",       "alpine-keys" ]                  0.0s
 => CACHED [ 4/15] RUN ["/sbin/apk.static", "add", "--update", "alpine-base", "xvfb", "wine", "wget", "py-pip"]                         0.0s
 => CACHED [ 5/15] ADD winetricks.sh /                                                                                                  0.0s
 => CACHED [ 6/15] RUN chmod +x winetricks.sh && mv winetricks.sh /usr/bin/winetricks                                                   0.0s
 => CACHED [ 7/15] COPY pbdm /                                                                                                          0.0s
 => CACHED [ 8/15] RUN     echo "**** install Python ****" &&     apk add --no-cache python3 py3-pip &&     if [ ! -e /usr/bin/python   0.0s
 => CACHED [ 9/15] RUN  pip3 install --upgrade boto3==1.23.10                                                                           0.0s
 => CACHED [10/15] RUN python3 --version                                                                                                0.0s
 => ERROR [11/15] RUN     apk -Uuv add groff less python3 py-pip &&     pip install six     pip install awscli &&     rm /var/cache/ap  5.3s
------
 > [11/15] RUN     apk -Uuv add groff less python3 py-pip &&     pip install six     pip install awscli &&     rm /var/cache/apk/*:
0.172 fetch http://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86/APKINDEX.tar.gz
0.433 fetch http://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86/APKINDEX.tar.gz
1.050 OK: 145 packages, 606 dirs, 7540 files, 357 MiB
3.930 Requirement already satisfied: six in /usr/lib/python3.10/site-packages (1.16.0)
3.932 Requirement already satisfied: pip in /usr/lib/python3.10/site-packages (24.2)
4.617 ERROR: Could not find a version that satisfies the requirement install (from versions: none)
5.120 ERROR: No matching distribution found for install
------

 2 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 14)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 15)
Dockerfile:32
--------------------
  31 |
  32 | >>> RUN \
  33 | >>>     apk -Uuv add groff less python3 py-pip && \
  34 | >>>     pip install six \
  35 | >>>     pip install awscli && \
  36 | >>>     rm /var/cache/apk/*
  37 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk -Uuv add groff less python3 py-pip &&     pip install six     pip install awscli &&     rm /var/cache/apk/*" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/krlwbicog2yzs7dv2tphaaciw

Running the final step fails:

> docker compose up --no-deps -d app
no configuration file provided: not found
Federica1992 commented 3 days ago

Hi Luigi, it seems there was a typo in the Dockerfile. I've corrected the code, please pull the latest version and try again.

luisponti commented 3 days ago

Hi @Federica1992

The change was made to:

mgd-olive-scripts-main/casas_pbdm_workflow/processing/resources/local-environment/container/Dockerfile

However, the README instructions https://github.com/casasglobal-org/pbdm-workflow/blob/main/README.md

point to:

mgd-olive-scripts-main/casas_pbdm_workflow/processing/resources/worker-container/Dockerfile

Which one should be used to run the container locally?