mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
scripts: Switch default tutorial from rkt to docker
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
GIT_SHA=$($DIR/git-version)
|
||||
|
||||
# Start with an empty ACI
|
||||
acbuild --debug begin
|
||||
|
||||
# In the event of the script exiting, end the build
|
||||
trap "{ export EXT=$?; acbuild --debug end && exit $EXT; }" EXIT
|
||||
|
||||
# Name the ACI
|
||||
acbuild --debug set-name coreos.com/matchbox
|
||||
|
||||
# Add a version label
|
||||
acbuild --debug label add version $GIT_SHA
|
||||
|
||||
# Add alpine base dependency
|
||||
acbuild --debug dep add quay.io/coreos/alpine-sh
|
||||
|
||||
# Copy the static binary
|
||||
acbuild --debug copy bin/matchbox /matchbox
|
||||
|
||||
# Add a port for HTTP traffic
|
||||
acbuild --debug port add www tcp 8080
|
||||
|
||||
# Set the exec command
|
||||
acbuild --debug set-exec -- /matchbox
|
||||
|
||||
# Save and overwrite any older matchbox ACI
|
||||
acbuild --debug write --overwrite matchbox.aci
|
||||
Reference in New Issue
Block a user