Commit ba96ffef authored by Jason Hiser's avatar Jason Hiser 🚜

Merge branch 'master' of git.zephyr-software.com:opensrc/irdb-cookbook-examples

parents 98f28c6b 88ae05b1
Pipeline #2704 canceled with stages
......@@ -9,6 +9,7 @@ stages:
- clean
- build
- test
- deploy
#
......@@ -127,3 +128,12 @@ basic-pgms-killdeads-centos75:
OS: 'centos75'
#
# deploy a docker image
#
deploy-ubuntu18:
stage: deploy
script:
- ./cicd_testing/deploy.sh
tags:
- ubuntu18
......@@ -45,7 +45,8 @@ The easiest way to test these transforms is to use Zephyr's docker registry:
docker run git.zephyr-software.com:4567/opensrc/irdb-sdk/zipr-dev <args>
```
The recommended value for `<args>` is `help`. Once logged into the docker image, you can `cd irdb-cookbook-examples` and run `scons`.
The recommended value for `<args>` is `help`. Follow the directions in the help to log in to the docker image. Once logged in,
you can `cd irdb-cookbook-examples` and run `scons`.
### Manually (Not recommended)
......
#/bin/bash
set -e
set -x
export PS_PATH=git.zephyr-software.com:4567/opensrc/irdb-sdk/
export PS_TAG=zipr-dev:latest
export DOCKER_PS=${PS_PATH}${PS_TAG}
......@@ -54,12 +57,6 @@ do_logout()
main()
{
if [[ -z $PEASOUP_HOME ]]; then
cd /tmp/peasoup_test
source set_env_vars
fi
set -e
if [[ -z $PEASOUP_HOME ]] ; then
cd $CICD_MODULE_WORK_DIR/cookbook_test
source set_env_vars
......
#/bin/bash
print_usage()
{
echo ""
echo " This docker container is made available to the public by Zephyr Software "
echo " (contact: jwd@zephyr-software.com) under the Creative Commons Attribution- "
echo " NonCommercial license (CC BY-NC). "
echo ""
echo " Linux, Gcc, and other relevant open source projects are licensed under their "
echo " own license and are exempt from this license statement. "
echo ""
echo "IRDB toolchain subcommands:"
echo ""
echo " iagree Accept the creative commons non-commercial license and login."
echo " help Print this menu."
echo ""
}
function is_in_activation
{
service "$1" status
activation=$(service "$1" status | grep "Active: activation" )
if [ -z "$activation" ]; then
true;
else
false;
fi
return $?;
}
main()
{
local res=0
export USER=root;
cd /opt/ps_zipr
source ./set_env_vars
cd /home/zuser
subcommand=$1
shift
echo "Arguments are: $@"
case "$subcommand" in
iagree)
echo
echo Welcome to the IRDB toolchain docker image!
echo
echo "Setting up postgres..."
echo
service postgresql start
echo
echo 'The IRDB toolchain is setup and ready to run.'
echo 'You could start your first experiment with:'
echo
echo 'zuser@a3fc1666aaa4:~$ pszr /bin/ls ./ls.p1 -c p1transform'
echo 'Using Zipr backend.'
echo 'Detected ELF shared object.'
echo 'Performing step rida [dependencies=mandatory] ...Done. Successful.'
echo 'Performing step pdb_register [dependencies=mandatory] ...Done. Successful.'
echo 'Performing step fill_in_cfg [dependencies=unknown] ...Done. Successful.'
echo 'Performing step fill_in_indtargs [dependencies=unknown] ...Done. Successful.'
echo 'Performing step fix_calls [dependencies=unknown] ...Done. Successful.'
echo 'Performing step p1transform [dependencies=unknown] ...Done. Successful.'
echo 'Performing step zipr [dependencies=none] ...Done. Successful.'
echo 'zuser@a3fc1666aaa4:~$ ./ls.p1 -l '
echo ' < ls output > '
echo 'zuser@a3fc1666aaa4:~$ readelf -l /bin/ls ./ls.p1 '
echo
bash
res=0
;;
help)
print_usage
exit 0
;;
*)
print_usage
echo
echo "Unknown subcommand: '$subcommand'"
echo
exit 1
;;
esac
if [[ $res != 0 ]]; then
echo
echo Subcommand failed. Logs were printed.
exit 1
fi
exit 0
}
main "$@"
......@@ -7,6 +7,6 @@ export COOKBOOK_HOME=$PWD
#
# Tell ps_zipr where to search for plugins
# Tell pszr where to search for plugins
#
export PSPATH=$PSPATH:$COOKBOOK_HOME/plugins_install
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment