Permalink
Browse files

Docker support

  • Loading branch information...
Pluies committed Jun 17, 2017
1 parent 7e19234 commit 72cbb3804fd94b22188d134f7c8ae810046ba062
Showing with 26 additions and 0 deletions.
  1. +4 −0 .dockerignore
  2. +22 −0 Dockerfile
View
@@ -0,0 +1,4 @@
Dockerfile
.git
data
conf
View
@@ -0,0 +1,22 @@
FROM debian:jessie-slim
# Install prerequisites
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev curl \
make gcc bzip2 libreadline-dev zlib1g-dev libkrb5-dev \
python-pip libffi-dev libffi6 memcached git python-xattr
ADD . /opt/ccs
WORKDIR /opt/ccs
# Run configuration script
RUN ./bin/develop
# Create a new user. The UUID can be changed, but it is necessary to set one if
# you want to mount the /data folder as a Docker volume
RUN useradd ccs-user -d /opt/ccs -u 1001
RUN chown -R ccs-user:ccs-user /opt/ccs
USER ccs-user
CMD ["./bin/run", "-n"]

0 comments on commit 72cbb38

Please sign in to comment.