Skip to content

Commit

Permalink
phonebook: import of phonebook.js code
Browse files Browse the repository at this point in the history
Vendoring the `ns8` branch, starting from
nethesis/nethserver-phonebook-mysql@b5bccdb
  • Loading branch information
Amygos committed May 29, 2024
1 parent 5a32f90 commit 86e7383
Show file tree
Hide file tree
Showing 5 changed files with 681 additions and 5 deletions.
7 changes: 3 additions & 4 deletions phonebook/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ RUN apk add --no-cache \
npm \
curl

RUN \
mkdir -p /usr/share/phonebookjs && \
curl -L https://github.com/nethesis/nethserver-phonebook-mysql/archive/refs/heads/ns8.tar.gz -o - | tar xzp --strip-component=5 -C /usr/share/phonebookjs nethserver-phonebook-mysql-ns8/root/usr/share/phonebookjs && \
cd /usr/share/phonebookjs && \
RUN mkdir -p /usr/share/phonebookjs
COPY package.json package-lock.json phonebook.js /usr/share/phonebookjs/
RUN cd /usr/share/phonebookjs && \
npm install && \
mkdir -p /etc/certificates

Expand Down
10 changes: 9 additions & 1 deletion phonebook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
Phonebook container for NethServer 8
This container connects to MariaDB phonebook database, read the phonebook and expose it using LDAPS

## phonebookjs

Phonebook code repository is https://github.com/nethesis/nethserver-phonebook-mysql/tree/ns8
phonebookjs is a daemon written in nodejs.
The deamon is a simple LDAP server serving all records from phonebook database in LDAP format.

Features:

- all records are stored in-memory after the startup: to refresh the cache, restart the server
- SSL and authentication are not supported
- all search are case insensitive

## Environment variables

Expand Down
Loading

0 comments on commit 86e7383

Please sign in to comment.