-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: adds ckantest:next as a test target option
To use it run docker-compose run next. This commit also removed the docker-compose run ckan option as there is no ckan service anymore, this has been renamed latest to reflect what it runs against.
- Loading branch information
Showing
3 changed files
with
38 additions
and
2 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
File renamed without changes.
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,21 @@ | ||
FROM naturalhistorymuseum/ckantest:next | ||
|
||
# required by python-ldap | ||
RUN apt-get -q -y install libldap2-dev libsasl2-dev \ | ||
&& apt-get -q clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /base/src/ckanext-ldap | ||
|
||
# copy over the source | ||
COPY . . | ||
|
||
# install the base + test dependencies | ||
RUN pip install -e .[test] | ||
|
||
# this entrypoint ensures our service dependencies (postgresql, solr and redis) are running before | ||
# running the cmd | ||
ENTRYPOINT ["/bin/bash", "/opt/waits/basic.sh"] | ||
|
||
# run the tests with coverage output | ||
CMD ["bash", "/opt/scripts/run-tests.sh", "ckanext.ldap"] |