Skip to content

Dev setup not in a working state

Currently, the README points to using the Makefile for dev setup.

However, neither the conda nor the docker commands are in a working state:

  • conda setup is giving an issue where the environment is being "re-installed" in its own environment; this maybe to do with how mamba is setting this up since swapping to just conda allowed the environment to not be nested but then failed at installing the environment
  • docker setup has the incorrect name of conda environment yaml fil
  • after fix of above, docker setup also fails to run conda update command in Dockerfile Command:
$ DOCKER_COMPOSE="docker compose" make docker/mcvine/build|

Output:

MCVINE_VERSION=$(source ./mcvine/scripts/mcvine_version.sh)
echo "MCVINE_IMAGE_NAME=sample-simulator-mcvine:$MCVINE_VERSION" > mcvine.env
docker compose --env-file ./mcvine.env --file ./docker-compose-mcvine.yml build
\rm ./mcvine.env
WARN[0000] /home/ntm/projects/neumatix/mcu/sample-simulator/docker-compose-mcvine.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
[+] Building 0.2s (7/14)                                                              docker:default
 => [mcvine internal] load build definition from Dockerfile                                     0.0s
 => => transferring dockerfile: 1.25kB                                                          0.0s
 => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key valu  0.0s
 => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key valu  0.0s
 => WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key valu  0.0s
 => [mcvine internal] load metadata for savannah.ornl.gov/ndip/common/miniconda3:4.11.0         0.0s
 => [mcvine internal] load .dockerignore                                                        0.0s
 => => transferring context: 2B                                                                 0.0s
 => [mcvine  1/10] FROM savannah.ornl.gov/ndip/common/miniconda3:4.11.0                         0.0s
 => [mcvine internal] load build context                                                        0.0s
 => => transferring context: 2.45kB                                                             0.0s
 => CACHED [mcvine  2/10] RUN apt-get update && apt-get install -y     apt-utils     bzip2      0.0s
 => ERROR [mcvine  3/10] RUN conda update --name base -c defaults conda                         0.1s
------
 > [mcvine  3/10] RUN conda update --name base -c defaults conda:
0.058 runc run failed: unable to start container process: error during container init: exec: "/bin/sh": stat /bin/sh: no such file or directory

I was able to follow the .gitlab-ci.yml method of just running docker build ....

Suggestion:

  • maybe we remove the Makefile and just right the README to match the .gitlab-ci.yml setup?