forked from sujaykundu777/devlopr-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e402ab1
commit b4d9502
Showing
12 changed files
with
179 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM jekyll/jekyll:latest as build | ||
|
||
WORKDIR /srv/jekyll | ||
|
||
ADD . /srv/jekyll | ||
|
||
RUN gem install bundler && \ | ||
rm -rf Gemfile.lock && \ | ||
chmod -R 777 ${PWD} && \ | ||
bundle update && \ | ||
bundle install | ||
# jekyll build && \ | ||
# jekyll serve --livereload --drafts --trace | ||
|
||
ARG build_command | ||
ENV BUILD_COMMAND ${build_command} | ||
|
||
CMD ${BUILD_COMMAND} | ||
|
||
# EXPOSE 4000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,28 +82,28 @@ | |
integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> --> | ||
|
||
|
||
<link rel="stylesheet" href="{{site.url}}{{site.baseurl}}/assets/css/main.css" /> | ||
<link rel="stylesheet" href="{{site.url}}{{site.baseurl}}/assets/css/custom-style.css" /> | ||
<link rel="stylesheet" href="{{site.url}}/assets/bower_components/lightgallery/dist/css/lightgallery.min.css"/> | ||
<link rel="stylesheet" href="/assets/css/main.css" /> | ||
<link rel="stylesheet" href="/assets/css/custom-style.css" /> | ||
<link rel="stylesheet" href="/assets/bower_components/lightgallery/dist/css/lightgallery.min.css"/> | ||
<link rel="stylesheet" href="https://cdn.snipcart.com/themes/v3.0.0-beta.3/default/snipcart.css" /> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.css"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch-theme-algolia.min.css"> | ||
<link rel="stylesheet" href="{{site.url}}/assets/bower_components/bootstrap/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="{{site.url}}/assets/bower_components/font-awesome/web-fonts-with-css/css/fontawesome-all.min.css" /> | ||
<link rel="stylesheet" href="/assets/bower_components/bootstrap/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="/assets/bower_components/font-awesome/web-fonts-with-css/css/fontawesome-all.min.css" /> | ||
<!-- Fonts--> | ||
<link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet"> | ||
|
||
<!-- Favicon --> | ||
<link rel="icon" href="{{site.url}}{{site.baseurl}}/assets/img/favicon.ico" type="image/gif" sizes="16x16"> | ||
|
||
<!-- Jquery --> | ||
<script src="{{site.url}}/assets/bower_components/jquery/dist/jquery.min.js"></script> | ||
<script src="{{site.url}}/assets/bower_components/jquery.easing/jquery.easing.min.js"></script> | ||
<script src="{{site.url}}/assets/bower_components/bootstrap/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="{{site.url}}/assets/bower_components/jquery-mousewheel/jquery.mousewheel.min.js"></script> | ||
<script src="{{site.url}}/assets/bower_components/lightgallery/dist/js/lightgallery-all.min.js"></script> | ||
<script src="/assets/bower_components/jquery/dist/jquery.min.js"></script> | ||
<script src="/assets/bower_components/jquery.easing/jquery.easing.min.js"></script> | ||
<script src="/assets/bower_components/bootstrap/dist/js/bootstrap.bundle.min.js"></script> | ||
<script src="/assets/bower_components/jquery-mousewheel/jquery.mousewheel.min.js"></script> | ||
<script src="/assets/bower_components/lightgallery/dist/js/lightgallery-all.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/picturefill/3.0.2/picturefill.min.js"></script> | ||
<script src="{{site.url}}/assets/bower_components/imagesloaded/imagesloaded.pkgd.min.js"></script> | ||
<script src="/assets/bower_components/imagesloaded/imagesloaded.pkgd.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3' # specify docker-compose version | ||
|
||
# Define the services/containers to be run | ||
services: | ||
jekyllbuild: | ||
build: | ||
context: . | ||
args: | ||
build_command: "jekyll build --watch" | ||
volumes: | ||
- ".:/srv/jekyll" | ||
ports: | ||
- 4000:4000 | ||
- 35729:35729 | ||
nginx: | ||
image: nginx | ||
volumes: | ||
- "./build:/var/www/public" | ||
- "./nginx/nginx.conf:/etc/nginx/nginx.conf" | ||
- "./nginx/html/404.html:/usr/share/nginx/html/404.html" | ||
# to use jekyll's 404 page, uncomment the line below and disable the line above | ||
# Important: ensure that 404.html exist else this will throw an error during build | ||
# - "./web/_site/404.html:/usr/share/nginx/html/404.html" | ||
ports: | ||
- 80:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '3' # specify docker-compose version | ||
|
||
# Define the services/containers to be run | ||
services: | ||
jekyllbuild: | ||
build: | ||
context: . | ||
args: | ||
build_command: "jekyll build" | ||
volumes: | ||
- ".:/srv/jekyll" | ||
nginx: | ||
image: nginx | ||
volumes: | ||
- "./build:/var/www/public" | ||
- "./nginx/nginx.conf:/etc/nginx/nginx.conf" | ||
- "./nginx/html/404.html:/usr/share/nginx/html/404.html" | ||
# to use jekyll's 404 page, uncomment the line below and disable the line above | ||
# Important: ensure that 404.html exist else this will throw an error during build | ||
# - "./web/_site/404.html:/usr/share/nginx/html/404.html" | ||
ports: | ||
- 80:80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1 style='color:red'>Error 404: Not found</h1> | ||
<p>I have no idea where that file is.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
user nginx; | ||
worker_processes 1; | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
pid /var/run/nginx.pid; | ||
|
||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | ||
'$status $body_bytes_sent "$http_referer" ' | ||
'"$http_user_agent" "$http_x_forwarded_for"'; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
|
||
sendfile on; | ||
#tcp_nopush on; | ||
keepalive_timeout 65; | ||
#gzip on; | ||
|
||
|
||
server { | ||
listen 80; | ||
index index.html; | ||
server_name localhost; | ||
root /var/www/public; | ||
|
||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log error; | ||
|
||
location = /favicon.ico { log_not_found off; access_log off; } | ||
location = /robots.txt { log_not_found off; access_log off; } | ||
|
||
|
||
error_page 404 /404.html; | ||
location = /404.html { | ||
root /usr/share/nginx/html; | ||
internal; | ||
} | ||
|
||
} | ||
} |