Skip to content

Commit

Permalink
add MCROUTER_LISTEN_PORT as Dockerfile ENV
Browse files Browse the repository at this point in the history
explicitly list and COPY files into the docker image fs
  • Loading branch information
emalloy committed Feb 27, 2019
1 parent 40dd7b4 commit 8152ee7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
18 changes: 17 additions & 1 deletion mcrouter/scripts/docker/Dockerfile.ubuntu-packaged
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ RUN set -xe \
apt-get update \
&& apt-get install -y $buildDeps

COPY ["container/ubuntu-packaged/", "/"]

COPY ["container/ubuntu-packaged/entrypoint.sh", \
"/usr/local/bin/" \
]

COPY ["container/ubuntu-packaged/10-mcrouter.list", \
"/etc/apt/sources.list.d/" \
]

COPY ["container/ubuntu-packaged/mcrouter.json", \
"/etc/mcrouter/" \
]



RUN wget -qO- \
https://facebook.github.io/mcrouter/debrepo/xenial/PUBLIC.KEY \
Expand All @@ -20,4 +33,7 @@ RUN wget -qO- \
&& apt-get purge -y --autoremove -o APT::AutoRemove::RecommendsImportant=false wget apt-transport-https \
&& apt-get autoremove && apt-get autoclean && rm -rf /var/lib/apt-lists/*


ENV MCROUTER_LISTEN_PORT 5000

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ function run_mcrouter() {
local CONFIG_PATH=$1
mcrouter \
--config file:${CONFIG_PATH} \
-p "${MCROUTER_LISTEN_PORT:-5000}"
-p "${MCROUTER_LISTEN_PORT:-5000}" \
"$@"
}


Expand Down

0 comments on commit 8152ee7

Please sign in to comment.