-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update the Dockerfile to be useful for testing slapd-regtest.
Tested with `podman build .` Issue: #98
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 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,10 +1,18 @@ | ||
FROM python:3 | ||
FROM python:3.10 | ||
RUN apt-get update | ||
RUN apt-get install -y libsasl2-dev libldap2-dev libssl-dev | ||
RUN mkdir /code | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get install -y libsasl2-dev libldap2-dev libssl-dev slapd ldap-utils | ||
|
||
ENV VIRTUAL_ENV=/opt/venv | ||
RUN python -m venv $VIRTUAL_ENV | ||
ENV PATH=$VIRTUAL_ENV/bin:$PATH | ||
|
||
WORKDIR /code | ||
ADD requirements.txt /code/ | ||
|
||
ADD ./requirements.txt /code/requirements.txt | ||
RUN pip install -r requirements.txt | ||
ADD . /code/ | ||
|
||
CMD [ "python", "./runtests.py" ] | ||
ADD . /code | ||
RUN python setup.py test | ||
RUN python setup.py install | ||
RUN tests/slapd-regtest |
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