Questions tagged [recipe]

In general terms, a recipe is a set of instructions that describe how to prepare or make something, with respect to computing it's typically used to describe a set of rules used to manage building code.

The term "recipe" refers to a set of instruction, usually in a standalone text based file, which are interpreted by an application that will use them to execute a build.

Because a "recipe" is a very general term, it should be paired with another tag to help identify what system it is in reference to.

Examples of systems which use recipes:

GNU Makefiles use the term recipe with respect to writing rules for make to interpret.

Bitbake uses recipes files (typically with a .bb extension) which tell bitbake how to fetch code, build dependencies, make configurations, and do installations.

436 questions
5
votes
2 answers

Unable to find Cookbooks in local-mode with chef-client

I am new to Chef and following a tutorial which is providing information on running a default recipe inside a cookbook or a specific recipe. The tree output for my Cookbook is as follows: pwd /opt/dk-chef/python_code/Chef [root@LUMOS Chef]# tree…
John Squarry
  • 81
  • 1
  • 9
5
votes
1 answer

Add tcpdump in yocto build (Beaglebone Black)

I want to add tcpdump into yocto build I found that I need to add meta-networking into bblayers.conf. meta-networking is apart of meta-openembedded Following are the steps I followed : Downloaded complete meta-openembedded : git clone…
Sandeep
  • 18,356
  • 16
  • 68
  • 108
5
votes
1 answer

Chef cannot get httpd depend

I am learning chef at the moment using OpsWorks , currently I am trying to create a recipe that will install 2 package in one instance. I stored my cookbook on github.. there I have a recipe that is like this - webserver.rb # Install apache and…
Drixson Oseña
  • 3,631
  • 3
  • 23
  • 36
5
votes
1 answer

Marking imprecise durations in recipe microdata

It's easy to markup a recipe's cooking or preparation time if it's for a specific time range: Prep time: Cook time: However, many…
user458541
5
votes
2 answers

How to install directory structure recursively in OpenEmbedded BitBake recipe?

I'd like to simplify a BitBake recipe that installs a large directory structure by using some sort of recursive install routine rather than calling install many times. The source directory layout is frequently changing during development, which is…
user5071535
  • 1,312
  • 8
  • 25
  • 42
5
votes
2 answers

Yocto recipe : how to install in specific folder

I have created a Yocto recipe for my program. What are the default folders that are building image from recipe ? At the time of building image, I want to move my files to another folder like "/opt/xyz". Should I simply do "mv" or is there any other…
surfnerd
  • 127
  • 2
  • 3
  • 9
5
votes
1 answer

how to use shell script in not_if condition

I want to use shell script output to validate the resource in guard condition.I am using below code still its not working. bash "stampDisksuccess" do code <<-EOH whoami EOH user 'root' not_if…
SASI
  • 475
  • 2
  • 7
  • 16
5
votes
2 answers

Installing a gem after native extension packages during chef execution

I am trying to install the fog gem in a chef recipe though the gem installation occurs before the native packages are being installed so the gem installation fails package "libxslt-dev" package "libxml2-dev" chef_gem "fog" This is the output [Thu,…
vervas
  • 457
  • 4
  • 12
4
votes
4 answers

PHP MySQL recipe search based on what ingredients are provided

Say I have a database of recipes, and I want to search through them based on what ingredients I have. There should be 3 tables: Recipes (rid, rname), Ingredients (iid, iname), Relationship (rid, iid) Next, lets imagine I have a recipe for 'toast'…
digiwig
  • 621
  • 1
  • 9
  • 21
4
votes
1 answer

PCA, TidyModels; how to change rotation method in step_pca?

I'm trying to preform PCA (principal component analysis) using TidyModels. I have created a recipe but I don't know how can I change the default rotation used in `step_pca() method (such as changing it to say Varimax rotation). any ideas? this is my…
4
votes
1 answer

Why does the book How to Design Programs chose this approach on their answer sheet?

I am using the famous book How to Design Programs. More specifically, the first edition (I have the physical one). In the 6th chapter, there are some exercises with Structures. In one of them, you need to simulate traffic lights and use effects…
Pedro Delfino
  • 2,421
  • 1
  • 15
  • 30
4
votes
2 answers

Predict with step_naomit and retain ID using tidymodels

I am trying to retain an ID on the row when predicting using a Random Forest model to merge back on to the original dataframe. I am using step_naomit in the recipe that removes the rows with missing data when I bake the training data, but also…
R_User123456789
  • 650
  • 7
  • 9
4
votes
1 answer

IMAGE_INSTALL vs PACKAGE_FEATURES - what's the difference?

I am trying to create my own customized linux image and I am trying to figure out how to install packages I need and found that there were multiple ways of installing packages. I read through the yoctoproject manual and read through definitions of…
dianaleeg
  • 69
  • 6
4
votes
4 answers

Modifying core-image-minimal to only make rootfs

I am working on an embedded project on Zedboard. I would like (at least for now) to use Bitbake only to produce proper rootfs. I use recipe core-image-minimal, as I need only limited amount of staff there. How can I "tell" it to not compile kernel,…
Staszek
  • 849
  • 11
  • 28
4
votes
2 answers

Ruby / Chef: is there a way to refer to the resource 'name' and pass to a function?

Please see the following code, using the log resource in chef. log 'Hello there' do level :info notifies :run, "log_to_chat('Hello there')" end Is there a way to refer to the resource name (in this case: 'Hello there') when I pass it to the…
vikingsteve
  • 38,481
  • 23
  • 112
  • 156
1 2
3
29 30