yammer / mcrouter-build-docker Goto Github PK
View Code? Open in Web Editor NEWAn Ubuntu 12.04 package builder for mcrouter
License: Other
An Ubuntu 12.04 package builder for mcrouter
License: Other
Hi,
I am running => docker build -t mcrouter:test .
It runs and fails with this error:
build-aux'. libtoolize: copying file
build-aux/config.guess'build-aux/config.sub' libtoolize: copying file
build-aux/install-sh'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR,
m4'.m4/libtool.m4' libtoolize: copying file
m4/ltoptions.m4'm4/ltsugar.m4' libtoolize: copying file
m4/ltversion.m4'Any idea why ?
I'm working on this right now.
The only weird thing is that in order to keep the same configuration options for ENV variables in the configuration file, I have to do something like this, where RELEASE
is a configurable variable just like MCROUTER_VERSION
and MCROUTER_SHA
:
Dockerfile:
FROM ubuntu:__RELEASE__
# [..snip..]
ENV RELEASE 14.04
But, since FROM has to be the first line of the Dockerfile, we have to use a "templated" variable (__RELEASE__
) that we replace in the Makefile:
Makefile:
# [..snip..]
RELEASE = `grep "ENV RELEASE" Dockerfile | cut -f3 -d' '`
.PHONY: all build cp
all: build cp
build:
sed "1 s/__RELEASE__/${RELEASE}/" Dockerfile | docker build -t mcrouter -
# [..snip..]
I don't know if there's a cleaner way to do this. The above should work but it's kind of hacky. Perhaps a wrapper script for the whole process? I was avoiding that because I thought your use of a Makefile was a clever way to handle the whole build + docker orchestration and wanted to stick to that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.