Tag: chef

chef-container + chef-vault

I try to run few Chef cookbooks in docker. chef-container seams to be a good solution for this. In the cookbook I use credentials which come from encrypted data_bags via chef-vault. Is there already a solution for chef-container in combination with chef-vault?

Packer docker build exits code 137 when running runit cookbook

I’m trying to use Packer to build a docker image of the webapp I’m working on. Whenever I run packer build, when it gets to the step that it runs the runit recipe, I would get Build ‘docker’ errored: Error executing Chef: Non-zero exit status: 137 I looked into 137, and found out this is […]

How to manage deployment?

I am new to DevOps, and need to develop a strategy for a growing business that will handle many different services/nodes (like 100). I’ve been learning about Docker, and it seems like Docker Cloud is a good service, but I just don’t really know the standard use cases of the various services, and how to […]

chef-server stuck ruby_block[supervise_rabbitmq_sleep] when running reconfigure

I’m installing an instance of chef-server with this dockerfile (I based it on this file in Docker Hub) FROM ubuntu:14.04 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -yq wget RUN wget –content-disposition “https://packages.chef.io/stable/ubuntu/12.04/chef-server_11.1.7-1_amd64.deb” RUN dpkg -i chef-server*.deb RUN dpkg-divert –local –rename –add /sbin/initctl RUN ln -sv /bin/true /sbin/initctl COPY chef-server.rb /etc/opscode/ RUN chef-server-ctl […]

AWS opswork docker: Missing Cookbooks:No such cookbook: docker

I am trying to deploy dockers with opswork but the setup fails. Logs are copied below. +================================================================================+ +Error Resolving Cookbooks for Run List:+ +================================================================================+ +Missing Cookbooks:+ +——————+ +No such cookbook: docker+ +Expanded Run List:+ +——————+ +* cookbook_sr::install+ +* cookbook_sr::docker-deploy+ +Platform:+ +———+ My recipes are, 1) install.rb case node[:platform] when “ubuntu”,”debian” package “docker.io” do action :install […]

How can I achieve installing a application like Jenkins into a running CentOs container running inside a CentOs image using chef-recipe?

How can I achieve installing a application like Jenkins into a running CentOs container running inside a CentOs image using chef-recipe? docker_service ‘default’ do action [:create, :start] end # Pull latest image docker_image node[‘chef-docker’][‘docker-platform’] do tag ‘latest’ action :pull end # Run container docker_container node[‘chef-docker’][‘container-name’] do repo node[‘chef-docker’][‘container-repo’] command ‘/bin/bash’ port ’80:80′ tty true action […]

Chef Test Kitchen verify file exists inside Docker container

I try to run simple test using Chef test kitchen: describe file(‘/opt/test_file.txt’) do it { should exist } end I can easy run this test on my kitchen machine (virtualBox/centos-7.2) using kitchen verify. How can I run this test inside a Docker container installed in my kitchen machine?

Want to ssh into a running docker container running inside CentOs Image

I want to ssh into a running CentOs container running inside a CentOs image. My aim is to SSH into container and install applications into it. Please provide me appropriate steps for this. Ran below command yum install openssh-server Used below approach but did not get the result. How to get into a docker container?

Error response from daemon: Container f88566c370dd is not running

I am observing below error while i execute below command cmd used- docker exec -it f88566c370dd /bin/bash error observed- Error response from daemon: Container f88566c370dd is not running What I am doing- Trying to execute chef recipe from VM to Pull Image and Rum three Centos containers. Chef-recipe- # # Cookbook Name:: chef-docker # Recipe:: […]

Installation of chef-client(Bootstrapping) on docker container in a VM on Azure/AWS

Scenario: Bootstrapping container to chef server in the same way as we bootstrap azure VM’s. Steps to Reproduce: Install Chef-client using knife bootstrap Run some recipe/role to install or configure container Expected Result: Installation of software such as java, python, or tools such as Jenkins, tomcat Actual Result: Error : SSH connection timeout when knife […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.