Git Product home page Git Product logo

binary-buildpack's Introduction

Cloud Foundry Binary Buildpack

CF Slack Join us on Slack

A Cloud Foundry buildpack for running arbitrary binary web servers.

Buildpack User Documentation

Official buildpack documentation can be found at binary buildpack docs.

Building the Buildpack

To build this buildpack, run the following command from the buildpack's directory:

  1. Source the .envrc file in the buildpack directory.

    source .envrc

    To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  2. Install buildpack-packager

    go install github.com/cloudfoundry/libbuildpack/packager/buildpack-packager
  3. Build the buildpack

    buildpack-packager build [ --cached=(true|false) ]
  4. Use in Cloud Foundry

    Upload the buildpack to your Cloud Foundry and optionally specify it by name

    cf create-buildpack [BUILDPACK_NAME] [BUILDPACK_ZIP_FILE_PATH] 1
    cf push my_app [-b BUILDPACK_NAME]

Testing

Buildpacks use the Cutlass framework for running integration tests.

To test this buildpack, run the following command from the buildpack's directory:

  1. Source the .envrc file in the buildpack directory.

    source .envrc

    To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  2. Run unit tests

    ./scripts/unit.sh
  3. Run integration tests

    ./scripts/integration.sh

Contributing

Find our guidelines here.

Help and Support

Join the #buildpacks channel in our Slack community if you need any further assistance.

Reporting Issues

Open a GitHub issue on this project here

binary-buildpack's People

Contributors

accrazed avatar ameyer-pivotal avatar anyu avatar arjun024 avatar astrieanna avatar ben16 avatar brayanhenao avatar cf-buildpacks-eng avatar crawsible avatar dannyzen avatar davidjahn avatar dependabot[bot] avatar dfreilich avatar dgodd avatar dwillist avatar foresteckhardt avatar geramirez avatar glide1 avatar jfeeny avatar jtarchie avatar jvshahid avatar kardolus avatar mdelillo avatar mhoran avatar nikitarathi23 avatar rakrup avatar rochesterinnyc avatar ryanmoran avatar sesmith177 avatar tisvictress avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binary-buildpack's Issues

Unable to run .NET console application

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?
{
"name": "",
"build": "",
"support": "https://support.pivotal.io",
"version": 0,
"description": "",
"authorization_endpoint": "",
"token_endpoint": "",
"min_cli_version": "6.7.0",
"min_recommended_cli_version": "6.11.2",
"api_version": "2.54.0",
"app_ssh_endpoint": "",
"app_ssh_host_key_fingerprint": "3c:e2:ce:3d:fc:61:f6:84:f9:75:cd:03:c1:b4:c3:73",
"app_ssh_oauth_client": "ssh-proxy",
"logging_endpoint": "",
"doppler_logging_endpoint": "",
"user": ""
}

What version of the buildpack you are using?
version is 1.0.1

If you were attempting to accomplish a task, what was it you were attempting to do?
I'm unable to run a console application. I have said no-route to true, health check status to process, command as <>.exe
What did you expect to happen?
The console app should start like a process

What was the actual behavior?
Even though I gave the start command it is not picking up the same. It says start command cannot be found and it is getting crashed.

logs are as below
Connected, dumping recent logs for app CFConsoleApp in org Foundry Dev / space Microservices as admin...

