This repository was archived by the owner on Oct 6, 2021. It is now read-only.
This repository was archived by the owner on Oct 6, 2021. It is now read-only.
Add support for Ubuntu 14.04 #1
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels