Skip to content

Instantly share code, notes, and snippets.

View chrismaes87's full-sized avatar

Chris Maes chrismaes87

  • Macq
  • Brussels
View GitHub Profile
@chrismaes87
chrismaes87 / create-relative-virtualenv
Created September 25, 2019 06:57
bash script to create a relative virtualenv that can be packaged in an rpm
#!/bin/bash
me=$(basename $0)
set -e # exit on error
function print_help {
echo
echo $me - create a virtualenv with relative paths in a certain buildroot and fix the relative path to make it work after install
echo
echo OPTIONS
echo " -h / --help"
#!/bin/bash
me=$(basename $0)
function print_help {
echo "$me - wrapper for docker-compose --exit-code-from <test-service>"
echo
echo "SYNOPSIS"
echo " docker-compose --exit-code-from implies --abort-on-container-exit."
echo " This has a nasty side-effect: docker-compose will exit with code 0 if another container than test exits early."
echo " $me tries to work around this issue."