Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions orbit/warpdrive.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
#!/bin/sh -e
#!/bin/sh
#
# the warp drive allows you to enter hyperspace

require() { command -v "$1" > /dev/null || { echo "error: $1 command required yet absent" ; exit 1 ; } ; }
set -e

cd "$(dirname "$0")"
DOCKER_COMPOSE=${DOCKER_COMPOSE:-podman-compose}

DOCKER=${DOCKER:-podman}

require "${DOCKER}"

CONTAINER=${CONTAINER:-singularity_orbit_1}

$DOCKER exec -i "$CONTAINER" ./hyperspace.py "$@"
$DOCKER_COMPOSE exec orbit ./hyperspace.py "$@"