Files
dokku/buildstep

15 lines
410 B
Bash
Executable File

#!/bin/bash
set -e
NAME="$1"
# Place the app inside the container
ID=$(cat | docker run -i -a stdin progrium/buildstep /bin/bash -c "mkdir -p /app && tar -xC /app")
test $(docker wait $ID) -eq 0
docker commit $ID $NAME > /dev/null
# Run the builder script and attach to view output
ID=$(docker run -d $NAME /build/builder)
docker attach $ID
test $(docker wait $ID) -eq 0
docker commit $ID $NAME > /dev/null