{"id":31904433,"url":"https://github.com/cloudfoundry-community/bosh-init-docker","last_synced_at":"2025-10-13T13:49:53.709Z","repository":{"id":30663062,"uuid":"34218794","full_name":"cloudfoundry-community/bosh-init-docker","owner":"cloudfoundry-community","description":"Run Docker containers on AWS backed by EBS using bosh-init","archived":false,"fork":false,"pushed_at":"2015-04-20T17:31:30.000Z","size":124,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-14T22:47:36.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-19T18:30:31.000Z","updated_at":"2024-02-09T14:29:10.000Z","dependencies_parsed_at":"2022-08-30T06:42:00.461Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/bosh-init-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/bosh-init-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fbosh-init-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fbosh-init-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fbosh-init-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fbosh-init-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/bosh-init-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fbosh-init-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015348,"owners_count":26085686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-13T13:49:09.013Z","updated_at":"2025-10-13T13:49:53.700Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"bosh-init deploy docker\n=======================\n\nThe new [bosh-init](https://github.com/cloudfoundry/bosh-init) CLI can do more than just deploy Micro BOSH.\n\nThanks to Ferran Rodenas we can run Docker contains backed by stateful persistent volumes (see [blog announcement](http://blog.pivotal.io/cloud-foundry-pivotal/products/managing-stateful-docker-containers-with-cloud-foundry-bosh)\\)\n\nThis project will deploy a single server/VM/instance on AWS EC2 us-east-1 region running Docker and some data-backed containers. It is using the new `bosh-init` CLI and the BOSH community [docker-boshrelease](https://github.com/cf-platform-eng/docker-boshrelease).\n\nThe example manifest generated below is based on the `properties` from this example manifest for BOSH server https://github.com/cf-platform-eng/docker-boshrelease/blob/master/examples/docker-aws.yml\n\n![example](http://cl.ly/image/3g1K1Y2l0o3d/docker_-_redis.png)\n\nIn this tutorial example the VM will be running the following containers:\n\n-\tredis on port 6379\n-\tmysql on port 3306\n-\telasticsearch on ports 9200/9300\n\nUsage\n-----\n\nFirst, fetch the required assets, including the `bosh-init` CLI:\n\n```\n./bin/fetch_assets.sh\n```\n\nThen create the `docker.yml` manifest:\n\n```\nEIP=23.23.23.23 \\\nACCESS_KEY_ID=xxx SECRET_ACCESS_KEY=xxx \\\nKEY_NAME=xxx PRIVATE_KEY_PATH=xxx \\\nSECURITY_GROUP=xxx \\\n./bin/make_manifest.sh\n```\n\nFinally, run the `bosh-init deploy` command (via helpful wrapper):\n\n```\n./bin/deploy.sh\n```\n\nThe output will look similar to:\n\n```\nDeployment manifest: '/Users/drnic/Projects/bosh-deployments/experiments/bosh-init-docker/docker.yml'\nDeployment state: 'deployment.json'\n\nStarted validating\n  Validating stemcell... Finished (00:00:00)\n  Validating releases... Finished (00:00:00)\n  Validating deployment manifest... Finished (00:00:00)\n  Validating cpi release... Finished (00:00:00)\nFinished validating (00:00:00)\n\nStarted installing CPI\n  Compiling package 'ruby_aws_cpi/052a28b8976e6d9ad14d3eaec6d3dd237973d800'... Finished (00:00:00)\n  Compiling package 'bosh_aws_cpi/deabbf731a4fedc9285324d85af6456cfa74c10c'... Finished (00:00:00)\n  Rendering job templates... Finished (00:00:00)\n  Installing packages... Finished (00:00:02)\n  Installing job 'cpi'... Finished (00:00:00)\nFinished installing CPI (00:00:03)\n\nStarting registry... Finished (00:00:00)\nUploading stemcell 'bosh-aws-xen-ubuntu-trusty-go_agent/2830'... Skipped [Stemcell already uploaded] (00:00:00)\n\nStarted deploying\n  Waiting for the agent on VM 'i-4634bebb'... Finished (00:00:01)\n  Stopping jobs on instance 'unknown/0'... Finished (00:00:00)\n  Unmounting disk 'vol-cb6a1cdd'... Finished (00:00:00)\n  Deleting VM 'i-4634bebb'... Finished (00:01:16)\n  Creating VM for instance 'docker/0' from stemcell 'ami-94c187fc light'... Finished (00:00:52)\n  Waiting for the agent on VM 'i-46f366bb' to be ready... Finished (00:02:50)\n  Attaching disk 'vol-cb6a1cdd' to VM 'i-46f366bb'... Finished (00:00:56)\n  Rendering job templates... Finished (00:00:03)\n  Compiling package 'bosh-helpers/55717f488eb12fd47c95fd524ab1cd6304c7ce7e'... Finished (00:00:02)\n  Compiling package 'docker/88892c10d791121cbc0582e2a68cfb00b4721d7b'... Finished (00:01:07)\n  Compiling package 'remote_syslog/89692d361000e340f4a84518a14db23717665a99'... Finished (00:00:12)\n  Updating instance 'docker/0'... Finished (00:00:08)\n  Waiting for instance 'docker/0' to be running... Finished (00:00:03)\nFinished deploying (00:07:50)\n```\n\nSecurity Group\n--------------\n\nThe security group must open the following ports to the machine running `./bin/deploy.sh` or `bosh-init deploy`:\n\n-\t22\n-\t6868\n\nThe security group must open the following port for any clients to the docker server:\n\n-\tredis on port 6379\n-\tmysql on port 3306\n-\telasticsearch on ports 9200/9300\n\nIf you add/remove other docker containers to the `docker.yml` manifest then ensure your clients can access the corresponding ports.\n\nDependencies\n------------\n\nOn Ubuntu, the following packages are required in order for the `bosh-aws-cpi` to compile Ruby successfully:\n\n```\nsudo apt-get install -y build-essential zlibc zlib1g-dev \\\n  openssl libxslt-dev libxml2-dev libssl-dev \\\n  libreadline6 libreadline6-dev libyaml-dev libsqlite3-dev sqlite3\n```\n\nI don't know what the matching requirements are for OS X anymore. That would require buying a new Mac. Wait... let me ask my wife.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fbosh-init-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fbosh-init-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fbosh-init-docker/lists"}