-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
committed
Feb 3, 2020
1 parent
5d90e3c
commit b8be92d
Showing
6 changed files
with
90 additions
and
146 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# DOCKER-VERSION 17.10.0-ce | ||
FROM buster:slim | ||
MAINTAINER Giuseppe De Marco <giuseppe.demarco@unical.it> | ||
|
||
# set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y python3-dev python3-setuptools python3-pip \ | ||
easy-rsa expect-dev git ldap-utils | ||
|
||
# install dependencies | ||
RUN pip install --upgrade pip ansible | ||
|
||
# generate chosen locale | ||
RUN sed -i 's/# it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/' /etc/locale.gen | ||
RUN locale-gen it_IT.UTF-8 | ||
# set system-wide locale settings | ||
ENV LANG it_IT.UTF-8 | ||
ENV LANGUAGE it_IT | ||
ENV LC_ALL it_IT.UTF-8 | ||
|
||
COPY . /ansible-slapd-eduperson2016 | ||
WORKDIR /ansible-slapd-eduperson2016 | ||
|
||
## Add the wait script to the image | ||
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.2/wait /wait | ||
RUN chmod +x /wait | ||
|
||
# Create certificates | ||
RUN bash make_CA.production.sh | ||
|
||
# check with | ||
# docker inspect --format='{{json .State.Health}}' slapd_master | ||
# HEALTHCHECK --interval=3s --timeout=2s --retries=1 CMD curl --fail http://localhost:8000/ || exit 1 | ||
|
||
RUN ansible-playbook -i "localhost," -c local playbook.production.yml | ||
EXPOSE 636 | ||
EXPOSE 389 |
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
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
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
Oops, something went wrong.