Skip to content

Commit 542c542

Browse files
author
Topi Paavilainen
committed
Merge branch 'docker' of github.com:futurice/futurice-ldap-user-manager into docker
2 parents 5c93ba0 + c556956 commit 542c542

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,35 @@ sed -e "s/^SECRET_KEY =.*$/SECRET_KEY = 'test'/" \
2121
# set USE_TLS=False if some LDAP connections don't work
2222
# Change IT_TEAM to an existing group you're part of to get SUDO permission
2323
```
24+
Run using Docker
25+
================
26+
First build & run your local 389 ldap-server on docker. Insert your 389-servers IP address to `local_settings.py > LDAP_CONNECTION > uri`. 389-server should be running while building FUM.
27+
Set `USE_TLS` and `CHANGES_SOCKET_ENABLED` in `settings/base.py` to False.
2428

25-
Run using Vagrant
26-
=================
27-
Enter your LDAP username in `vagrant/REMOTE_USER`, e.g.:
28-
```bash
29-
echo username >vagrant/REMOTE_USER
29+
Build the docker image:
30+
```
31+
docker build -t fum-docker futurice-ldap-user-manager/
3032
```
3133

32-
```bash
33-
vagrant up
34+
Run:
35+
```
36+
docker run -p 8080:8000 fum-docker
37+
```
38+
39+
Now FUM should be running locally and can be viewed on `localhost:8080`
40+
41+
To search with Solr+Haystack:
42+
````
43+
docker exec <fum container name> ./manage.py update_index
44+
````
45+
46+
Running tests:
3447
```
35-
[localhost:8000](http://localhost:8000)
48+
docker exec <fum container name> ./manage.py test --settings=fum.settings.test_live
49+
```
50+
FUM should be running while running tests.
51+
52+
3653

3754
Develop locally using Procboy
3855
=============================

0 commit comments

Comments
 (0)