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

Changes to support kubecf #1

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .final_builds/packages/cf-cli-6-linux/index.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
builds:
ca0f17c83f5a19e7a76de8e39d08bbe87aedb94f:
version: ca0f17c83f5a19e7a76de8e39d08bbe87aedb94f
blobstore_id: 0fd37f5c-9f28-4d5f-5d81-5af0cb7ffa7b
sha1: f352a9f895c8233bc4e4bf0f6e88065ea79a3283
format-version: "2"
2 changes: 2 additions & 0 deletions jobs/nfsbrokerpush/spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ templates:
services.json.erb: config/services.json
start.sh.erb: start.sh
uaa_ca.crt.erb: uaa_ca.crt
bpm.yml.erb: config/bpm.yml

packages:
- nfsbroker
- cf-cli-6-linux

consumes:
- name: credhub
Expand Down
3 changes: 3 additions & 0 deletions jobs/nfsbrokerpush/templates/bpm.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
processes:
- name: nfsbrokerpush
executable: /var/vcap/jobs/nfsbrokerpush/bin/run
3 changes: 2 additions & 1 deletion jobs/nfsv3driver/spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ templates:
client.key.erb: config/certs/client.key
server.crt.erb: config/certs/server.crt
server.key.erb: config/certs/server.key
install.erb: bin/pre-start
install.erb: bin/install
ctl.erb: bin/nfsv3driver_ctl
start.sh.erb: bin/start.sh
drain.erb: bin/drain
bpm.yml.erb: config/bpm.yml

packages:
- nfs-debs
Expand Down
10 changes: 10 additions & 0 deletions jobs/nfsv3driver/templates/bpm.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
processes:
- name: nfsv3driver
executable: /var/vcap/jobs/nfsv3driver/bin/start.sh
hooks:
pre_start: /var/vcap/jobs/nfsv3driver/bin/install
additional_volumes:
- path: /var/vcap/data/voldrivers
writable: true
unsafe:
privileged: true
6 changes: 4 additions & 2 deletions jobs/nfsv3driver/templates/start.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ ENABLE_INSECURE_SKIP_VERIFY=""
ENABLE_INSECURE_SKIP_VERIFY="--insecureSkipVerify"
<% end %>

# Spawn things needed for NFS
/sbin/rpcbind -w
/usr/sbin/rpc.statd --no-syslog

exec /var/vcap/packages/nfsv3driver/bin/nfsv3driver \
--listenAddr="<%= p("nfsv3driver.listen_addr") %>" \
--transport="tcp-json" \
Expand All @@ -49,5 +53,3 @@ exec /var/vcap/packages/nfsv3driver/bin/nfsv3driver \
--logLevel="<%= p("nfsv3driver.log_level") %>" \
--timeFormat="<%= p("nfsv3driver.log_time_format") %>" \
--mapfsPath="<%= link("mapfs").p("path") %>" \
>> $LOG_DIR/nfsv3driver.stdout.log \
2>> $LOG_DIR/nfsv3driver.stderr.log
2 changes: 2 additions & 0 deletions packages/cf-cli-6-linux/spec.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: cf-cli-6-linux
fingerprint: ca0f17c83f5a19e7a76de8e39d08bbe87aedb94f
9 changes: 9 additions & 0 deletions packages/openldap/packaging
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables

Expand All @@ -13,7 +14,15 @@ cd $BOSH_COMPILE_TARGET
tar -xzvf openldap/openldap-2.4.44.tgz
cd openldap-2.4.44

# We don't have groff (which provides soelim) in the stemcell; since that's only
# used to generate documentation (that we don't care about) anyway, just make a
# stub that doesn't do anything useful.
mkdir -p "${HOME}/bin"
ln -s /usr/bin/true "${HOME}/bin/soelim"
export PATH="${PATH}:${HOME}/bin"

export CPPFLAGS="-I ${BDB_PATH}/include"
export LDFLAGS="-L${BDB_PATH}/lib"
export LD_LIBRARY_PATH="${BDB_PATH}/lib"
./configure --prefix=${BOSH_INSTALL_TARGET}

Expand Down