diff options
author | 2021-02-24 14:46:37 +0100 | |
---|---|---|
committer | 2021-03-02 15:56:29 +0100 | |
commit | b1961a04c191ebbc726de507d98c85966b7a6a71 (patch) | |
tree | c15b1ba29407d79740f02734c387695bb01a7026 /httpserver/Dockerfile | |
parent | 441945e8adf7e3adc524d761e61c179c83e9888d (diff) |
Add JWT support in HTTP/HTTPS based locations - pnf-simulator1.0.5
- update containers to version 1.0.5
Issue-ID: DCAEGEN2-2536
Signed-off-by: Krzysztof Gajewski <krzysztof.gajewski@nokia.com>
Change-Id: If6b938db03fc8b5e5a5a6435ad0559061fa5b4ad
Diffstat (limited to 'httpserver/Dockerfile')
-rw-r--r-- | httpserver/Dockerfile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/httpserver/Dockerfile b/httpserver/Dockerfile index 893b5ba..99acb9a 100644 --- a/httpserver/Dockerfile +++ b/httpserver/Dockerfile @@ -11,9 +11,20 @@ ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_LOCK_DIR /var/lock/apache2 ENV APACHE_PID_FILE /var/run/apache2.pid -ADD resources/.htpasswd /usr/local/apache2/passwd/.htpasswd -ADD resources/.htaccess /usr/local/apache2/htdocs/.htaccess -ADD resources/upload.php /usr/local/apache2/conf/upload.php -ADD resources/apache-config.conf /etc/apache2/sites-enabled/000-default.conf -ADD resources/apache2.conf /etc/apache2/apache2.conf -ADD resources/cert/ /etc/apache2/certs/ +COPY --chown=root:root resources/local/.htpasswd /usr/local/apache2/passwd/.htpasswd +COPY --chown=root:root resources/local/upload.php /usr/local/apache2/conf/upload.php +COPY --chown=root:root resources/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf +COPY --chown=root:root resources/ports.conf /etc/apache2/ports.conf +COPY --chown=root:root resources/apache2.conf /etc/apache2/apache2.conf +COPY --chown=root:root resources/cert/ /etc/apache2/certs/ + +COPY --chown=root:root resources/lib/libjwt.so.1.7.0 /usr/lib/x86_64-linux-gnu/libjwt.so.1 +COPY --chown=root:root resources/modules/mod_authnz_jwt.so /usr/local/apache2/modules/mod_authnz_jwt.so +COPY --chown=root:root resources/mods-enabled/auth_jwt.load /etc/apache2/mods-enabled/auth_jwt.load + +RUN chmod 644 /usr/local/apache2/passwd/.htpasswd +RUN chmod 644 /usr/local/apache2/conf/httpd.conf +RUN chmod 644 /usr/lib/x86_64-linux-gnu/libjwt.so.1 +RUN chmod 644 /usr/local/apache2/modules/mod_authnz_jwt.so +RUN touch /usr/local/apache2/htdocs/index.html +CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |