Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Support chef-dk on Linux Debian Wheezy (aka Debian 7.x) #51

Closed
drazzib opened this issue May 15, 2014 · 16 comments
Closed

Support chef-dk on Linux Debian Wheezy (aka Debian 7.x) #51

drazzib opened this issue May 15, 2014 · 16 comments

Comments

@drazzib
Copy link

drazzib commented May 15, 2014

After installing chefdk on Debian Wheezy from Ubuntu packages, I got the following exception

$> sudo dpkg -i chefdk_0.1.0-1_amd64.deb
$> berks 
/opt/chefdk/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/chefdk/embedded/lib/libruby.so.2.1)
/opt/chefdk/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /opt/chefdk/embedded/lib/libruby.so.2.1)

I think it might not be too complicated to support Debian Wheezy since you already provide Ubuntu packages (AFAIK, it will only need a full recompilation of package from source).

@drazzib drazzib changed the title Support chef-dk on GNU/Linux Debian Wheezy Support chef-dk on GNU/Linux Debian Wheezy (Debian 7.x) May 15, 2014
@drazzib drazzib changed the title Support chef-dk on GNU/Linux Debian Wheezy (Debian 7.x) Support chef-dk on Linux Debian Wheezy (aka Debian 7.x) May 15, 2014
@jordane
Copy link
Contributor

jordane commented May 16, 2014

@drazzib This is because the Ubuntu package is built against newer versions of glibc that wheezy doesn't have. I opened a pull request chef-boneyard/omnibus-chef#164 to support building chefdk on wheezy (it requires one extra lib that ubuntu doesn't), so for the moment you can just pull that branch in and build it manually.

@jordane
Copy link
Contributor

jordane commented Jun 16, 2014

This can probably be closed as this was fixed in chef/omnibus-software#209

@drazzib
Copy link
Author

drazzib commented Aug 15, 2014

Hi!

I've tried to install latest chef-dk omnibus package (0.2.0 release) on Debian Wheezy but got same error. Since it's prebuilt for Ubuntu, this error is expected but I can't find a proper way to build chef-dk : I've followed instructions on (https://github.com/opscode/omnibus-chef) but I seems to require many preinstalled dependencies. Is there prebuild binaries for Debian or a VM to build easily built omnibus packages ?

Regards,

@jordane
Copy link
Contributor

jordane commented Aug 15, 2014

@drazzib Hello!

The instructions you followed are correct. You'll want to use test kitchen to spin up the vm, which will install all the dependencies and build requirements.

The instructions should look more or less like this:

cd omnibus-chef
bundle install --binstubs
kitchen setup chefdk-debian-74
kitchen login chefdk-debian-74
cd omnibus-chef
bin/omnibus build chefdk

There are more detailed instructions for using omnibus with test kitchen

@drazzib
Copy link
Author

drazzib commented Aug 17, 2014

Thanks for your help @jordane !

I've managed to build a working Debian package.
Do you think it will be possible :

  • to provide autobuild packages from master branch (using some sort of CI server) ?
  • for OpsCode to provide official support for Debian as a platform ?

Cheers,

@jordane
Copy link
Contributor

jordane commented Aug 18, 2014

@drazzib I'm not actually affiliated with Chef (I'm just an occasional contributor). As I understand it, Debian is currently not a supported platform for chef-dk, which means you're on your own for package distribution. I don't know if there are any plans to change this in the future.

@sersut sersut reopened this Aug 28, 2014
@sersut
Copy link

sersut commented Aug 28, 2014

/cc: @schisamo

@benlangfeld
Copy link

What would it take to produce Debian builds of the packages? If there's any way I can help with that, please just pass on a list :)

@sersut
Copy link

sersut commented Sep 5, 2014

@jordane explained this neatly in this comment:

#51 (comment)

@benlangfeld
Copy link

I understand how to build a package myself. I'm wondering how I might help to get official packages built and made available sustainably.

@jordane
Copy link
Contributor

jordane commented Sep 5, 2014

@benlangfeld It might be better to start a conversation about that on the proposed platform support rfc.

@benlangfeld
Copy link

Started that here, thanks.

@schisamo
Copy link
Contributor

schisamo commented Sep 5, 2014

I just added Debian builders and testers to the ChefDK build pipeline. Next release of ChefDK will have Debian support! :)

@jordane
Copy link
Contributor

jordane commented Sep 5, 2014

@schisamo Excellent news, thanks! :)

@benlangfeld
Copy link

Awesome, thanks @schisamo!

@drazzib
Copy link
Author

drazzib commented Sep 24, 2014

Hi all,

Since ChefDK 0.2.2 now support Debian Wheezy, this issue can be closed.
Thanks to everyone involved in this support !

https://downloads.getchef.com/chef-dk/debian/

@drazzib drazzib closed this as completed Sep 24, 2014
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants