Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
document release pipeline for new stacks
Browse files Browse the repository at this point in the history
* The scripts for s3 releases were removed; our concourse pipeline is handling this now. 
* Ruby was no longer required.
* Removed a script that reference vagrant

[#98556990]
  • Loading branch information
mhoran committed Jul 8, 2015
1 parent 1290051 commit a63c69e
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 165 deletions.
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

3 changes: 0 additions & 3 deletions Gemfile

This file was deleted.

19 changes: 0 additions & 19 deletions Gemfile.lock

This file was deleted.

54 changes: 25 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ Cloud Foundry Stacks
====================

This repo contains scripts for creating warden root filesystems.
* cflinuxfs2 derived from Ubuntu 14.04 (Trusty Tahr))

* cflinuxfs2 derived from Ubuntu 14.04 (Trusty Tahr)

# Dependencies

* Ruby 1.9.3-p545 or higher
* GNU make
* Docker

# Adding a new package to the rootfs

Expand All @@ -20,37 +22,31 @@ To create a rootfs for the cflinuxfs2 stack:
make
```

This will create the `cflinuxfs2.tar.gz` file.

# Uploading to s3 bucket

s3 bucket is used by [warden-test-infrastructure](https://github.com/cloudfoundry/warden-test-infrastructure), so it needs to be uploaded there.

# Uploading cflinuxfs2 Stack to Docker Hub and S3 bucket

```shell
export AMAZON_ACCESS_KEY_ID=your-aws-id
export AMAZON_SECRET_ACCESS_KEY=your-aws-key

export DOCKERHUB_USERNAME=your-docker-hub-name
export DOCKERHUB_PASSWORD=your-docker-password
export DOCKERHUB_EMAIL=you@dockerhub-email.com

make upload_cslinuxfs2
```

This will use the `cflinuxfs2/rootfs.tgz` file created with `make` and upload it to S3 and the Docker Hub. It will also create a receipt file named `cflinuxfs2/cflinuxfs2_receipt` that contains the SHA sum of the rootfs, the Docker image ID, and the ETag value from S3.
This will create the `cflinuxfs2.tar.gz` file, which is the artifact used as the rootfs in Cloud Foundry deployments.

This will remove the `cflinuxfs2/rootfs.tgz` file, but the tarball `cflinuxfs2.tar.gz` will remain.
# Release pipeline

# Updating rootfs blob in cf-release
The generation and release of a new rootfs happens on the [stacks](https://buildpacks.ci.cf-app.com/pipelines/stacks) CI pipeline.

To update rootfs package in cf-release overwrite rootfs blob cf-release/blobs/rootfs/[ROOTFS_NAME].tar.gz with the new tarball.
* A new stack is generated with `make`.

Run `bosh upload blobs` to upload package to bosh blobstore.
* The generated tarball is deployed with the [runtime-passed branch](https://github.com/cloudfoundry/cf-release/tree/runtime-passed) of BOSH cf-release.

After cf-release is updated with the new rootfs, future DEAs will automatically use that rootfs for its warden containers.
```shell
mv stacks/cflinuxfs2.tar.gz cf-release/blobs/rootfs/cflinuxfs2.tar.gz
cd cf-release
bosh -n create release --force
bosh -n upload release
bosh -n deploy
```

* The [cf-acceptance-tests](https://github.com/cloudfoundry/cf-acceptance-tests) of that cf-release are then run against that deployment.

# Downloading from S3
```shell
cd cf-release/src/github.com/cloudfoundry/cf-acceptance-tests
go get github.com/tools/godep
godep restore
./bin/test --nodes=4
```

http://cf-runtime-stacks.s3.amazonaws.com/cflinuxfs2.dev.tgz
* Once all tests pass, the rootfs tarball can be found as a [Github Release](https://github.com/cloudfoundry/stacks/releases) and a [Docker Image](https://registry.hub.docker.com/u/cloudfoundry/cflinuxfs2/).
16 changes: 0 additions & 16 deletions build_stack

This file was deleted.

10 changes: 0 additions & 10 deletions docker_push.sh

This file was deleted.

56 changes: 0 additions & 56 deletions upload_stack

This file was deleted.

31 changes: 0 additions & 31 deletions upload_to_s3

This file was deleted.

0 comments on commit a63c69e

Please sign in to comment.