Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions apache2.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ RUN set -x \
&& apk del $buildDeps

# Generate a self-signed cert
RUN set -x \
&& apk add --no-cache openssl \
&& openssl req -x509 -newkey rsa:4086 -days 3650 -nodes -sha256 \
-subj "/C=US/ST=WA/L=Issaquah/O=Atlas/OU=Docksal/CN=default" \
-keyout /usr/local/apache2/conf/server.key \
-out /usr/local/apache2/conf/server.crt \
RUN apk add --no-cache openssl \
&& openssl req -batch -x509 -newkey rsa:4086 -days 3650 -nodes -sha256 \
-keyout /usr/local/apache2/conf/server.key -out /usr/local/apache2/conf/server.crt \
&& apk del openssl

RUN set -x \
Expand Down
16 changes: 3 additions & 13 deletions apache2.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
FROM httpd:2.4-alpine

# Generate a self-signed cert
RUN set -x \
&& apk add --no-cache openssl \
&& openssl req -x509 -newkey rsa:4086 -days 3650 -nodes -sha256 \
-subj "/C=US/ST=WA/L=Issaquah/O=Atlas/OU=Docksal/CN=default" \
-keyout /usr/local/apache2/conf/server.key \
-out /usr/local/apache2/conf/server.crt \
RUN apk add --no-cache openssl \
&& openssl req -batch -x509 -newkey rsa:4086 -days 3650 -nodes -sha256 \
-keyout /usr/local/apache2/conf/server.key -out /usr/local/apache2/conf/server.crt \
&& apk del openssl

RUN set -x \
Expand All @@ -20,13 +17,6 @@ RUN set -x \
&& sed -i '/^#.* conf\/extra\/httpd-vhosts.conf/s/^#//' /usr/local/apache2/conf/httpd.conf \
&& sed -i '/^#.* conf\/extra\/httpd-ssl.conf/s/^#//' /usr/local/apache2/conf/httpd.conf

#sed -i '/^#.* cache_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \
#sed -i '/^#.* cache_disk_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \
#sed -i '/^#.* cache_socache_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \
#sed -i '/^#.* socache_shmcb_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \
#sed -i '/^#.* socache_dbm_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \
#sed -i '/^#.* socache_memcache_module /s/^#//' /usr/local/apache2/conf/httpd.conf && \

COPY httpd-foreground /usr/local/bin/
COPY conf /usr/local/apache2/conf

Expand Down