we are having weekly irc meeting in openstack-meeting-alt
mkam has quit
mkam joined the channel
vijendar
devkulkarni1: sorry…forgot about that :(
devkulkarni1
no worries, its still going on
zhurong has quit
zhurong joined the channel
caowei joined the channel
zhurong has quit
zhurong joined the channel
Ablu
devkulkarni1: thanks for hosting
solumuser__ joined the channel
caowei has quit
solumuser__ has quit
zhurong has quit
adrian_otto joined the channel
adrian_otto joined the channel
devkulkarni2 joined the channel
devkulkarni1 has quit
gpilz joined the channel
EricGonczer_ has quit
EricGonczer_ joined the channel
shivaSR joined the channel
devkulkarni2 has quit
devkulkarni1 joined the channel
shivaSR
Hi devkulkarni1
devkulkarni1
hi shivaSR
shivaSR
Got a minute?
devkulkarni1
sure
shivaSR
Thanks. So in the build-app script that you pointed me to, I notice that in the final stage of creating the docker file there is a script called build.sh. I can't seem to figure out where this script comes into play and its purpose.
devkulkarni1
ah right
that was the part about languagepack contract which I said yesterday that I will talk about later, but forgot
shivaSR
oh, lol.
devkulkarni1
so that script is part of the lp contract of required by solum .. it is to be provided in the repository of the lp.. let me show an example which will make it clear
the build.sh contains the command 'pip install -r requirements.txt'
the build.sh will be executed at the application build time when app requirements have become known
so this contract allows us to separate generic requirements from application specific requirements
the generic requirements (i.e. libraries/tools etc.) which are required by all apps (say, all python apps) would be defined in the Dockerfile
on the other hand, application-specific requirements are typically defined in application-specific way (requirements.txt in python, package.json in nodejs, pom.xml for java)
so build.sh is the mechanism that allows installing of application requirements at application build time (only after application requirements have become known)
cool. So, then would is be good practice for a unikernel language pack to contain instructions required to compile an application after installing the requirements? or should this be done in a separate script?
devkulkarni1
so both would work, only that the approach of separating the compilation of the application into a script would follow closely the philosophy of solum's application build step
may be you can first try that
anyways you will have to define build.sh in your lp repository..
application compilation would be last step in build.sh
similar to the java languagepack, where mvn package is the last command in its build.sh
that will install the requirements *and* create application war file
shivaSR
cool. seems very clear to me now...I notice in the examples for nodejs and java build.sh is in a subdirectory ./bin while the python example had it in the same directory as the docker file. is there any reason for this difference?
devkulkarni1
either should work.. copying of the build.sh or the bin directory is last step in Dockerfile. (checking build-app to double check if there is any difference) ..
all, will be back after lunch
devkulkarni2 joined the channel
devkulkarni1 has quit
devkulkarni2 has quit
shivaSR has quit
vijendar has quit
vijendar joined the channel
devkulkarni1 joined the channel
dimtruck is now known as zz_dimtruck
zz_dimtruck is now known as dimtruck
devkulkarni1 has quit
devkulkarni1 joined the channel
EricGonczer_ has quit
EricGonczer_ joined the channel
EricGonczer_ has quit
adrian_otto joined the channel
vijendar has quit
EricGonczer_ joined the channel
devkulkarni1 has quit
adrian_otto joined the channel
EricGonczer_ has quit
EricGonczer_ joined the channel
vijendar joined the channel
devkulkarni1 joined the channel
vijendar has quit
pt_15: your still around?
pt_15
devkulkarni1: yeah
devkulkarni1
pt_15: I am getting error in creating languagepack. filling bug now
you can take a look at it tomorrow as it is very late for you today
pt_15: also, once we have merged lp and app patches, one of the quick things that you should do is submit patches to get rid of Assemblies from the dashboard code
pt_15
devkulkarni1: oh OK cool, I'll do that :)
I'll take a look at the bug you're encountering tomorrow :)
devkulkarni1
yep, I was going to suggest that you prioritize that over app patches
that way, we can keep on the target of merging lp patches this week
pt_15
Yeah exactly what I was thinking too :)
devkulkarni1
pt_15: also, I would encourage you to write a blog post on how to do horizon related development — include things like - where are logs stored, how to debug the code, how to restart apache, and any other general setup things that you had to do. it will be helpful for anyone who wants to start working on horizon either in Solum or other projects
pt_15
devkulkarni1: yes, sure, I'll work on that :)
devkulkarni1
yeah.. I would encourage treating it as not something as a todo item, but more as your way to share your understanding/work so that others will benefit from it
pt_15
Yeah I had actually been thinking of something along these lines, and had thought of perhaps working on it over the weekend
EricGonczer_ has quit
devkulkarni1
Good, take your time. As I said, I don't want you think of it as an item that you have to complete, but treat it as an opportunity to share your knowledge. That is how value gets added to an open community. Also, you will be able to point others to this blog post who might be getting started on horizon development. In the future you can become someone who is knowledgeable about horizon and solum and can help out others in horizon
pt_15
Yes, i completely understand. I will make sure i think of the blog as a way of sharing my knowledge and a way of helping people who are getting started, rather than something that needs to be done.