OGS can be built on systems without internet connection when the following files can be made available on the system:
.git
) and un-archive on the target system.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
1773 # <-- 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
Un-archive the CPM cache into a directory. Configure OGS as usual but point to the extracted CPM cache:
cmake --preset release -DCPM_SOURCE_CACHE=./path/to/cpm
There will be some CMake warnings from CPM regarding missing git repositories in the cache. You can ignore them.
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
b3f0b7eb666750343ee357e76192122a448fe1a6 # <-- current version on master
On the external dependencies package page download the file ext.tar.gz
of the package external-dependencies
with the specified version.
Extract 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
On a machine with internet access download the tarballs:
wget https://gitlab.opengeosys.org/ogs/ogs/-/archive/6.5.1/ogs-6.5.1.tar.gz
wget -O cpm.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/1048/download
wget -O ext.tar.gz https://gitlab.opengeosys.org/ogs/ogs/-/package_files/1245/download
Copy those file onto the machine where you want to build OGS. Then build OGS offline:
tar xf ogs-6.5.1.tar.gz
tar xf cpm.tar.gz
tar xf ext.tar.gz
cd ogs-6.5.1
OGS_VERSION=6.5.1 cmake --preset release -DCPM_SOURCE_CACHE=../cpm -DOGS_EXTERNAL_DEPENDENCIES_CACHE=../ext
cmake --build --preset release
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.122.0
in CI job 493443
|
Last revision: September 23, 2024
Commit: [MeL/IO/XDMF] Return also computed parent data type 09baf91
| Edit this page on