Skip to content

Commit 794a873

Browse files
committedJul 11, 2021
bind mount sample added
1 parent 4458879 commit 794a873

File tree

8 files changed

+203
-1
lines changed

8 files changed

+203
-1
lines changed
 

‎bindmount-sample-1/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site
2+
.sass-cache
3+
.jekyll-metadata
4+
.jekyll-cache
5+
vendor

‎bindmount-sample-1/404.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: default
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

‎bindmount-sample-1/Gemfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
gem "jekyll", "~> 4.2.0"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# This gem is needed since Ruby 3.0
14+
gem "webrick", "~> 1.7"
15+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
16+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
17+
# gem "github-pages", group: :jekyll_plugins
18+
# If you have any plugins, put them here!
19+
group :jekyll_plugins do
20+
gem "jekyll-feed", "~> 0.12"
21+
end
22+
23+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
24+
# and associated library.
25+
platforms :mingw, :x64_mingw, :mswin, :jruby do
26+
gem "tzinfo", "~> 1.2"
27+
gem "tzinfo-data"
28+
end
29+
30+
# Performance-booster for watching directories on Windows
31+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
32+

‎bindmount-sample-1/_config.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
#
11+
# If you need help with YAML syntax, here are some quick references for you:
12+
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13+
# https://learnxinyminutes.com/docs/yaml/
14+
#
15+
# Site settings
16+
# These are used to personalize your new site. If you look in the HTML files,
17+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18+
# You can create any custom variable you would like, and they will be accessible
19+
# in the templates via {{ site.myvariable }}.
20+
21+
title: Your awesome title
22+
email: your-email@example.com
23+
description: >- # this means to ignore newlines until "baseurl:"
24+
Write an awesome description for your new site here. You can edit this
25+
line in _config.yml. It will appear in your document head meta (for
26+
Google search results) and in your feed.xml site description.
27+
baseurl: "" # the subpath of your site, e.g. /blog
28+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
29+
twitter_username: jekyllrb
30+
github_username: jekyll
31+
32+
# Build settings
33+
theme: minima
34+
plugins:
35+
- jekyll-feed
36+
37+
# Exclude from processing.
38+
# The following items will not be processed, by default.
39+
# Any item listed under the `exclude:` key here will be automatically added to
40+
# the internal "default list".
41+
#
42+
# Excluded items can be processed by explicitly listing the directories or
43+
# their entries' file path in the `include:` list.
44+
#
45+
# exclude:
46+
# - .sass-cache/
47+
# - .jekyll-cache/
48+
# - gemfiles/
49+
# - Gemfile
50+
# - Gemfile.lock
51+
# - node_modules/
52+
# - vendor/bundle/
53+
# - vendor/cache/
54+
# - vendor/gems/
55+
# - vendor/ruby/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: post
3+
title: "Welcome to Jekyll!"
4+
date: 2020-07-21 01:08:51 +0000
5+
categories: jekyll update
6+
---
7+
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
8+
9+
Jekyll requires blog post files to be named according to the following format:
10+
11+
`YEAR-MONTH-DAY-title.MARKUP`
12+
13+
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
14+
15+
Jekyll also offers powerful support for code snippets:
16+
17+
{% highlight ruby %}
18+
def print_hi(name)
19+
puts "Hi, #{name}"
20+
end
21+
print_hi('Tom')
22+
#=> prints 'Hi, Tom' to STDOUT.
23+
{% endhighlight %}
24+
25+
Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk].
26+
27+
[jekyll-docs]: https://jekyllrb.com/docs/home
28+
[jekyll-gh]: https://github.com/jekyll/jekyll
29+
[jekyll-talk]: https://talk.jekyllrb.com/

‎bindmount-sample-1/about.markdown

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: page
3+
title: About
4+
permalink: /about/
5+
---
6+
7+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](https://jekyllrb.com/)
8+
9+
You can find the source code for Minima at GitHub:
10+
[jekyll][jekyll-organization] /
11+
[minima](https://github.com/jekyll/minima)
12+
13+
You can find the source code for Jekyll at GitHub:
14+
[jekyll][jekyll-organization] /
15+
[jekyll](https://github.com/jekyll/jekyll)
16+
17+
18+
[jekyll-organization]: https://github.com/jekyll

‎bindmount-sample-1/index.markdown

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
# Feel free to add content and custom Front Matter to this file.
3+
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
4+
5+
layout: home
6+
---

‎docker-process-approach/docker-3.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,48 @@ docker container rm -f mysql
9191
cd dockerfile-sample-2
9292
9393
pcat Dockerfile
94+
Or,
95+
cat Dockerfile
9496
9597
docker container run -d --name nginx -p 80:80 -v $(pwd):/usr/share/nginx/html nginx
98+
Or,
99+
docker container run -d --name nginx -p 8080:80 -v $(pwd):/usr/share/nginx/html nginx
100+
101+
Go to : http://localhost:8080/
96102
97103
docker container run -d --name nginx2 -p 8080:80 nginx
104+
Or,
105+
docker container run -d --name nginx2 -p 8081:80 nginx
98106
99107
docker container exec -it nginx bash
100108
```
109+
### Database Upgrades with Named Volumes
110+
* Database upgrade with container
111+
* Create a postgres container with named volume psql-data using version
112+
* Use Docker Hub to learn VOLUME path and versions needed to run it.
113+
* Check logs, stop container.
114+
* Create a new postgres container with same named volume using 9.6.2
115+
* Check logs to validate.
116+
```
117+
docker container run -d --name psql -v psql:/var/lib/postgresql/data postgres:9.6.1
118+
119+
docker container logs -f psql
101120
102-
## Assignment Answers: Edit Code Running In Containers With Bind Mounts
121+
docker container stop TAB-COMPLETION
122+
123+
docker container ps -a
124+
125+
docker volume ls
126+
127+
docker container logs TAB-COMPLETION
103128
```
129+
130+
## Assignment: Edit Code Running In Containers With Bind Mounts
131+
*
132+
133+
```
134+
ll
135+
104136
docker run -p 80:4000 -v $(pwd):/site bretfisher/jekyll-serve
105137
```
106138
### Database Passwords in Containers :

0 commit comments

Comments
 (0)
Please sign in to comment.