Skip to content

Commit

Permalink
chore: Enable gzip and add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani committed Mar 20, 2020
1 parent 5095386 commit b8c122c
Show file tree
Hide file tree
Showing 8 changed files with 1,061 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<link rel="shortcut icon" href="/favicon.ico">
<link rel="icon" type="image/png" href="/favicon.png" sizes="96x96">
<link rel="icon" type="image/png" href="/favicon.png" sizes="32x32">
<style>
.sidebar-subheading {
text-align: center;
Expand Down
18 changes: 0 additions & 18 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ node {
"M2_HOME=${mvnHome}",
"JAVA_HOME=${javaHome}"]) {
sh "mvn clean deploy"
sh "docker build -t graviteeio/gravitee-ui-components:latest --pull=true ."
sh "docker build -f docker/Dockerfile -t graviteeio/gravitee-ui-components:latest --pull=true ."
sh "docker push graviteeio/gravitee-ui-components:latest"
}
}
Expand Down
23 changes: 23 additions & 0 deletions docker/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
</IfModule>
27 changes: 27 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (C) 2015 The Gravitee team (http://gravitee.io)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM graviteeio/httpd:latest
MAINTAINER Gravitee Team <http://gravitee.io>

COPY ./storybook-static /var/www/html/
COPY ./docker/httpd.conf /etc/httpd/conf/httpd.conf
COPY ./docker/.htaccess /var/www/html/
COPY ./docker/favicon.ico /var/www/html/
COPY ./docker/favicon.png /var/www/html/

EXPOSE 80
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
Binary file added docker/favicon.ico
Binary file not shown.
Binary file added docker/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b8c122c

Please sign in to comment.