keep container running

Hi, using ldapaccountmanager/lam in kubernetes stops running.
I think the same problem will happen starting using docker-compose.
Can you please change the Dockerfile or document on dockerhub.
Here is a config that works:
...
      containers:
        - name: ldap-account-manager
          image: ldapaccountmanager/lam
          command: ["/bin/sh"]
          args: ["-c", "service apache2 start && sleep infinity"]
This commit is contained in:
Christian M 2019-01-29 13:06:09 +01:00 committed by GitHub
parent d15cde2507
commit f0e69fa6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,5 +52,5 @@ RUN echo "RewriteEngine on" >> /etc/apache2/conf-enabled/laminit.conf \
&& echo "RewriteRule ^/$ /lam/ [R,L]" >> /etc/apache2/conf-enabled/laminit.conf
# start Apache when container starts
ENTRYPOINT service apache2 start && /bin/bash
ENTRYPOINT service apache2 start && sleep infinity