2017-05-03T17:00:09.76+0530 [STG/0] OUT Downloading binary_buildpack...
2017-05-03T17:00:09.79+0530 [STG/0] OUT Downloaded binary_buildpack
2017-05-03T17:00:09.79+0530 [STG/0] OUT Creating container
2017-05-03T17:00:12.07+0530 [STG/0] OUT Successfully created container
2017-05-03T17:00:12.08+0530 [STG/0] OUT Downloading app package...
2017-05-03T17:00:12.50+0530 [STG/0] OUT Downloaded app package (30.4K)
2017-05-03T17:00:12.50+0530 [STG/0] OUT Staging...
2017-05-03T17:00:12.57+0530 [STG/0] ERR No start command detected
2017-05-03T17:00:12.71+0530 [STG/0] OUT Uploading droplet...
2017-05-03T17:00:12.71+0530 [STG/0] OUT Exit status 0
2017-05-03T17:00:12.71+0530 [STG/0] OUT Staging complete
2017-05-03T17:00:12.71+0530 [STG/0] OUT Uploading droplet, build artifacts cache...
2017-05-03T17:00:12.71+0530 [STG/0] OUT Uploading build artifacts cache...
2017-05-03T17:00:12.77+0530 [STG/0] OUT Uploaded build artifacts cache (87B)
2017-05-03T17:00:35.25+0530 [API/0] OUT Created app with guid 32384a05-4605-4da5-bad1-1c7869993e68
2017-05-03T17:00:37.79+0530 [STG/0] OUT Uploaded droplet (22.1K)
2017-05-03T17:00:37.79+0530 [STG/0] OUT Uploading complete
2017-05-03T17:00:38.10+0530 [CELL/0] OUT Creating container
2017-05-03T17:00:41.72+0530 [CELL/0] OUT Successfully created container
2017-05-03T17:00:42.74+0530 [APP/0] OUT Running bin/release/CFConsoleApp.exe
2017-05-03T17:00:44.36+0530 [API/0] OUT Updated app with guid 32384a05-4605-4da5-bad1-1c7869993e68 ({"state"=>"STARTED"})
2017-05-03T17:00:44.79+0530 [APP/0] OUT Exit status 2
2017-05-03T17:00:45.02+0530 [CELL/0] OUT Exit status -26
2017-05-03T17:00:45.05+0530 [CELL/0] OUT Creating container
2017-05-03T17:00:48.47+0530 [CELL/0] OUT Successfully created container
2017-05-03T17:00:50.45+0530 [APP/0] OUT Running bin/release/CFConsoleApp.exe
2017-05-03T17:00:50.45+0530 [APP/0] OUT Exit status 2
2017-05-03T17:00:50.67+0530 [CELL/0] OUT Exit status -26
2017-05-03T17:00:50.71+0530 [CELL/0] OUT Creating container
2017-05-03T17:00:54.06+0530 [CELL/0] OUT Successfully created container
2017-05-03T17:00:54.97+0530 [APP/0] OUT Running bin/release/CFConsoleApp.exe
2017-05-03T17:00:54.98+0530 [APP/0] OUT Exit status 2
2017-05-03T17:00:56.08+0530 [CELL/0] OUT Exit status -26
2017-05-03T17:01:19.65+0530 [API/0] OUT App instance exited with guid 32384a05-4605-4da5-bad1-1c7869993e68 payload: {"instance"=>"e2857e08-0fba-4ea7-51bc-0970012ecbb3", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* Exited with status 2\n* cancelled", "crash_count"=>1, "crash_timestamp"=>1493811079631692499, "version"=>"a5833d94-0c6e-460c-bb45-08847bd161c1"}
2017-05-03T17:01:25.31+0530 [API/0] OUT App instance exited with guid 32384a05-4605-4da5-bad1-1c7869993e68 payload: {"instance"=>"f0b144ec-7495-451a-6a83-eede6f41e308", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* Exited with status 2\n* cancelled", "crash_count"=>2, "crash_timestamp"=>1493811085286859655, "version"=>"a5833d94-0c6e-460c-bb45-08847bd161c1"}
2017-05-03T17:01:30.70+0530 [API/0] OUT App instance exited with guid 32384a05-4605-4da5-bad1-1c7869993e68 payload: {"instance"=>"66854251-772d-43ec-4674-4bb1ff0258e9", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* Exited with status 2\n* cancelled", "crash_count"=>3, "crash_timestamp"=>1493811090693720364, "version"=>"a5833d94-0c6e-460c-bb45-08847bd161c1"}
2017-05-03T17:01:34.21+0530 [CELL/0] OUT Creating container
2017-05-03T17:01:36.40+0530 [CELL/0] OUT Successfully created container
2017-05-03T17:01:37.51+0530 [APP/0] OUT Running bin/release/CFConsoleApp.exe
2017-05-03T17:01:37.51+0530 [APP/0] OUT Exit status 2
2017-05-03T17:01:38.42+0530 [CELL/0] OUT Exit status -26
2017-05-03T17:02:13.05+0530 [API/0] OUT App instance exited with guid 32384a05-4605-4da5-bad1-1c7869993e68 payload: {"instance"=>"11b4429d-a17d-4ae8-62c5-9667e54fd61a", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* Exited with status 2\n* cancelled", "crash_count"=>4, "crash_timestamp"=>1493811133037413883, "version"=>"a5833d94-0c6e-460c-bb45-08847bd161c1"}

Question on https://github.com/cloudfoundry/binary-buildpack/issues/18

Hi, I'm opening a new issue because I don't know how to reopen any closed issue (sorry for that).

In the:
#18

I read (as said by Stephen Levine):

"Everything in fixtures is test data that isn't included in the buildpack. Those versions don't exist, as you've noticed".

May I kindly ask you to please clarify that? what do you mean with "everything"? and what do you mean that isn't included in the buildpack? for example there is another "fixture" directory in the binary buildpack at https://github.com/cloudfoundry/binary-buildpack/tree/v1.0.17/fixtures.

Finally, that is valid for all the other buildpacks? I mean: is it a standard rule that what is in fixtures is test data that isn't included in the buildpack?

Thanks again.

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

afabc43 Updating github-config
904c6de Update libbuildpack
e52af8d Update libbuildpack
a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

904c6de Update libbuildpack
e52af8d Update libbuildpack
a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

follow on of https://github.com/cloudfoundry/binary-buildpack/issues/21

Hi, this is a comment for #21

that has been closed before I could add this comment and that I've added, but the issue has remained closed.

**This is for ALL directories with this name in ALL the buildpacks? because I see the name "fixtures" in a lot of positions, for example https://github.com/cloudfoundry/binary-buildpack/tree/master/src/binary/vendor/github.com/cloudfoundry/libbuildpack/fixtures

Thanks for your patience!**

IMPORTANT NOTICE: End of support for cflinuxfs2 buildpacks after 2019-08-31

This notice is regarding the end of support for cflinuxfs2 buildpacks after 2019-08-31. As previously mentioned, Ubuntu has ended support for 14.04, and with that, support for cflinuxfs2 has also ended. Due to the need to migrate all applications from cflinuxfs2 to cflinuxfs3, we have continued to release cflinuxfs2 buildpacks while those migrations came to a conclusion. After August 31, 2019, all buildpack releases will be for cflinuxfs3 only.

If you are still in need of migrating your applications over to cflinuxfs3, the Stack Auditor tool can be of use.

buildpack-packager binary distribution

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?

{
   "name": "",
   "build": "",
   "support": "https://support.run.pivotal.io",
   "version": 0,
   "description": "Cloud Foundry sponsored by Pivotal",
   "authorization_endpoint": "https://login.run.pivotal.io",
   "token_endpoint": "https://uaa.run.pivotal.io",
   "min_cli_version": "6.22.0",
   "min_recommended_cli_version": "latest",
   "api_version": "2.116.0",
   "app_ssh_endpoint": "ssh.run.pivotal.io:2222",
   "app_ssh_host_key_fingerprint": "e7:13:4e:32:ee:39:62:df:54:41:d7:f7:8b:b2:a7:6b",
   "app_ssh_oauth_client": "ssh-proxy",
   "doppler_logging_endpoint": "wss://doppler.run.pivotal.io:443",
   "routing_endpoint": "https://api.run.pivotal.io/routing",
   "user": "989efafd-7b12-4108-8400-8ddb1800bd72"
}
cf version 6.37.0+a40009753.2018-05-25

What version of the buildpack you are using?
None, I can't make it compile.

If you were attempting to accomplish a task, what was it you were attempting to do?
Run a rust statically compiled binary as a service with cf generating a binary buildpack.

What did you expect to happen?
I wished for a binary distribution of buildpack-packager - I am not exactly a go-lang type and to me it is not straight forward to get it setup.

What was the actual behavior?
The provided setup/compile command did not make it compile as expected but errored out with:

go get github.com/cloudfoundry/libbuildpack
cd ~/go/src/github.com/cloudfoundry/libbuildpack/packager/buildpack-packager && go install

main.go:15:2: cannot find package "github.com/google/subcommands" in any of:
	/usr/lib/golang/src/github.com/google/subcommands (from $GOROOT)
	/home/bernhard/go/src/github.com/google/subcommands (from $GOPATH)

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

.net IBM Bluemix

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?

"name": "IBM Cloud",
"build": "v11.2.0",
"support": "http://ibm.biz/bluemix-supportinfo",
"version": 0,
"description": "IBM Bluemix",
"authorization_endpoint": "https://iam.cloud.ibm.com/cloudfoundry/login/us-south",
"token_endpoint": "https://uaa.us-south.cf.cloud.ibm.com",
"min_cli_version": null,
"min_recommended_cli_version": null,
"app_ssh_endpoint": "ssh.us-south.cf.cloud.ibm.com:2222",
"app_ssh_host_key_fingerprint": "c7:1f:89:2a:62:3b:78:a9:08:c9:33:81:fb:39:26:da",
"app_ssh_oauth_client": "ssh-proxy",
"doppler_logging_endpoint": "wss://doppler.us-south.cf.cloud.ibm.com:443",
"api_version": "2.141.0",
"osbapi_version": "2.15",
"user": "97f2c047-b1a5-4ec8-a496-8284558ca96e"
}
cf.exe version 6.41.0+dd4c76cdd.2018-11-28

What version of the buildpack you are using?
ibmcloud cf push X -b https://github.com/cloudfoundry/binary-buildpack.git#v1.0.35

If you were attempting to accomplish a task, what was it you were attempting to do?
Can`t even install the buildpack.
After push command with -b .git, new buildpack not showing in CLI.
image

What did you expect to happen?
Expect see you buildpack in ibm cli console

What was the actual behavior?
Not exist.
Maybe I not understand something. But I really try to find a solution, now I need help. Maybe I need to look at another side. I`m a newbie with Cloud and can do baby bugs.
Thanks.

Task:
Deploy a .net framework console to IBM for scaling.
API .net Core already deployed, but with framework not so easy.
IBM CLI provides only one stack "cflinuxfx3" and I can`t find way to create one more "windows".

Will be thankful for topics, videos or any important/useful info.

Please confirm where necessary:

  • [+] I have included a log output
  • My log includes an error message
  • [+ ] I have included steps for reproduction

source of binaries listed in manifest

Hi, my team would like to use binary-buildpack 1.0.17 and to approve that I've to analyze it's source code and the code of its dependencies chain, so be sure that they don't have problematic licenses.

But we were not able to discover the download location of some packages.

They are those listed at https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/fixtures/manifest/fetch/manifest.yml:

thing, other thing, nonsemver, etc.

(except "godep v79" that we already know).

Could you please indicate me what they are and at which URL I can download their source code from?

Thanks a lot.

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

IMPORTANT NOTICE: [binary-buildpack] Deprecation Notice Policy Changes

Attention Buildpacks users:

The Buildpacks team will no longer provide notices regarding the deprecation or removal of buildpack dependencies effective 30 days from the date of this notice.

Information about buildpacks and their dependencies (including dependency deprecation dates) can now be found at: https://buildpacks.cloudfoundry.org/#/buildpacks

As part of this change, version lines of buildpack dependencies will be removed on or after the date listed at the url above. Users should prepare accordingly to ensure their applications continue to work once these version lines are no longer supported.

Thanks,
Buildpacks Team

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

afabc43 Updating github-config
904c6de Update libbuildpack
e52af8d Update libbuildpack
a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

STDOUT is not displaying on cf console nor in loggregator

Hi,
I have developed the sample .net Application(visual studio 2015). I have use following code.
console.writeln("message");

The above command printing on STDOUT. But its not displaying on cf console nor in loggregator.

Like same if i will use the System.out.println() in java application with different buildpack then its printing on cf console.

Does this bug in binary buildpack?

I am using following cf and buildpack version.
Cloud Foundry version: cf -v247
binary_buildpack=v1.0.5

Thanks in advanced.

Checksum mismatch for offline buildpack

Hey everyone,

While trying to build the offline binary-buildpack i get the following Error:

go build '-ldflags=-s -w' -o bin/supply ./src/binary/supply/cli go: downloading github.com/cloudfoundry/libbuildpack v0.0.0-20181203192608-40fcf6231d2e go: verifying github.com/cloudfoundry/[email protected]: checksum mismatch downloaded: h1:kHxAIoqlm9ABNd45IYQ+5TjBgLu3jkoBIqssOkkH0UQ= go.sum: h1:n5B4kVCmuOwi7Q98xvHqEDYwpKBBB96lmlN/zaS7+bc=

I have tried to update the module in the go.mod file to use the latest version supported in the go-buildpack github.com/cloudfoundry/libbuildpack v0.0.0-20190110200243-27d5cb5e3702

It worked.

It would be great to update the libbuildpack module in the go.mod section.

I guess @cf-buildpacks-eng is the right "person" to change it.

Thanks
Timo

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

a72ef18 Updating github-config
14ea0bf Updating github-config
afabc43 Updating github-config
904c6de Update libbuildpack
e52af8d Update libbuildpack
a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

Staging succeeds when no Procfile or `-c` flag provided

On PWS @ CF API 2.68.0 using the provided binary_buildpack

When pushing an app without a Procfile or -c command, staging succeeded:

Downloading binary_buildpack...
Downloaded binary_buildpack
Creating container
Successfully created container
Downloading app package...
Downloaded app package (2.7M)
Staging...
Exit status 0
Staging complete

However the app fails to start:

0 of 1 instances running, 1 crashed
error: Error restarting application: Start unsuccessful

TIP: use 'cf logs the-butler --recent' for more information
error running command: exit status 1

..and the TIP is not helpful, as the logs only show the following:

2017-01-05T16:50:14.98-0800 [CELL/0]     OUT Starting health monitoring of container
2017-01-05T16:50:15.27-0800 [APP/PROC/WEB/0]OUT Exit status 1
2017-01-05T16:50:15.34-0800 [CELL/0]     OUT Exit status 143

I believe the app should have failed to stage, or at the very least give a better error message indicating CF did not know how to start the app.

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

Errors while running the binary-buildpack test suit

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?
Running on local laptop - vagrant based pcf dev instance.
api endpoint: https://api.local.pcfdev.io api version: 2.82.0
What version of the buildpack you are using?
master branch

If you were attempting to accomplish a task, what was it you were attempting to do?
trying to run all the integration tests using machete

What did you expect to happen?
all tests to succeed.

What was the actual behavior?
there are test failures.

Please confirm where necessary:

  • I have included a log output
    Error Log
  • My log includes an error message
    Yes
  • I have included steps for reproduction
    Yes

Where did dotnet go?

the V1.1.2 binary_buildpack for windows stack no longer has .net installed.
I don't see anything saying it was being removed?

Typo in buildpack names

set message=Warning: We detected a Web.config in your app. This probably means that you want to use the hwc-buildpack. If you really want to use the binary-buildpack, you must specify a start command.

hwc-buildpack should be hwc_buildpack and binary-buildpack should be binary_buildpack

**Release:** binary-buildpack 1.0.37

Dependency Changes:

No dependency changes

New Commits on Develop:

14dc499 Update libbuildpack
e835e42 Update libbuildpack
cc9064c Update libbuildpack
e79efee Update libbuildpack
756c5b2 Update libbuildpack
aae5b99 Update libbuildpack
c373ef9 Update libbuildpack
2d38f0d Update libbuildpack
1bf5065 Update libbuildpack
c03de6d Update libbuildpack
bb6f3ae Update libbuildpack
7007033 Update libbuildpack
4c6ed06 Update libbuildpack
c907c54 Update libbuildpack
fea092f Update libbuildpack
1ce905f Update libbuildpack
3658132 Update libbuildpack
55875ad Update libbuildpack
4246125 Update libbuildpack
9f62d34 Update libbuildpack
8e6bfc9 Update libbuildpack
234658c Update libbuildpack
91bb15e Updates version of go used to build buildpack from source on CF
60ee906 Update libbuildpack
5dd348f Update libbuildpack
73646b9 Update libbuildpack
09496a9 Update libbuildpack
a327f13 Update libbuildpack
bb6c5a4 Update libbuildpack
3191fbd Update libbuildpack
e998430 Update libbuildpack
bc39e91 Update libbuildpack
6fa6517 Update libbuildpack
e7daae2 Update libbuildpack
98392a5 Update libbuildpack
9ea481c Update libbuildpack
380a046 Update libbuildpack
f98e15f Update libbuildpack
591dfa7 Update libbuildpack
365b7a8 Update libbuildpack
faaf6e3 Update libbuildpack
3538c5a Update libbuildpack
c99816f Update libbuildpack
b6c896b Update libbuildpack
8f9ba5a Update libbuildpack
1c6046b Update libbuildpack
c592049 Update libbuildpack
edd9798 Update libbuildpack
9b698b6 Update libbuildpack
8a8d6d2 Update libbuildpack
675f9ce Update libbuildpack
313861e Update libbuildpack
ac7f523 Update libbuildpack
555c671 Update libbuildpack
c165ebc Update libbuildpack
1dc0c19 Update libbuildpack
291f8a3 Update libbuildpack
784b72b Update libbuildpack
fbbc654 Update libbuildpack
08527c2 Update libbuildpack
b3b748a Update libbuildpack

Refer to release instructions.

Multi Buildpack support in Binary Buildpacks.

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?

"name": "PCF Small Footprint",
"build": "2.3.0-build.264",
"support": "https://support.pivotal.io"

What version of the buildpack you are using?
cf version 6.40.0+07673feb9.2018-10-08

If you were attempting to accomplish a task, what was it you were attempting to do?

We are planning to add support for instrumenting PCF .NET Core Windows applications using AppDynamics using an extension buildpack. We have achieved the same for applications deployed using dotnet_core_buildpack and hwc_buildpack.

We just have to be able to copy some bits in the supply phase of our extension buildpack and set some environment variables in the finalize phase via profile.d scripts.

What did you expect to happen?

I would expect binary_buildpack to use the supply buildpacks changes.

What was the actual behavior?

Since multi buildpacks are not supported, I am getting a warning
Warning: the last buildpack is not compatible with multi-buildpack apps and cannot make use of any dependencies supplied by the buildpacks specified before it

Just wondering when the support will be added for tackling multi buildpacks.

Please confirm where necessary:

  • [ x] I have included a log output
  • [ x] My log includes an error message
  • [ x] I have included steps for reproduction

How do I start a .NET console app on CloudFoundry?

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?
{
"name": "",
"build": "",
"support": "",
"version": 0,
"description": "",
"authorization_endpoint": "https://login.cloud.pcftest.com",
"token_endpoint": "https://uaa.cloud.pcftest.com",
"min_cli_version": null,
"min_recommended_cli_version": null,
"api_version": "2.120.0",
"app_ssh_endpoint": "ssh.cloud.pcftest.com:2222",
"app_ssh_host_key_fingerprint": "3e:d9:f9:02:29:9d:f6:4b:f2:90:fe:4b:05:85:35:8d",
"app_ssh_oauth_client": "ssh-proxy",
"doppler_logging_endpoint": "wss://doppler.cloud.pcftest.com:4443"
}

cf version 6.37.0+a40009753.2018-05-25

What version of the buildpack you are using?
binary-buildpack-v1.0.21

If you were attempting to accomplish a task, what was it you were attempting to do?
Push a console app onto CF

What did you expect to happen?
App would be pushed and start executing

What was the actual behavior?
App was pushed with the command cf push CloudConsoleApp --health-check-type none -s windows2016 -b binary_buildpack --no-route
but does not start. Error is :

2018-09-26T14:36:42.92+0530 [APP/PROC/WEB/0] ERR Error: no start command specified during staging or launch
2018-09-26T14:36:43.98+0530 [APP/PROC/WEB/0] OUT Exit status 1
2018-09-26T14:36:55.72+0530 [CELL/0] OUT Cell f80753e2-393c-411d-a662-6a49de7e44ce stopping instance a86af9f8-11f0-41ad-7f84-f518
2018-09-26T14:36:55.72+0530 [CELL/0] OUT Cell f80753e2-393c-411d-a662-6a49de7e44ce destroying container for instance a86af9f8-11f0-41ad-7f84-f518
2018-09-26T14:36:55.73+0530 [API/1] OUT Process has crashed with type: "web"
2018-09-26T14:36:55.77+0530 [API/1] OUT App instance exited with guid b9260f94-1097-4cf1-b181-a5ce1a2aa02e payload: {"instance"=>"a86af9f8-11f0-41ad-7f84-f518", "index"=>0, "cell_id"=>"f80753e2-393c-411d-a662-6a49de7e44ce", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1; process did not exit", "crash_count"=>2, "crash_timestamp"=>1537952815635562745, "version"=>"a53c5691-7d64-4030-82f0-91a85ead97b5"}*

I am able to push a .Net core console app with the dotnetcore buildpack and keep it running on the same CF instance. Could someone please tell me what I am missing here?

Please confirm where necessary:

  • [X ] I have included a log output

  • [X ] My log includes an error message
    CF_log.txt

  • I have included steps for reproduction

**Release:** binary-buildpack 1.0.40

Dependency Changes:

No dependency changes

New Commits on Develop:

a72ef18 Updating github-config
14ea0bf Updating github-config
afabc43 Updating github-config
904c6de Update libbuildpack
e52af8d Update libbuildpack
a5a42f5 Update libbuildpack
4390f83 Adds integration test matrix
a59fdf8 Merge pull request #53 from cloudfoundry/automation/github-config/update
460703b Updating github-config
d9cb16c Updating github-config
b5dc093 Merge pull request #52 from cloudfoundry/automation/github-config/update
75a78a3 Updating github-config
a29c2d6 Update libbuildpack
a868a07 Merge pull request #47 from cloudfoundry/automation/github-config/update
376c8b1 Updating github-config
f5db071 Merge pull request #46 from cloudfoundry/automation/github-config/update
e144cfa Updating github-config

Refer to release instructions.

Binary Buildpack fails with "No such file or directory"

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?
cf version 8.2.0+fd8fbca64.2022-02-09

What version of the buildpack you are using?
binary_buildpack cflinuxfs3 true false binary_buildpack-cflinuxfs3-v1.0.42.zip

If you were attempting to accomplish a task, what was it you were attempting to do?
I'm trying to push a golang binary using the buildpack

What did you expect to happen?
The app to run

What was the actual behavior?
Failed with "No such file or directory"

To reproduce:

  1. clone https://github.com/cloudfoundry/loggregator-tools/
  2. cd loggregator-tools/constlogger
  3. go build (on linux)
  4. cf push constlogger-1000-256 -b binary_buildpack -c 'ls -la && cat ./constlogger.go && ./constlogger'

Logs:

2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT total 6316
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT drwxr-xr-x 1 vcap vcap      75 Mar  9 17:13 .
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT drwx------ 1 vcap vcap      93 Mar  9 17:13 ..
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT -rwxr-xr-x 1 vcap vcap 6454914 Mar  9 17:13 constlogger
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT -rw-r--r-- 1 vcap vcap    1632 Mar  7 17:14 constlogger.go
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT -rw-r--r-- 1 vcap vcap     118 Mar  7 17:16 go.mod
2022-03-09T10:13:29.62-0700 [APP/PROC/WEB/0] OUT -rw-r--r-- 1 vcap vcap    1229 Mar  7 17:16 go.sum
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] OUT // tool for generating log load
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] OUT // usage: gets settings from application name
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] OUT // If pushed as just `constlogger`, emits 1000 logs per second
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] OUT // If pushed as, e.g., `constlogger-100`, emits 100 logs per second
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] OUT // If pushed as, e.g., `constlogger-100-50`, emits 100 logs per second that are each 50 bytes long (including the newline)
<rest of constlogger.go redacted for brevity> ...
2022-03-09T10:13:29.63-0700 [APP/PROC/WEB/0] ERR bash: ./constlogger: No such file or directory

Notes: ls and cat work fine but executables can't be found

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Can somebody explain restart-ability of the app after crash when using the binary build pack?

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

What version of the buildpack you are using?

If you were attempting to accomplish a task, what was it you were attempting to do?

What did you expect to happen?

What was the actual behavior?

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

IMPORTANT NOTICE: [binary-buildpack] End of support for cflinuxfs2 on all new dependency version lines

This notice is regarding the end of support for cflinuxfs2 and how it affects all buildpacks and dependencies contained within them.

cflinuxfs2 (based on Ubuntu 14.04) is no longer receiving security updates due to the end of upstream support. As we desire to ensure that buildpacks are always shipped with the latest security patch updates, all new dependency version lines within buildpacks will only be shipped with cflinuxfs3.

We understand that migrating applications over to cflinuxfs3 can take some time. Because of that, existing dependency version lines that support cflinuxfs2 will continue to receive patch updates for both cflinuxfs2 and cflinuxfs3.

Warning: It is not safe to run applications on cflinuxfs2. While buildpacks will still contain dependencies supported on cflinuxfs2, we do not recommend that they be used due to the absence of security updates for cflinuxfs2.

Additionally, a secondary notice will be coming in the near future explaining the timeline for ending cflinuxfs2 supported buildpacks.

source of binaries listed in manifest - part II

Hi, my team would like to use binary-buildpack 1.0.17 and to approve that I've to analyze it's source code and the code of its dependencies chain, so be sure that they don't have problematic licenses.

I've some questions:

  1. in the https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/fixtures/manifest/standard/manifest.yml

I see reference to:
jruby 9.3.4
jruby 9.3.5
jruby 9.4.4

but I cannot found their source on the net, those versions seem to not exist, could you help me please?

  1. in the

https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/packager/fixtures/bad/manifest.yml

AND

https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/packager/fixtures/good/manifest.yml

I see reference to:

ruby 1.2.3

but I cannot found its source on the net, this version seems to not exist, could you help me please?

  1. in the

https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/packager/fixtures/modules/manifest.yml

I see reference to:

php 1.6.1

but I cannot found its source on the net, this version seems to not exist, could you help me please?

Some of those packages have been associated with different versions in the URI.

Could you please clarify me all those things?

Thanks a lor again

Thanks.

source of binaries dotnet and dotnet-framework

Hi, my team would like to use binary-buildpack 1.0.17 and to approve that I've to analyze it's source code and the code of its dependencies chain, so be sure that they don't have problematic licenses.

But we were not able to discover the download location of the source of some packages.

They are those listed at:

https://github.com/cloudfoundry/binary-buildpack/blob/v1.0.17/src/binary/vendor/github.com/cloudfoundry/libbuildpack/fixtures/manifest/standard/manifest.yml:

dotnet 1.0.0-preview2-003131
dotnet 1.0.0-preview2-003156
dotnet 1.0.0-preview2-1-003177
dotnet 1.0.0-preview3-004056
dotnet 1.0.0-preview4-004233
dotnet-framework 1.0.0
dotnet-framework 1.0.1
dotnet-framework 1.0.3
dotnet-framework 1.1.0

Could you please indicate me what they are and at which URL I can download their source code from?

Many thanks.

MultiBuildPack support in Binary Buildpack for Windows stack

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version)?

"name": "PCF Small Footprint",
"build": "2.3.0-build.264",
"support": "https://support.pivotal.io"

What version of the buildpack you are using?
cf version 6.40.0+07673feb9.2018-10-08

If you were attempting to accomplish a task, what was it you were attempting to do?

We are planning to add support for instrumenting PCF .NET Core Windows applications using AppDynamics using an extension buildpack. We have achieved the same for applications deployed using dotnet_core_buildpack and hwc_buildpack.

We just have to be able to copy some bits in the supply phase of our extension buildpack and set some environment variables in the finalize phase via profile.d scripts.

What did you expect to happen?

I would expect binary_buildpack to use the supply buildpacks changes.

What was the actual behavior?

Since multi buildpacks are not supported, I am getting a warning

Warning: the last buildpack is not compatible with multi-buildpack apps and cannot make use of any dependencies supplied by the buildpacks specified before it

Just wondering when the support will be added for tackling multi buildpacks.

Please confirm where necessary:

[ x] I have included a log output
[ x] My log includes an error message
[ x] I have included steps for reproduction

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.