make dockerfile more configurable#254
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
mcrouter/scripts/docker/Dockerfile
Outdated
There was a problem hiding this comment.
14.04 needs software-properties-common, and 16.04 needs sudo
mcrouter/scripts/docker/Dockerfile
Outdated
mcrouter/scripts/docker/Dockerfile
Outdated
There was a problem hiding this comment.
there is no clean script for 16.04, but we can just try to call out to clean and accept and move on if it does not exist or fails.
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
f4a8dbf to
e2e6aa8
Compare
|
@andreazevedo not sure if you are the right person to ping on this. The change to the Dockerfile would help us build mcrouter into containers using appropriately tagged release version and also selectively for different versions of either ubuntu 14.04 or 16.04 Thanks in advance. |
|
hello come across this error below: it looks like I use ubuntu:14.04 did you ever see this error before and how to fix it |
@hzluyang I am able to build using a released version without any errors (based on #251 (comment), that is also a recommended approach?
this builds everything, I guess part of the benefit of this Hope this helps. |
e2e6aa8 to
ebe5f43
Compare
ebe5f43 to
956e37b
Compare
|
Could #241 be integrated into this PR also? |
👋 Am new here 😸
Was trying to build containers for
mcrouterusing the existing Dockerfile.Since we ideally want to build from a
releaseversion, and potentially build for either ubuntu14.04or16.04(the supported options in the Dockerfile), these changes just make the Dockerfile a little moreconfigurableSpecifically you can call out to
docker buildlike this.for
Ubuntu 16.04docker build --build-arg UBUNTU_VERSION=16.04 --build-arg RELEASE_REV=release-37-0and
for
Ubuntu 14.04docker build --build-arg UBUNTU_VERSION=14.04 --build-arg RELEASE_REV=release-37-0The adjustable variables are
UBUNTU_VERSIONwith a default of14.04RELEASE_REVwith a default ofmasterAlso just doing
docker buildwith the existingDockerfileand no arguments, will build with the defaultubuntu:14.04andmasterbranch (the current default)@andreazevedo (or is there another person I could ask to review?)