Skip to content

paulscherrerinstitute/scicat-cli

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5d43e48 · May 16, 2024

History

33 Commits
Apr 8, 2024
Apr 9, 2024
May 16, 2024
Apr 25, 2024
Dec 13, 2023
Mar 14, 2024
Apr 8, 2024
Apr 4, 2024
Feb 15, 2024
Feb 15, 2024
Feb 27, 2024
Dec 13, 2023
Mar 27, 2024
Mar 27, 2024

Repository files navigation

SciCat CLI tools

Building

For testing, just build main.go for each command:

go build -o cmd/datasetIngestor/datasetIngestor cmd/datasetIngestor/main.go

To build all applications and target architectures, use the build script:

cmd/build.sh

Tools are compiled for the following architectures:

  • linux / amd64
  • windows / amd64
  • macos / universal

These can be cross-compiled from any system.

Deployment

Tools are deployed by committing the binaries to this repository.

  1. Run deploy.sh. This script

    1. Builds executables for all targets
    2. Commits all changes to the git rollout repository.

    After this step the version numbers are out of sync until the deploy steps below are performed.

  2. Deploy to the scicat tools repo. This is the public deployment

  3. Deploy linux versions to online beamline consoles (you need to have write access rights):

cd linux
scp datasetArchiver datasetIngestor datasetRetriever  datasetGetProposal datasetCleaner SciCat egli@gfa-lc.psi.ch:/work/sls/bin/
  1. Deploy linux versions to the ingest server pbaingest01
ssh egli@pbaingest01.psi.ch
cd bin/
curl -O  https://gitlab.psi.ch/scicat/tools/raw/master/linux/datasetIngestor;chmod +x datasetIngestor
curl -O  https://gitlab.psi.ch/scicat/tools/raw/master/linux/datasetArchiver;chmod +x datasetArchiver 
curl -O  https://gitlab.psi.ch/scicat/tools/raw/master/linux/datasetGetProposal;chmod +x datasetGetProposal
  1. Deploy to Ra cluster as a pmodule
cd pmodules/buildblocks/Tools/datacatalog
kinit
aklog
# optionally update files/variants.Linux to new version
# the following may be needed first:
#export PMODULES_TMPDIR=/var/tmp/egli
module load Pmodules/1.0.0rc13
./build 1.1.10 -f