Commit f2131393 authored by Zhou, Wenduo's avatar Zhou, Wenduo Committed by WHITFIELDRE email
Browse files

Wrap Addie

parent d565c909
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5,8 +5,17 @@ variables:
  PKG_PATH: /var/www/html/distros/rhel/7/sns/RPMS/noarch

stages:
  - static
  - build-deploy

rpmlint:
  stage: static
  script:
    - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY
    - docker run -v $PWD/nsd-app-wrap.spec:/tmp/nsd-app-wrap.spec code.ornl.gov:4567/rse/images/centos:7 /bin/bash -c "yum install -y git rpm-build rpmlint && rpmlint /tmp/nsd-app-wrap.spec"
  tags:
    - rse-multi-builder

build-deploy:
  stage: build-deploy
  environment: $CI_COMMIT_REF_SLUG

addie

0 → 100755
+26 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
CONDA_ENVIRON=addie
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=addie-dev
    shift  # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=addie-qa
    shift  # drop this argument
  fi
fi

# Addie executable
STARTUP=addie

# import library to do the real work
source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

# activate the environment - will be deactivated on exit
activate_conda_environment "${CONDA_ENVIRON}"

# start the application
echo "Execute: ${STARTUP} $*"
"${STARTUP}" "$@"
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ if [ -n "$1" ] && [ "$1" == "--classic" ]; then
fi

# import library to do the real work
source "$(dirname $(realpath "$0"))/nsd-app-wrap.sh"
source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

# activate the environment - will be deactivated on exit
activate_conda_environment "${CONDA_ENVIRON}"
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
CONDA_ENVIRON=gsas2

# import library to do the real work
source "$(dirname $(realpath "$0"))/nsd-app-wrap.sh"
source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

# activate the environment - will be deactivated on exit
activate_conda_environment "${CONDA_ENVIRON}"
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ if [ -n "$1" ]; then
fi

# import library to do the real work
source "$(dirname $(realpath "$0"))/nsd-app-wrap.sh"
source "$(dirname "$(realpath "$0")")/nsd-app-wrap.sh"

# activate the environment - will be deactivated on exit
activate_conda_environment "${CONDA_ENVIRON}"
Loading