Skip to content

Commit

Permalink
Added Apache index files configuration (eclipse-che#27)
Browse files Browse the repository at this point in the history
Added Apache index files configuration (eclipse-che#27)
  • Loading branch information
skabashnyuk authored Sep 13, 2018
1 parent 7e6e34a commit f637a5e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Header set Access-Control-Allow-Origin "*"
DirectoryIndex README.md
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY check_plugins_location.sh /test/check_plugins_location.sh
RUN cd /test/ && ./check_plugins_location.sh

FROM registry.centos.org/centos/httpd-24-centos7
RUN mkdir /var/www/html/plugins
COPY /plugins /var/www/html/plugins
COPY index.sh /var/www/html/
COPY .htaccess /var/www/html/
RUN cd /var/www/html/ && ./index.sh > index.json && rm index.sh
COPY index.sh .htaccess README.md /var/www/html/
RUN cd /var/www/html/ && ./index.sh > plugins/index.json && rm index.sh
7 changes: 3 additions & 4 deletions Dockerfile.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ EXPOSE 80
RUN chmod a+rwX /etc/httpd/conf
RUN chmod a+rwX /run/httpd

RUN mkdir /var/www/html/plugins
COPY /plugins /var/www/html/plugins
COPY index.sh /var/www/html/
COPY .htaccess /var/www/html/
RUN cd /var/www/html/ && ./index.sh > index.json && rm index.sh

COPY index.sh .htaccess README.md /var/www/html/
RUN cd /var/www/html/ && ./index.sh > plugins/index.json && rm index.sh

STOPSIGNAL SIGWINCH

Expand Down
1 change: 1 addition & 0 deletions plugins/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DirectoryIndex meta.yaml index.json

0 comments on commit f637a5e

Please sign in to comment.