Custom build pack [ failed to install WineHQ]


Balaramaraju JLSP <balaramaraju@...>
 

Hi All,

I am trying to create a custom build pack. To create a stack like WineHQ
with some VS2010 C++ Runtime to run windows native services.

BuildPack :-
bin/compile
#!/usr/bin/env bash echo "Install WineHQ"#wget
http://prdownloads.sourceforge.net/wine/wine-1.7.20.tar.bz2#tar -xjvf
wine-1.7.20.tar.bz2 && cd wine-1.7.*apt-get install wine1.7#./configure
--enable-win64#cd tools
#echo yes |./wineinstallecho "Update" echo "Load Custom Frameworks"echo "
Done"

but it failing with
-----> Downloaded app package (8.0K)
Cloning into '/tmp/buildpacks/WineHQ-BuildPack'...
Install WineHQ
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission
denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?

any help is very much appreciated.

Thanks

J L S P Balaramaraju


Pablo Alonso Rodriguez <palonsoro@...>
 

I am sorry, but in order to run apt-get you need root privileges and you do
not have them inside a Warden container of a DEA. Processes run as
unprivileged user "vcap" who cannot gain root privileges in any way, as far
as I know.
In general, you should not rely on apt packages but use self-contained
software with as less dependencies as possible.
I hope this helps.

El 25/06/2015 12:56, "Balaramaraju JLSP" <balaramaraju(a)gmail.com> escribió:


Hi All,

I am trying to create a custom build pack. To create a stack like WineHQ
with some VS2010 C++ Runtime to run windows native services.

BuildPack :-
bin/compile
#!/usr/bin/env bash echo "Install WineHQ"#wget
http://prdownloads.sourceforge.net/wine/wine-1.7.20.tar.bz2#tar -xjvf
wine-1.7.20.tar.bz2 && cd wine-1.7.*apt-get install wine1.7#./configure
--enable-win64#cd tools
#echo yes |./wineinstallecho "Update" echo "Load Custom Frameworks"echo "
Done"

but it failing with
-----> Downloaded app package (8.0K)
Cloning into '/tmp/buildpacks/WineHQ-BuildPack'...
Install WineHQ
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission
denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?

any help is very much appreciated.

Thanks

J L S P Balaramaraju

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev


Mike Dalessio
 

There are ways to install .deb packages as a normal user, as exemplified by
the following Heroku buildpack:

https://github.com/ddollar/heroku-buildpack-apt/blob/master/bin/compile
(Please note that this buildpack will not work on CF without
modifications.) You may want to investigate a variation of this method.


However, it's also worth noting that there is a team, currently using a
blend of Pivotal, Centurylink and HP technology and developers, who are
close to releasing actual Windows support. You can see more about this
project, code-named "Greenhouse", here:

https://github.com/cloudfoundry-incubator/garden-windows

Cheers,
-mike


On Thu, Jun 25, 2015 at 12:21 PM, Pablo Alonso Rodriguez <
palonsoro(a)gmail.com> wrote:

I am sorry, but in order to run apt-get you need root privileges and you
do not have them inside a Warden container of a DEA. Processes run as
unprivileged user "vcap" who cannot gain root privileges in any way, as far
as I know.
In general, you should not rely on apt packages but use self-contained
software with as less dependencies as possible.
I hope this helps.
El 25/06/2015 12:56, "Balaramaraju JLSP" <balaramaraju(a)gmail.com>
escribió:


Hi All,

I am trying to create a custom build pack. To create a stack like WineHQ
with some VS2010 C++ Runtime to run windows native services.

BuildPack :-
bin/compile
#!/usr/bin/env bash echo "Install WineHQ"#wget
http://prdownloads.sourceforge.net/wine/wine-1.7.20.tar.bz2#tar -xjvf
wine-1.7.20.tar.bz2 && cd wine-1.7.*apt-get install wine1.7#./configure
--enable-win64#cd tools
#echo yes |./wineinstallecho "Update" echo "Load Custom Frameworks"echo "
Done"

but it failing with
-----> Downloaded app package (8.0K)
Cloning into '/tmp/buildpacks/WineHQ-BuildPack'...
Install WineHQ
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission
denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?

any help is very much appreciated.

Thanks

J L S P Balaramaraju

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev

_______________________________________________
cf-dev mailing list
cf-dev(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-dev