Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cnb_app_lifecycle #929

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions jobs/file_server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ packages:
- buildpack_app_lifecycle
- docker_app_lifecycle
- windows_app_lifecycle
- cnb_app_lifecycle

provides:
- name: file_server
Expand Down
27 changes: 27 additions & 0 deletions packages/cnb_app_lifecycle/packaging
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
set -e

# create GOPATH
mkdir -p ${BOSH_INSTALL_TARGET}/src
mv * ${BOSH_INSTALL_TARGET}/src
mv ${BOSH_INSTALL_TARGET}/src .

DEST="$PWD/bin"
mkdir -p ${DEST}

source /var/vcap/packages/golang-*-linux/bosh/compile.env

pushd src/code.cloudfoundry.org
c0d1ngm0nk3y marked this conversation as resolved.
Show resolved Hide resolved

CGO_ENABLED=0 go build -o ${DEST}/ -ldflags "-s -w" -a -installsuffix static code.cloudfoundry.org/cnbapplifecycle/cmd/builder code.cloudfoundry.org/cnbapplifecycle/cmd/launcher
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code.cloudfoundry.org/cnbapplifecylce is missing a LICENSE. This would get flagged during the OSL process, can we make sure that there is a LICENSE for this repo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


popd

ldd $DEST/builder && echo "builder must be statically linked" && false
ldd $DEST/launcher && echo "launcher must be statically linked" && false

cp /var/vcap/packages/diego-sshd/diego-sshd ${DEST}/diego-sshd
cp /var/vcap/packages/healthcheck/healthcheck ${DEST}/healthcheck

tar -czf ${BOSH_INSTALL_TARGET}/cnb_app_lifecycle.tgz \
-C ${DEST} \
builder launcher healthcheck diego-sshd
374 changes: 374 additions & 0 deletions packages/cnb_app_lifecycle/spec

Large diffs are not rendered by default.

92 changes: 69 additions & 23 deletions src/code.cloudfoundry.org/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,31 @@ replace (
)

