Exit container with error message when pseudo-TTY is unallocated (#141)
Fixes #139 Fixes #140 Signed-off-by: Wouter Born <eclipse@maindrain.net>pull/145/head
parent
4efbb04e48
commit
75ef3afb33
|
@ -11,7 +11,7 @@ before_install:
|
|||
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
||||
install:
|
||||
- docker build --build-arg VCS_REF=$TRAVIS_COMMIT --build-arg BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ") --build-arg VERSION=$VERSION -t $DOCKER_REPO:$VERSION-$TARGET-$DIST $VERSION/$TARGET/$DIST
|
||||
- docker run --rm $DOCKER_REPO:$VERSION-$TARGET-$DIST uname -a
|
||||
- docker run --rm --tty $DOCKER_REPO:$VERSION-$TARGET-$DIST uname -a
|
||||
after_success:
|
||||
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD
|
||||
- docker push $DOCKER_REPO:$VERSION-$TARGET-$DIST
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
# Karaf needs a pseudo-TTY so exit and instruct user to allocate one when necessary
|
||||
test -t 0
|
||||
if [ $? -eq 1 ]; then
|
||||
echo "Please start the openHAB container with a pseudo-TTY using the -t option or 'tty: true' with docker compose"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
|
|
Loading…
Reference in New Issue