Offline build

OGS can be built on systems without internet connection when the following files can be made available on the system:

  • The ogs source code. Just archive the full ogs source code directory (also containing the git repository in .git) and unarchive on the target system.
  • The CPM source cache. It can be obtained via the OGS package registry (see below).
  • Optional: The external dependencies (for MFront, PETSc or LIS) source cache. It can be obtained via the OGS package registry

CPM

The cpm source cache may change over time. To get the required file id check the package_file_id field in web/data/versions.json, e.g. with:

$ jq -r '.cpm.package_file_id' web/data/versions.json
73 # <-- current version on master

Now simply download the file with:

curl https://gitlab.opengeosys.org/ogs/ogs/-/package_files/[insert ID here]/download --output cpm.tar.gz

Unarchive the cpm cache into a directory. Configure OGS as usual but point to the extracted cpm cache:

cmake --preset release -DCPM_SOURCE_DIR=./path/to/cpm

There will be some CMake warnings from CPM regarding missing git repositories in the cache. You can ignore them.

External dependencies

The external dependencies source cache may change over time. To get the required version check the cache_hash field in web/data/versions.json, e.g. with:

$ jq -r '.ext.cache_hash' web/data/versions.json
e6f3f1f4c29c6c5f096f89785e6e245bdf39ac1a # <-- current version on master

On the external dependencies package page download the file ext.tar.gz with the specified version.

Unarchive the external dependencies cache into a directory. Configure OGS as usual but point to the extracted external dependencies cache:

cmake --preset release -DOGS_EXTERNAL_DEPENDENCIES_CACHE=./path/to/ext

This article was written by Lars Bilke. If you are missing something or you find an error please let us know. Generated with Hugo 0.96.0. Last revision: May 6, 2022
Commit: [web] Adapted docs for cpm cache download. 87325c6  | Edit this page on