Skip to content

Commit 1f218dd

Browse files
author
Christian Compton
committed
upgrading cf commands
1 parent 8d3738b commit 1f218dd

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Usage
1313
Example usage (see the [Specify a Swift version](#specify-a-swift-version) section):
1414

1515
```shell
16-
$ bx app push
17-
Invoking 'cf push'...
16+
$ ibmcloud app push
17+
Invoking 'ibmcloud app push'...
1818

1919
Using manifest file /Users/olivieri/git/Kitura-Starter/manifest.yml
2020

@@ -183,10 +183,10 @@ The buildpack will detect your app as Swift if it has a `Package.swift` file in
183183
184184
The latest version of the IBM Cloud buildpack for Swift on the IBM Cloud is [v2.0.13](https://github.com/IBM-Swift/swift-buildpack/releases/tag/2.0.13).
185185
186-
Please note that it is possible that the latest buildpack code contained in this repo hasn't yet been installed on the IBM Cloud. If that happens to be the case and you'd like to leverage the latest buildpack code, you can do so by adding the `-b https://github.com/IBM-Swift/swift-buildpack` parameter to the `bx app push` command, as shown below:
186+
Please note that it is possible that the latest buildpack code contained in this repo hasn't yet been installed on the IBM Cloud. If that happens to be the case and you'd like to leverage the latest buildpack code, you can do so by adding the `-b https://github.com/IBM-Swift/swift-buildpack` parameter to the `ibmcloud app push` command, as shown below:
187187
188188
```shell
189-
bx app push -b https://github.com/IBM-Swift/swift-buildpack
189+
ibmcloud app push -b https://github.com/IBM-Swift/swift-buildpack
190190
```
191191
192192
### Procfile
@@ -353,18 +353,18 @@ Previous versions of this buildpack provided the [libdispatch](https://github.co
353353
354354
### Caching of the .build directory
355355
356-
Following the release of Swift 3.1, the IBM Cloud buildpack for Swift caches the contents of the `.build` folder to speed up the provisioning of your application the next time you execute the `bx app push` command. If you'd prefer not to use this caching mechanism, you can disable it by executing the following command:
356+
Following the release of Swift 3.1, the IBM Cloud buildpack for Swift caches the contents of the `.build` folder to speed up the provisioning of your application the next time you execute the `ibmcloud app push` command. If you'd prefer not to use this caching mechanism, you can disable it by executing the following command:
357357
358358
```shell
359-
bx app env-set <app_name> SWIFT_BUILD_DIR_CACHE false
360-
bx app restage <app_name>
359+
ibmcloud app env-set <app_name> SWIFT_BUILD_DIR_CACHE false
360+
ibmcloud app restage <app_name>
361361
```
362362
363363
If at some point, you'd like to re-enable caching of the `.build` folder, you can do so by executing:
364364
365365
```shell
366-
bx app env-set <app_name> SWIFT_BUILD_DIR_CACHE true
367-
bx app restage <app_name>
366+
ibmcloud app env-set <app_name> SWIFT_BUILD_DIR_CACHE true
367+
ibmcloud app restage <app_name>
368368
```
369369
370370
Note that if at some point you change the contents of your `Package.swift` or `Package.resolved` (or `Package.pins` for older versions of Swift) file, the buildpack will automatically refetch the dependencies and update the cache accordingly. Also, if you do not initially push a `Package.resolved` file along with your application and you are using Swift 4.0 (or a later version), a new `Package.resolved` file will be generated. It is recommended that you always push a `Package.resolved` file along with your application (if using Swift 4.0 or later).
@@ -374,13 +374,13 @@ Note that if at some point you change the contents of your `Package.swift` or `P
374374
If the buildpack preparation or compilation steps are failing, you can enable some debugging using the following command:
375375
376376
```shell
377-
bx app env-set <app_name> BP_DEBUG true
377+
ibmcloud app env-set <app_name> BP_DEBUG true
378378
```
379379
380380
To deactivate:
381381
382382
```shell
383-
bx app env-unset <app_name> BP_DEBUG
383+
ibmcoud app env-unset <app_name> BP_DEBUG
384384
```
385385
386386
### Installing Personal Package Archives
@@ -393,14 +393,14 @@ To install this buildpack:
393393
394394
```shell
395395
wget https://github.com/IBM-Swift/swift-buildpack/releases/download/2.0.13/buildpack_swift_v2.0.13-20180510-1828.zip
396-
bx cf create-buildpack swift_buildpack buildpack_swift_v2.0.13-20180510-1828.zip <position>
396+
ibmcloud cf create-buildpack swift_buildpack buildpack_swift_v2.0.13-20180510-1828.zip <position>
397397
```
398398
399399
And to update it:
400400
401401
```shell
402402
wget https://github.com/IBM-Swift/swift-buildpack/releases/download/2.0.13/buildpack_swift_v2.0.13-20180510-1828.zip
403-
bx cf update-buildpack swift_buildpack -p buildpack_swift_v2.0.13-20180510-1828.zip
403+
ibmcloud cf update-buildpack swift_buildpack -p buildpack_swift_v2.0.13-20180510-1828.zip
404404
```
405405
406406
For more details on installing buildpacks, see [Adding buildpacks to Cloud Foundry](https://docs.cloudfoundry.org/adminguide/buildpacks.html).

ci/performance_validator.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ push_application () {
2828
local RETVAL=1
2929

3030
if [ "$DELETE_FLAG" = true ]; then
31-
echo "Executing cf push tests..."
31+
echo "Executing ibmcloud push tests..."
3232
echo "Clearing out any previous instances of: $APPLICATION_DIR"
33-
cf delete $APPLICATION_DIR -r -f
33+
ibmcloud app delete $APPLICATION_DIR -r -f
3434
else
35-
echo "Executing cf re-push tests..."
35+
echo "Executing ibmcloud re-push tests..."
3636
fi
3737

3838
echo "$APPLICATION_DIR threshold value is: $TIMEOUT"
3939
echo
4040

4141
for num in `seq 1 $TIMES_TO_REPEAT`; do
4242
START_TIME=$SECONDS
43-
cf push -b https://github.com/IBM-Swift/swift-buildpack.git#$TRAVIS_BRANCH
43+
ibmcloud app push -b https://github.com/IBM-Swift/swift-buildpack.git#$TRAVIS_BRANCH
4444
ELAPSED_TIME=$(($SECONDS - $START_TIME))
4545

4646
echo "$APPLICATION_DIR took $ELAPSED_TIME seconds."
@@ -50,7 +50,7 @@ push_application () {
5050
RETVAL=0
5151
break
5252
elif [ "$DELETE_FLAG" = true ]; then
53-
cf delete $APPLICATION_DIR -r -f
53+
ibmcloud app delete $APPLICATION_DIR -r -f
5454
fi
5555

5656
echo "$APPLICATION_DIR took longer than the threshold value."
@@ -72,7 +72,7 @@ if [ $passed -ne 0 ] || [ $passed_repush -ne 0 ]; then
7272
exit 1
7373
fi
7474

75-
cf app $APPLICATION_DIR
75+
ibmcloud app show $APPLICATION_DIR
7676

7777
# Unfortunately, attempting to validate the http code
7878
# sometimes results in false positives, which fails our CI builds.

0 commit comments

Comments
 (0)