Skip to content

Commit 72cbb38

Browse files
committed
Docker support
1 parent 7e19234 commit 72cbb38

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Dockerfile
2+
.git
3+
data
4+
conf

Dockerfile

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM debian:jessie-slim
2+
3+
# Install prerequisites
4+
RUN apt-get update \
5+
&& apt-get upgrade -y \
6+
&& apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev curl \
7+
make gcc bzip2 libreadline-dev zlib1g-dev libkrb5-dev \
8+
python-pip libffi-dev libffi6 memcached git python-xattr
9+
10+
ADD . /opt/ccs
11+
WORKDIR /opt/ccs
12+
13+
# Run configuration script
14+
RUN ./bin/develop
15+
16+
# Create a new user. The UUID can be changed, but it is necessary to set one if
17+
# you want to mount the /data folder as a Docker volume
18+
RUN useradd ccs-user -d /opt/ccs -u 1001
19+
RUN chown -R ccs-user:ccs-user /opt/ccs
20+
21+
USER ccs-user
22+
CMD ["./bin/run", "-n"]

0 commit comments

Comments
 (0)