The following demo is using the same code IBM Bluemix created when using the Experimental ASP .NET 5 runtime. This can be done using the CF CLI where we clone the project from jazzhub git repository.
Steps
1. Clone a sample project as follows
pas@Pass-MacBook-Pro:~/bluemix-apps/DOTNET$ git clone https://hub.jazz.net/git/pasapples/pas-donet-demo.git
Cloning into 'pas-donet-demo'...
remote: Counting objects: 24, done
remote: Finding sources: 100% (24/24)
remote: Total 24 (delta 0), reused 24 (delta 0)
Unpacking objects: 100% (24/24), done.
Checking connectivity... done.
2. cd pas-donet-demo
3. Edit manifest.yml to use a unique host name
applications:
- disk_quota: 1024M
host: pas-donet-demo
name: pas-donet-demo
path: .
domain: mybluemix.net
instances: 1
memory: 256M
4. Deploy as follows
pas@Pass-MacBook-Pro:~/bluemix-apps/DOTNET/pas-donet-demo$ cf push -f manifest.yml
Using manifest file manifest.yml
Creating app pas-donet-demo in org pasapi@au1.ibm.com / space dev as pasapi@au1.ibm.com...
OK
Creating route pas-donet-demo.mybluemix.net...
OK
Binding pas-donet-demo.mybluemix.net to pas-donet-demo...
OK
Uploading pas-donet-demo...
Uploading app files from: .
Uploading 19.9K, 15 files
Done uploading
OK
Starting app pas-donet-demo in org pasapi@au1.ibm.com / space dev as pasapi@au1.ibm.com...
-----> Downloaded app package (20K)
************************************************************************
* WARNING: This is an experimental buildpack. It is not supported. *
* Do not expect it to work reliably. Please, do not *
* contact support about issues with this buildpack. *
************************************************************************
.
-----> Extracting mono
Using mono mono-lucid64-3.12.1.tar.gz
OK
-----> Adding Nowin.vNext
Copied 3 files from /var/vcap/data/dea_next/admin_buildpacks/2b638599-b3da-44e9-86f0-6b2f513daa4f_87e6c7503171fc3d6db9055873938657ca3ea6c6/resources/Nowin.vNext to /tmp/staged/app/src
OK
....
Total time 361ms
OK
-----> Moving files in to place
Copied 1865 files from /app/mono to /tmp/staged/app
OK
-----> Saving to buildpack cache
Copied 628 files from /tmp/staged/app/.k to /tmp/cache
OK
-----> Writing Release YML
OK
-----> Uploading droplet (136M)
0 of 1 instances running, 1 starting
1 of 1 instances running
App started
OK
App pas-donet-demo was started using this command `cd src/samplemvc; sleep 999999 | k cf-web`
Showing health and status for app pas-donet-demo in org pasapi@au1.ibm.com / space dev as pasapi@au1.ibm.com...
OK
requested state: started
instances: 1/1
usage: 256M x 1 instances
urls: pas-donet-demo.mybluemix.net
last uploaded: Fri May 15 11:38:29 UTC 2015
state since cpu memory disk details
#0 running 2015-05-15 09:40:30 PM 0.1% 168.9M of 256M 369.8M of 1G
5. Finally access the application using the route as shown below.
eg: http://pas-donet-demo.mybluemix.net
No comments:
Post a Comment