11Bluemix buildpack for Swift
2- =======================================
2+ ===========================
33
44This is the Bluemix buildpack for Swift applications, powered by the Swift Package Manager (SPM). Though this buildpack was developed mainly for Bluemix, it can be used on any Cloud Foundry environment. This buildpack requires access to the Internet for downloading and installing several system level dependencies.
55
6- Please note that this buildpack is ** not** yet installed on Bluemix; our team is working on getting it installed soon. Having said that, you can still use this buildpack to deploy your Swift applications as described in the ``` Usage ``` section below.
6+ Please note that this buildpack is ** not** yet installed on Bluemix; our team is working on getting it installed soon. Having said that, you can still use this buildpack to deploy your Swift applications to Bluemix as described in the ``` Usage ``` section below.
77
8- Our team is currently working on updating the [ Kitura-Sample ] ( https://github.com/IBM-Swift/Kitura-Sample ) application so that it can be deployed to Bluemix using this buildpack. Stay tuned for updates regarding this!
8+ Also, check out the [ Kitura-Starter-Bluemix ] ( https://github.com/IBM-Swift/Kitura-Starter-Bluemix ) for a fully working example of a Kitura-based server application that can be deployed to Bluemix (or any Cloud Foundry environment).
99
1010Usage
1111-----
1212
1313Example usage:
1414
1515``` shell
16- cf push -b https://github.com/IBM-Swift/swift-buildpack.git
16+ $ cf push -b https://github.com/IBM-Swift/swift-buildpack.git
17+ Using manifest file /Users/olivieri/git/Kitura-Starter-Bluemix/manifest.yml
1718
18- ...
19+ Creating app Kitura-Starter-Bluemix in org roliv@us.ibm.com / space dev as roliv@us.ibm.com...
20+ OK
1921
20- -----> Downloaded app package (4.2M)
22+ Creating route kitura-starter-bluemix-nonadapting-disguisedness.mybluemix.net...
23+ OK
24+
25+ Binding kitura-starter-bluemix-nonadapting-disguisedness.mybluemix.net to Kitura-Starter-Bluemix...
26+ OK
27+
28+ Uploading Kitura-Starter-Bluemix...
29+ Uploading app files from: /Users/olivieri/git/Kitura-Starter-Bluemix
30+ Uploading 50.4K, 36 files
31+ Done uploading
32+ OK
33+
34+ Starting app Kitura-Starter-Bluemix in org roliv@us.ibm.com / space dev as roliv@us.ibm.com...
35+ -----> Downloaded app package (28K)
2136Cloning into ' /tmp/buildpacks/swift-buildpack' ...
2237-----> Installing system level dependencies...
2338Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
2439Ign http://archive.ubuntu.com trusty InRelease
2540Get:2 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
2641Get:3 http://security.ubuntu.com trusty-security/main amd64 Packages [574 kB]
27- Get:4 http://archive .ubuntu.com trusty Release.gpg [933 B ]
28- Get:5 http://security.ubuntu.com trusty-security/universe amd64 Packages [165 kB ]
29- Get:6 http://security .ubuntu.com trusty-security/multiverse amd64 Packages [4,855 B]
30- Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [949 kB]
42+ Get:4 http://security .ubuntu.com trusty-security/universe amd64 Packages [165 kB ]
43+ Get:5 http://security.ubuntu.com trusty-security/multiverse amd64 Packages [4,855 B ]
44+ Get:6 http://archive .ubuntu.com trusty Release.gpg [933 B]
45+ Get:7 http://archive.ubuntu.com trusty-updates/main amd64 Packages [950 kB]
3146Get:8 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [464 kB]
3247Get:9 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [14.3 kB]
3348Get:10 http://archive.ubuntu.com trusty Release [58.5 kB]
3449Get:11 http://archive.ubuntu.com trusty/main amd64 Packages [1,743 kB]
3550Get:12 http://archive.ubuntu.com trusty/universe amd64 Packages [7,589 kB]
3651Get:13 http://archive.ubuntu.com trusty/multiverse amd64 Packages [169 kB]
37- Fetched 11.9 MB in 10s (1,172 kB/s)
3852Reading package lists...
3953 Reading package lists...
4054 Building dependency tree...
@@ -46,7 +60,7 @@ Reading package lists...
4660 libblocksruntime-dev libblocksruntime0 libkqueue0
4761 The following packages will be upgraded:
4862 curl libcurl3 libcurl4-openssl-dev
49- 3 upgraded, 3 newly installed, 0 to remove and 132 not upgraded.
63+ 3 upgraded, 3 newly installed, 0 to remove and 134 not upgraded.
5064 Need to get 577 kB of archives.
5165 After this operation, 219 kB of additional disk space will be used.
5266 Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main curl amd64 7.35.0-1ubuntu2.6 [123 kB]
@@ -55,7 +69,7 @@ Reading package lists...
5569 Get:4 http://archive.ubuntu.com/ubuntu/ trusty/universe libblocksruntime0 amd64 0.1-1 [8,128 B]
5670 Get:5 http://archive.ubuntu.com/ubuntu/ trusty/universe libblocksruntime-dev amd64 0.1-1 [4,660 B]
5771 Get:6 http://archive.ubuntu.com/ubuntu/ trusty/universe libkqueue0 amd64 1.0.4-2ubuntu1 [23.4 kB]
58- Fetched 577 kB in 2s (261 kB/s)
72+ Fetched 577 kB in 2s (266 kB/s)
5973 Download complete and in download only mode
6074-----> Downloaded DEB files...
6175-----> Installing curl_7.35.0-1ubuntu2.6_amd64.deb
@@ -65,7 +79,7 @@ Reading package lists...
6579-----> Installing libcurl4-openssl-dev_7.35.0-1ubuntu2.6_amd64.deb
6680-----> Installing libkqueue0_1.0.4-2ubuntu1_amd64.deb
6781-----> Writing profile script...
68- -----> Buildpack version 1.0.5
82+ -----> Buildpack version 1.1.0
6983-----> Installing Swift DEVELOPMENT-SNAPSHOT-2016-04-25-a
7084 Downloaded Swift
7185-----> Installing Clang 3.7.0
@@ -90,51 +104,54 @@ Reading package lists...
90104 Resolved version: 6.1.0
91105 Cloning https://github.com/IBM-Swift/Kitura-TemplateEngine.git
92106 Resolved version: 0.9.0
93- Cloning https://github.com/IBM-Swift/Kitura-CouchDB.git
94- Resolved version: 0.11.2
95107 Cloning https://github.com/IBM-Swift/HeliumLogger.git
96- Resolved version: 0.6.1
97- Cloning https://github.com/IBM-Swift/Swift-cfenv.git
108+ Resolved version: 0.6.2
109+ Cloning https://github.com/IBM-Swift/Swift-cfenv
98110 Resolved version: 0.0.4
99- Cloning https://github.com/ibm-bluemix-mobile-services/bluemix-objectstore-swift-sdk.git
100- Resolved version: 0.1.1
101- Cloning https://github.com/ibm-bluemix-mobile-services/bluemix-simple-http-client-swift.git
102- Resolved version: 0.1.2
103- Cloning https://github.com/ibm-bluemix-mobile-services/bluemix-simple-logger-swift.git
104- Resolved version: 0.1.0
105111 mkdir -p /tmp/staged/app/.build/release/CHttpParser.build
106112 Compile LoggerAPI
107113 Compile Socket
108114 Compile SwiftyJSON
109- Compile SimpleLogger
110- Compile CHttpParser utils.c
111115 Compile Kitura-TemplateEngine
116+ Compile CHttpParser utils.c
112117 Compile CHttpParser http_parser.c
113118 Compile KituraSys
114119 Compile HeliumLogger
115120 Linking CHttpParser
116121 Compile KituraNet
117122 Compile CFEnvironment
118123 Compile Kitura
119- Compile CouchDB
120- Compile SimpleHttpClient
121- Compile BluemixObjectStore
122- Compile CouchDBSample
123- Linking .build/release/CouchDBSample
124- Compile Server
125- Linking .build/release/Server
124+ Compile Kitura-Starter-Bluemix
125+ Linking .build/release/Kitura-Starter-Bluemix
126126-----> Copying dynamic libraries
127127-----> Copying binaries to ' bin'
128128-----> Cleaning up build files
129- -----> Uploading droplet (14M )
129+ -----> Uploading droplet (8.7M )
130130
1311310 of 1 instances running, 1 starting
1321321 of 1 instances running
133133
134134App started
135135
136- ...
137136
137+ OK
138+
139+ App Kitura-Starter-Bluemix was started using this command ` Kitura-Starter-Bluemix`
140+
141+ Showing health and status for app Kitura-Starter-Bluemix in org roliv@us.ibm.com / space dev as roliv@us.ibm.com...
142+ OK
143+
144+ requested state: started
145+ instances: 1/1
146+ usage: 256M x 1 instances
147+ urls: kitura-starter-bluemix-nonadapting-disguisedness.mybluemix.net
148+ last uploaded: Thu May 5 18:09:46 UTC 2016
149+ stack: unknown
150+ buildpack: https://github.com/IBM-Swift/swift-buildpack
151+
152+ state since cpu memory disk details
153+ # 0 running 2016-05-05 01:14:58 PM 0.0% 12.8M of 256M 30.3M of 1G
154+ $
138155` ` `
139156
140157The buildpack will detect your app as Swift if it has a ` Package.swift` file in the root.
0 commit comments