-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix permissions of etcd home directory
- Loading branch information
Alexander Kukushkin
committed
May 18, 2015
1 parent
05d0a7b
commit 615dd06
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
FROM zalando/ubuntu:14.04.1-1 | ||
|
||
ENV USER etcd | ||
ENV HOME /home/${USER} | ||
ENV ETCDVERSION 2.0.11 | ||
|
||
## Install python | ||
RUN apt-get update && apt-get -y install python python-boto | ||
|
||
## Install etcd | ||
RUN useradd -d /home/etcd -k /etc/skel -s /bin/bash -m etcd | ||
ENV ETCDVERSION 2.0.11 | ||
RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz | tar xz -C /bin --strip=1 --wildcards --no-anchored etcd etcdctl | ||
EXPOSE 2379 2380 | ||
|
||
ADD etcd.py /bin/etcd.py | ||
|
||
USER etcd | ||
RUN useradd -d ${HOME} -k /etc/skel -s /bin/bash -m ${USER} && chmod 777 ${HOME} | ||
WORKDIR $HOME | ||
USER ${USER} | ||
CMD ["/bin/etcd.py"] |