How do I start a .NET console application on Iron Foundry?

52 views
Skip to first unread message

Andrei Faber

unread,
Jul 7, 2014, 2:41:59 PM7/7/14
to ironf...@googlegroups.com
Is this possible?

Button, Brian

unread,
Jul 7, 2014, 3:01:22 PM7/7/14
to ironf...@googlegroups.com
hi, Andrei,

Yes, it is very possible to do. You have two options:

* Name your application app.exe. If you do that, it will be started automatically.
* use the -C command to cf push, as in “cf push -C appname”. That tells the build pack how to start your application. There is an example of doing this through a manifest file in the https://github.com/ironfoundry/if_sample_apps in the MongoWorkerClusterSample app. Look at the QueryWorker manifest.yml file.

bab

--
Brian Button | Product Manager, Application Services
CenturyLink Cloud




On Jul 7, 2014, at 1:41 PM, Andrei Faber <andrei...@labs.cityindex.com> wrote:

Is this possible?

--
You received this message because you are subscribed to the Google Groups "Iron Foundry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironfoundry...@googlegroups.com.
To post to this group, send email to ironf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ironfoundry/9218a875-bb4a-4a8d-8560-9cf7b3367cce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


This message contains information which may be confidential and/or privileged. Unless you are the intended recipient (or authorized to receive for the intended recipient), you may not read, use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message and any attachment(s) thereto without retaining any copies.

Andrei Faber

unread,
Jul 7, 2014, 4:08:25 PM7/7/14
to ironf...@googlegroups.com
I've tried renaming it to app.exe, but it writes this error message in app logs:
(the same was happening, when I was trying to use the -C key)

2014-07-07T15:05:40.53-0500 [App/0]   ERR ./startup.ps1 : The term './startup.ps1' is not recognized as the name of a
2014-07-07T15:05:40.53-0500 [App/0]   ERR cmdlet, function, script file, or operable program. Check the spelling of the
2014-07-07T15:05:40.54-0500 [App/0]   ERR name, or if a path was included, verify that the path is correct and try again.
2014-07-07T15:05:40.54-0500 [App/0]   ERR At C:\IronFoundry\warden\containers\3rt839h4b45\gtq3nnfv.ps1:1 char:1
2014-07-07T15:05:40.54-0500 [App/0]   ERR + ./startup.ps1
2014-07-07T15:05:40.54-0500 [App/0]   ERR + ~~~~~~~~~~~~~
2014-07-07T15:05:40.54-0500 [App/0]   ERR     + CategoryInfo          : ObjectNotFound: (./startup.ps1:String) [], Comma
2014-07-07T15:05:40.54-0500 [App/0]   ERR    ndNotFoundException
2014-07-07T15:05:40.54-0500 [App/0]   ERR     + FullyQualifiedErrorId : CommandNotFoundException
2014-07-07T15:05:40.54-0500 [App/0]   ERR

Button, Brian

unread,
Jul 8, 2014, 9:44:43 AM7/8/14
to ironf...@googlegroups.com
Hi, Andrei,

I’m spending some time looking into your question. I remember seeing the exact same output in that past that you saw, but I can’t remember how I created it.

Could you possibly tell me the cf command line you used to push your application?

Thanks,
bab

--
Brian Button | Product Manager, Application Services
CenturyLink Cloud




On Jul 7, 2014, at 3:08 PM, Andrei Faber <andrei...@labs.cityindex.com> wrote:

2014-07-07T15:05:40.53-0500 [App/0]   ERR ./startup.ps1 : The term './startup.ps1' is not recognized as the name of a
2014-07-07T15:05:40.53-0500 [App/0]   ERR cmdlet, function, script file, or operable program. Check the spelling of the
2014-07-07T15:05:40.54-0500 [App/0]   ERR name, or if a path was included, verify that the path is correct and try again.
2014-07-07T15:05:40.54-0500 [App/0]   ERR At C:\IronFoundry\warden\containers\3rt839h4b45\gtq3nnfv.ps1:1 char:1
2014-07-07T15:05:40.54-0500 [App/0]   ERR + ./startup.ps1
2014-07-07T15:05:40.54-0500 [App/0]   ERR + ~~~~~~~~~~~~~
2014-07-07T15:05:40.54-0500 [App/0]   ERR     + CategoryInfo          : ObjectNotFound: (./startup.ps1:String) [], Comma
2014-07-07T15:05:40.54-0500 [App/0]   ERR    ndNotFoundException
2014-07-07T15:05:40.54-0500 [App/0]   ERR     + FullyQualifiedErrorId : CommandNotFoundException
2014-07-07T15:05:40.54-0500 [App/0]   ERR


Andrei Faber

unread,
Jul 8, 2014, 11:48:27 AM7/8/14
to ironf...@googlegroups.com
It's very simple:

cf push IronFoundryTestApp2 -s windows2012 -p bin


On Tuesday, July 8, 2014 8:44:43 AM UTC-5, brian.button wrote:

Alexander Makarenko

unread,
Jul 9, 2014, 2:20:24 PM7/9/14
to ironf...@googlegroups.com
Hello Andrei

I had a similar error when I was trying to push a node.js app to the windows 2012 stack. Is it a .net app in your case (maybe you should use a default stack)?

Thanks,
Alex 

On Monday, July 7, 2014 9:41:59 PM UTC+3, Andrei Faber wrote:
Is this possible?

Button, Brian

unread,
Jul 9, 2014, 3:39:13 PM7/9/14
to ironf...@googlegroups.com
His is working now, Alex. We talked about it off list, and it turned out to be a library and perm issue. 

I don't know if anyone has ever tried pushing a node app to a windows2012 stack. What error did you get?

bab


From: ironf...@googlegroups.com [ironf...@googlegroups.com] on behalf of Alexander Makarenko [makar...@gmail.com]
Sent: Wednesday, July 09, 2014 1:20 PM
To: ironf...@googlegroups.com
Subject: [ironfoundry] Re: How do I start a .NET console application on Iron Foundry?

--
You received this message because you are subscribed to the Google Groups "Iron Foundry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ironfoundry...@googlegroups.com.
To post to this group, send email to ironf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Brian Jimerson

unread,
Jul 20, 2014, 2:45:32 PM7/20/14
to ironf...@googlegroups.com
Hi Brian,

I'm having the exact same issue / error when I try to push a .NET app to a windows2012 stack.  Can you post the resolution for Alex?

Brian
Reply all
Reply to author
Forward
0 new messages