7777
7878# pull config from controller to be used during build
7979URL=" {{ getv " /deis/controller/protocol" }}://{{ getv " /deis/controller/host" }}:{{ getv " /deis/controller/port" }}/v1/hooks/config"
80- RESPONSE=$( /app/bin/ get-app-config -url=" $URL " -key=" {{ getv " /deis/controller/builderKey" }}" -user=$USER -app=$APP_NAME )
80+ RESPONSE=$( get-app-config -url=" $URL " -key=" {{ getv " /deis/controller/builderKey" }}" -user=$USER -app=$APP_NAME )
8181CODE=$?
8282
8383if [ $CODE -ne 0 ]; then
@@ -89,7 +89,7 @@ BUILD_OPTS=()
8989BUILD_OPTS+=' /usr/bin/docker'
9090BUILD_OPTS+=' run -v /etc/environment_proxy:/etc/environment_proxy'
9191# get application configuration
92- BUILD_OPTS+=$( echo $RESPONSE | /app/bin/ get-app-values)
92+ BUILD_OPTS+=$( echo $RESPONSE | get-app-values)
9393
9494# if no Dockerfile is present, use slugbuilder to compile a heroku slug
9595# and write out a Dockerfile to use that slug
@@ -136,24 +136,24 @@ echo
136136
137137# use Procfile if provided, otherwise try default process types from ./release
138138if [ -f Procfile ]; then
139- PROCFILE=$( cat Procfile | /app/bin/ yaml2json-procfile)
139+ PROCFILE=$( cat Procfile | yaml2json-procfile)
140140elif [ -f $TMP_DIR /slug.tgz ]; then
141141 # Sometimes, the buildpack will generate a Procfile instead of populating /bin/release
142142 # /bin/release was unofficially deprecated for declaring default process types
143143 if tar -tf $TMP_DIR /slug.tgz ./Procfile & > /dev/null;
144144 then
145- PROCFILE=" $( tar --to-stdout -xf $TMP_DIR /slug.tgz ./Procfile | /app/bin/ yaml2json-procfile) "
145+ PROCFILE=" $( tar --to-stdout -xf $TMP_DIR /slug.tgz ./Procfile | yaml2json-procfile) "
146146 else
147- PROCFILE=$( tar --to-stdout -xf $TMP_DIR /slug.tgz ./.release | /app/bin/ extract-types)
147+ PROCFILE=$( tar --to-stdout -xf $TMP_DIR /slug.tgz ./.release | extract-types)
148148 fi
149149else
150150 PROCFILE=" {}"
151151fi
152152
153153puts-step " Launching... "
154154URL=" {{ getv " /deis/controller/protocol" }}://{{ getv " /deis/controller/host" }}:{{ getv " /deis/controller/port" }}/v1/hooks/build"
155- DATA=$( /app/bin/ generate-buildhook " $SHORT_SHA " " $USER " " $APP_NAME " " $APP_NAME " " $PROCFILE " " $USING_DOCKERFILE " )
156- PUBLISH_RELEASE=$( echo " $DATA " | /app/bin/ publish-release-controller -url=$URL -key={{ getv " /deis/controller/builderKey" }})
155+ DATA=$( generate-buildhook " $SHORT_SHA " " $USER " " $APP_NAME " " $APP_NAME " " $PROCFILE " " $USING_DOCKERFILE " )
156+ PUBLISH_RELEASE=$( echo " $DATA " | publish-release-controller -url=$URL -key={{ getv " /deis/controller/builderKey" }})
157157
158158CODE=$?
159159if [ $CODE -ne 0 ]; then
@@ -162,8 +162,8 @@ if [ $CODE -ne 0 ]; then
162162 exit 1
163163fi
164164
165- RELEASE=$( echo $PUBLISH_RELEASE | /app/bin/ extract-version)
166- DOMAIN=$( echo $PUBLISH_RELEASE | /app/bin/ extract-domain)
165+ RELEASE=$( echo $PUBLISH_RELEASE | extract-version)
166+ DOMAIN=$( echo $PUBLISH_RELEASE | extract-domain)
167167indent " done, $APP_NAME :v$RELEASE deployed to Deis"
168168echo
169169indent " http://$DOMAIN "
0 commit comments