geodynamics / vq

Virtual Quake is a boundary element code designed to investigate long term fault system behavior and interactions between faults through stress transfer.
Other
12 stars 24 forks source link

Change Jenkinsfile from Kubernetes to Docker #204

Closed tjesser-ucdavis-edu closed 2 years ago

tjesser-ucdavis-edu commented 5 years ago

Kubernetes ended up not working for our Jenkins server, so we switched to direct Docker containers. The Jenkinsfile should still otherwise work, though.

tjesser-ucdavis-edu commented 5 years ago

It looks like the OpenMPI tests are failing in Ubuntu 16.04. I don't recognize the error message, so I'll try asking @gassmoeller if he knows anything about it.

gassmoeller commented 5 years ago

I am pretty sure the error is caused by this issue: https://stackoverflow.com/questions/46138549/docker-openmpi-and-unexpected-end-of-proc-mounts-line Following the advice here: https://tuhrig.de/flatten-a-docker-container-or-image/ I flattened your docker image by exporting and importing, and then the error went away on my local docker container. Maybe you can replace the docker image you are using by a flattened version. The newer openmpi in 18.04 seems to have this issue fixed that is why Bionic works, but Xenial does not.

tjesser-ucdavis-edu commented 5 years ago

We discussed the issue and because we use DockerHub to build the containers, it's not really possible to flatten the image for Jenkins. We instead tried using MPICH as that didn't have the OpenMPI bug, and were able to successfully build and run the tests.

I'll make a separate pull request to change the Xenial buildenv from OpenMPI to MPICH.

tjesser-ucdavis-edu commented 5 years ago

I'll leave this for one more day, then push it if there's no further activity.

gassmoeller commented 2 years ago

superseded by #210.