Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Release/calendar server 9.1 docker #489

Open
wants to merge 2 commits into
base: release/CalendarServer-9.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Dockerfile
.git
data
conf
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
2 changes: 1 addition & 1 deletion bin/_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ init_build () {
fi;

default_requirements="${wd}/requirements-default.txt";
use_openssl="true";
use_openssl="false";

# Use SecureTransport instead of OpenSSL if possible, unless told otherwise
if [ -z "${USE_OPENSSL-}" ]; then
Expand Down