require (
code.cloudfoundry.org/archiver v0.0.0-20240721180611-c2584b8e38c2
code.cloudfoundry.org/bytefmt v0.0.0-20240721180527-4329f371d5d3
code.cloudfoundry.org/archiver v0.0.0-20240711175833-dbc7231e030c
code.cloudfoundry.org/bytefmt v0.0.0-20240711175842-1bcb71f1f634
code.cloudfoundry.org/cacheddownloader v0.0.0-20240408163934-09b8631e33d0
code.cloudfoundry.org/certsplitter v0.0.0-20240721180600-78814e095b3a
code.cloudfoundry.org/certsplitter v0.0.0-20240711175843-93e340749eba
code.cloudfoundry.org/cf-routing-test-helpers v0.0.0-20240304203209-3404f81a986b
code.cloudfoundry.org/cf-tcp-router v0.0.0-20240712082121-f15a807edcfc
code.cloudfoundry.org/cfhttp/v2 v2.1.0
code.cloudfoundry.org/clock v1.2.0
code.cloudfoundry.org/credhub-cli v0.0.0-20240722130535-d278c225e4da
code.cloudfoundry.org/debugserver v0.0.0-20240721180531-bdf297309cfd
code.cloudfoundry.org/diego-logging-client v0.0.0-20240721180536-208b953dea93
code.cloudfoundry.org/cnbapplifecycle v0.0.2
code.cloudfoundry.org/credhub-cli v0.0.0-20240715130405-9c80ae1950dd
code.cloudfoundry.org/debugserver v0.0.0-20240711175828-bd4bb5559e42
code.cloudfoundry.org/diego-logging-client v0.0.0-20240713175943-b577f5aaad4e
code.cloudfoundry.org/dockerdriver v0.0.0-20240620154825-441e44b5dbb3
code.cloudfoundry.org/durationjson v0.0.0-20240721180537-2928146efba5
code.cloudfoundry.org/eventhub v0.0.0-20240721180530-98aefca47092
code.cloudfoundry.org/garden v0.0.0-20240721202328-732916568a92
code.cloudfoundry.org/durationjson v0.0.0-20240711175827-ec11f50a5c9e
code.cloudfoundry.org/eventhub v0.0.0-20240711175829-9b6874164e5c
code.cloudfoundry.org/garden v0.0.0-20240711201323-3e0daa304ebb
code.cloudfoundry.org/go-loggregator/v9 v9.2.1
code.cloudfoundry.org/goshims v0.38.0
code.cloudfoundry.org/guardian v0.0.0-20240701200955-01b74f60037d
code.cloudfoundry.org/lager/v3 v3.0.3
code.cloudfoundry.org/localip v0.0.0-20240721180538-4c37751a4ea9
code.cloudfoundry.org/localip v0.0.0-20240711175824-a1a2d50a2164
code.cloudfoundry.org/tlsconfig v0.0.0-20240712175922-ffce9516cec8
github.com/GaryBoone/GoStats v0.0.0-20130122001700-1993eafbef57
github.com/ajstarks/svgo v0.0.0-20211024235047-1546f124cd8b
github.com/aws/aws-sdk-go v1.54.20
github.com/aws/aws-sdk-go v1.54.19
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20240708141356-efa334f881fc
github.com/cactus/go-statsd-client v3.1.1-0.20161031215955-d8eabe07bc70+incompatible
github.com/cespare/xxhash/v2 v2.3.0
Expand All @@ -65,7 +66,7 @@ require (
github.com/lib/pq v1.10.9
github.com/mitchellh/hashstructure v1.1.0
github.com/moby/term v0.5.0
github.com/nats-io/nats-server/v2 v2.10.18
github.com/nats-io/nats-server/v2 v2.10.17
github.com/nats-io/nats.go v1.36.0
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
github.com/onsi/ginkgo/v2 v2.19.0
Expand All @@ -81,7 +82,7 @@ require (
github.com/square/certstrap v1.3.0
github.com/tedsuo/ifrit v0.0.0-20230516164442-7862c310ad26
github.com/tedsuo/rata v1.0.0
github.com/vito/go-sse v1.1.1
github.com/vito/go-sse v1.0.0
golang.org/x/crypto v0.25.0
golang.org/x/net v0.27.0
golang.org/x/oauth2 v0.21.0
Expand All @@ -94,14 +95,26 @@ require (

require (
cel.dev/expr v0.15.0 // indirect
code.cloudfoundry.org/commandrunner v0.0.0-20240721160731-adebb584c73a // indirect
code.cloudfoundry.org/commandrunner v0.0.0-20240711155719-69471af38026 // indirect
code.cloudfoundry.org/go-diodes v0.0.0-20240604201846-c756bfed2ed3 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.12 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.6 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apex/log v1.9.0 // indirect
github.com/aws/aws-sdk-go-v2 v1.30.3 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.27 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect
github.com/aws/aws-sdk-go-v2/config v1.27.26 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.26 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
Expand All @@ -110,36 +123,52 @@ require (
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.25.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.22.3 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
github.com/aws/smithy-go v1.20.3 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bmizerany/pat v0.0.0-20210406213842-e4b6760bdd6f // indirect
github.com/buildpacks/imgutil v0.0.0-20240605145725-186f89b2d168 // indirect
github.com/buildpacks/lifecycle v0.19.7 // indirect
github.com/buildpacks/pack v0.34.2 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589 // indirect
github.com/cloudfoundry/go-socks5 v0.0.0-20180221174514-54f73bdb8a8e // indirect
github.com/cloudfoundry/socks5-proxy v0.2.120 // indirect
github.com/cloudfoundry/sonde-go v0.0.0-20240620221854-09ef53324489 // indirect
github.com/cncf/xds/go v0.0.0-20240423153145-555b57ec207b // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.15.1 // indirect
github.com/containerd/typeurl/v2 v2.1.1 // indirect
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect
github.com/containers/ocicrypt v1.2.0 // indirect
github.com/containers/storage v1.54.0 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/creack/pty v1.1.21 // indirect
github.com/cyphar/filepath-securejoin v0.3.0 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/distribution/reference v0.6.0 // indirect
github.com/docker/cli v26.1.3+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker v27.1.0+incompatible // indirect
github.com/docker/docker v27.0.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.2 // indirect
github.com/docker/go-connections v0.5.0 // indirect
github.com/docker/go-metrics v0.0.1 // indirect
github.com/docker/go-units v0.5.0 // indirect
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20240722153945-304e4f0156b8 // indirect
github.com/google/go-containerregistry v0.19.2 // indirect
github.com/google/pprof v0.0.0-20240711041743-f6c9dda6c6da // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/mux v1.8.1 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/heroku/color v0.0.6 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
Expand All @@ -148,27 +177,44 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/kr/fs v0.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/minio/highwayhash v1.0.3 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/moby/sys/mountinfo v0.7.2 // indirect
github.com/mitchellh/ioprogress v0.0.0-20180201004757-6a23b12fa88e // indirect
github.com/moby/buildkit v0.13.2 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
github.com/moby/sys/mountinfo v0.7.1 // indirect
github.com/moby/sys/user v0.1.0 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/nats-io/jwt/v2 v2.5.8 // indirect
github.com/nats-io/nkeys v0.4.7 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/opencontainers/runc v1.1.13 // indirect
github.com/opencontainers/runtime-spec v1.2.0 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.51.1 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/vbatts/tar-split v0.11.5 // indirect
github.com/vishvananda/netlink v1.2.1-beta.2 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
go.opentelemetry.io/otel v1.27.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
go.step.sm/crypto v0.50.0 // indirect
go.uber.org/automaxprocs v1.5.3 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/term v0.22.0 // indirect
golang.org/x/text v0.16.0 // indirect
golang.org/x/tools v0.23.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240722135656-d784300faade // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240722135656-d784300faade // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240711142825-46eb208f015d // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading