GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codeaster/container: code_aster containers

BranchesTags
Open more actions menu

Latest commit

 

History

55 Commits
55 Commits

Folders and files

NameName
Last commit message
Last commit date
bld
bld
 
 
env.d
env.d
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
Dockerfile.common.default
Dockerfile.common.default
 
 
Dockerfile.mpi.asterxx
Dockerfile.mpi.asterxx
 
 
Dockerfile.mpi.default
Dockerfile.mpi.default
 
 
Dockerfile.salome_meca.dev
Dockerfile.salome_meca.dev
 
 
Dockerfile.seq.default
Dockerfile.seq.default
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
Singularity.common.default
Singularity.common.default
 
 
Singularity.mpi.asterxx
Singularity.mpi.asterxx
 
 
Singularity.mpi.default
Singularity.mpi.default
 
 
Singularity.salome_meca.cwa
Singularity.salome_meca.cwa
 
 
Singularity.seq.default
Singularity.seq.default
 
 
asrun.external_configuration.py
asrun.external_configuration.py
 
 
aster.wafcfg_scif_boost.py
aster.wafcfg_scif_boost.py
 
 
aster.wafcfg_scif_mpi.py
aster.wafcfg_scif_mpi.py
 
 
aster.wafcfg_scif_std.py
aster.wafcfg_scif_std.py
 
 
id.asterxx
id.asterxx
 
 
id.common
id.common
 
 
id.default
id.default
 
 
id.salome_meca
id.salome_meca
 
 
run_testcases
run_testcases
 
 

Repository files navigation

Containers for code_aster

This repository provides some recipes to build containers for code_aster:

  • for docker.

  • for singularity.

It should be considered as a work in progress.

For example, additional work is needed to execute a containerized version of code_aster from an existing salome_meca installation.

The repository contains recipes to build a sequential and a parallel version for the development branch (default) which refers to the latest tag on docker images. The code_aster version is named unstable.

List of code_aster images

Executable images:

  • codeastersolver/codeaster-seq: Sequential version of code_aster.

  • codeastersolver/codeaster-mpi: Parallel version of code_aster.

Intermediate layer with prerequisites:

  • codeastersolver/codeaster-common: Prerequisites for the sequential and parallel versions.

This image can also be used to build your own development version.

Singularity recipes are simple conversions that use the Docker images as bootstrap.

Tags

  • latest: It refers to the last head of the default branch.

No more for the moment...

Build images

See available targets:

make

Then choose your target between seq and mpi, or build to build all:

make build

Environment files added in the env.d directory are sourced before calling docker/singularity builder. It may be useful for example to configure the environment to pass a proxy.

Testing

Running a shell using the image:

docker run --rm -it codeastersolver/codeaster-seq:latest

Running a testcase using testcase files embedded in the image:

docker run --rm codeastersolver/codeaster-seq:latest as_run --nodebug_stderr --test zzzz100f

Running a testcase using files out of the image:

In this example the data files are extracted from the image. In the real life, these files are for example created from salome_meca.

# create a temporary container to access the testcase files
docker run --name astercp codeastersolver/codeaster-seq:latest

# copy files
mkdir workdir
docker cp astercp:/scif/apps/aster/share/aster/tests/sslv155a.comm workdir/
docker cp astercp:/scif/apps/aster/share/aster/tests/sslv155a.mmed workdir/

# clean the temporary container
docker rm astercp

# create the export file
docker run --rm  codeastersolver/codeaster-seq:latest as_run --get_export sslv155a --nodebug_stderr | \
    sed -e 's#/scif/apps/aster/share/aster/tests#.#g' \
    > workdir/export

If the export file is manually created, the version can be addressed just by name (P version unstable).

Now, run a code_aster container using local files:

docker run --rm --volume $(pwd)/workdir:/aster codeastersolver/codeaster-seq:latest \
    as_run --nodebug_stderr /aster/export

Validation

To limit the size of the binary images only few testcases are available in the installation directory. The 3800+ testcases can be extracted from the source tree from the Bitbucket repository (see below). Checking all the 3800 testcases takes about 15-20h cpu.

Some prerequisites are not yet available within the container (miss3d, ecrevisse, etc.). So, all the tests that are using these tools are currently in failure.

To execute the existing testcases, use:

docker run -t codeastersolver/codeaster-seq:latest run_testcases unstable

# to copy the result files
docker cp -a <CONTAINER>:/home/aster/resutest <DESTINATION>

Use the following commands to download all the 3800+ testcases from the Bitbucket repository and execute them.

# download the testcases out of the container
wget https://bitbucket.org/code_aster/codeaster-src/get/default.tar.gz
tar xzf default.tar.gz
mv code_aster-codeaster-src-*/astest . && rm -rf code_aster-codeaster-src-*

# mount 'astest' and run testcases in the container
docker run -t --volume $(pwd)/astest:/home/aster/tests codeastersolver/codeaster-seq:latest \
    run_testcases --tests=/home/aster/tests unstable

About

code_aster containers

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.