{"id":18972342,"url":"https://github.com/eis/bluemix-containers-box","last_synced_at":"2025-07-11T06:36:57.786Z","repository":{"id":143010756,"uuid":"48746935","full_name":"eis/bluemix-containers-box","owner":"eis","description":"Simple Vagrantfile to set up IBM Bluemix and Bluemix Containers connectivity in an Ubuntu VirtualBox instance.","archived":false,"fork":false,"pushed_at":"2015-12-29T14:43:15.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T08:21:00.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-29T12:38:19.000Z","updated_at":"2018-04-17T00:36:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"40aaaf4b-4447-4a27-a6ab-a3ac5b9f7494","html_url":"https://github.com/eis/bluemix-containers-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fbluemix-containers-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fbluemix-containers-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fbluemix-containers-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eis%2Fbluemix-containers-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eis","download_url":"https://codeload.github.com/eis/bluemix-containers-box/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239970706,"owners_count":19727014,"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","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":"2024-11-08T15:08:11.214Z","updated_at":"2025-02-21T07:13:33.488Z","avatar_url":"https://github.com/eis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"IBM Bluemix Containers box\n==========================\n\nSimple Vagrantfile to set up IBM Bluemix and Bluemix Containers\nconnectivity in an Ubuntu VirtualBox instance. Also contains example\nVagrantfile and Node.js app so that containers can be tested.\n\nNote that this installs old version (1.8.1) of Docker, since Bluemix\n[doesn't support current versions]\n(https://www.ng.bluemix.net/docs/containers/container_cli_ov.html).\n\nPrerequisite: you have to have registered to Bluemix, so you have IBM\nid email and password available. Also assumes Vagrant, Virtualbox installed.\n\nFile descriptions\n-----------------\n\nRepository metadata\n - .gitignore: git file repository metadata, which files we do not store\n - README.md: this file\n - LICENSE: your rights as a user of this code\n\nLocal environment scripts\n - Vagrantfile: creates your local Ubuntu instance\n - install-docker.sh: helper script for Vagrant to install Docker\n - install-bluemix-cli.sh: helper script for Vagrant to install Bluemix\n\nExample Node.js application\n - package.json: tells what our app dependencies are\n - server.js: actual application\n\nApplication container\n - Dockerfile: contains the file we use to set up runtime container for our app, both remotely and locally\n\nUsing to communicate with Bluemix\n---------------------------------\n\nJust define ibm_email and ibm_pass that correspond to your login\ncredentials as environment variables and do `vagrant up`.\n\nThis assumes eu-gb hosting zone. For other regions, change the domain\nnames in install-bluemix-cli.sh script.\n\nAfter that, you can use \"vagrant ssh\" and cf ic info\" etc to do\nyour tasks against the cloudfoundry cloud by Bluemix, or\n\"docker\" to work with images locally.\n\nUsing the example Dockerfile\n--------------------\nExample Dockerfile is using instructions from\n[here](https://nodejs.org/en/docs/guides/nodejs-docker-webapp/).\n\nIt can be taken into local use with\n\n```\n$ vagrant ssh\n$ cd /vagrant\n\n# Build it\n$ docker build -t $yourusername/node-web-app .\n\n# should show $yourusername/node-web-app\n$ docker images\n\n# let's run it!\n$ docker run -p 49160:8080 -d $yourusername/node-web-app\n\n# shows the id, port\n$ docker ps\n\n$ curl -i localhost:49160\n\nHTTP/1.1 200 OK\nX-Powered-By: Express\nContent-Type: text/html; charset=utf-8\nContent-Length: 12\nETag: W/\"c-8O9wgeFTmsAO9bdhtPsBsw\"\nDate: Tue, 29 Dec 2015 14:00:06 GMT\nConnection: keep-alive\n\nHello world\n```\n\nUsing example Node.js Dockerfile on Bluemix\n-------------------------------------------\n\n```\n$ vagrant ssh\n$ cd /vagrant\n$ cf ic login\n\n# view namespace, registry\n$ cf ic info\n\n# view docker image tag\n$ docker ps -a\n\n# associate them\n$ docker tag $yourusername/node-web-app registry.eu-gb.bluemix.net/$yournamespace/$newimagename\n\n# and push\n$ docker push registry.eu-gb.bluemix.net/$yournamespace/$newimagename\n\n# and run\n$ cf ic run --name $NEWCONTAINERNAME -p 8080:8080 -p 443:443 -d -t registry.eu-gb.bluemix.net/$yournamespace/$newimagename\n\n# See ip\n$ cf ip list -a\n\n# Use ip:8080 from your browser to see your app\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feis%2Fbluemix-containers-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feis%2Fbluemix-containers-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feis%2Fbluemix-containers-box/lists"}