Things to make Docker go on Ops Works. We need help.</pakled>
Described in this blog post of mine and based on this AWS blog entry
- Set up a new stack in OpsWorks. Under Advanced set the following:
- Chef version: 11.10
- Use custom Chef cookbooks: https git url to a repo containing the other files in the gist inside owdocker/recipes/
- Manage Berkshelf: Yes
- Berkshelf version: 3.1.3
- Add a layer
- Type: Other
- Recipes
- Setup: owdocker::install
- Deploy: owdocker::docker-image-deploy
- Add an App
- Type: Other
- Repository type: Other
- Environment variables:
- registry_image: The path portion of a docker pull command ala: docker pull $registry_image
- registry_tag: The tag of the image that should be pulled from the registry ala quay.io/yourusername/yourimage:$registry_tag
- layer: The shortname of the layer the image should be deployed to
- service_port: The port on the HOST that will be connected to the container
- container_port: The port on the CONTAINER that will be connected to the service port
- registry_username: OPTIONAL username to login to the registry
- registry_password: OPTIONAL password to login to the registry
- registry_url: OPTIONAL url to a non hub.docker.com registry ala quay.io
Thanks for the update Chris..
I have been reading about these 'Berksfile'(s) for house now trying everything under the sun.. I think I am more or less starting to grasp what it is they do. While I haven't tried your Berksfile yet, I will. I am pretty sure it's going to complain about metadata not existing as that's where I was before your post. Albeit my Berksfile was wrong.
The other question is that since I am not using Ubuntu I assume I should remove the apt piece because apt is not used in CentOS. I do have to admit that I am a little confused why it's needed as apt is already installed in the default installation of Ubuntu and I didn't see anything in the docker recipe that makes it 'Ubuntu' centric. It's entirely possible I missed that tho. The original owdocker_install.rb was Ubuntu centric but I changed that.
Thanks for your time.
J