Skip to content

Commit

Permalink
Merge pull request #34 from fhsinchy/honkit
Browse files Browse the repository at this point in the history
Honkit
  • Loading branch information
fhsinchy committed Sep 5, 2023
2 parents 8ee4fc9 + 0990ced commit 8e3e44c
Show file tree
Hide file tree
Showing 47 changed files with 2,771 additions and 245 deletions.
6 changes: 6 additions & 0 deletions .bookignore
@@ -0,0 +1,6 @@
.bookignore
.github
.gitignore
package-lock.json
package.json
LICENSE
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
@@ -0,0 +1,47 @@
---
name: Build and Deploy

on:
push:
branches:
- master

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install and Build
run: |
npm install
npx honkit build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: _book

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
78 changes: 0 additions & 78 deletions .github/workflows/hugo.yaml

This file was deleted.

147 changes: 147 additions & 0 deletions .gitignore
@@ -0,0 +1,147 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Node rules:
## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

## Dependency directory
## Commenting this out is preferred by some people, see
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules

# Book build output
_book

# eBook build output
*.epub
*.mobi
*.pdf
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

Empty file removed .hugo_build.lock
Empty file.
3 changes: 3 additions & 0 deletions LANGS.md
@@ -0,0 +1,3 @@
# Languages

* [English](en/)
6 changes: 0 additions & 6 deletions archetypes/default.md

This file was deleted.

6 changes: 6 additions & 0 deletions book.json
@@ -0,0 +1,6 @@
{
"title": "The Docker Handbook",
"author": "Farhan Hasin Chowdhury",
"pdf.paperSize": "a4",
"pdf.embedFonts": true
}
5 changes: 0 additions & 5 deletions content/_index.md → en/README.md
@@ -1,8 +1,3 @@
---
title: The Docker Handbook
type: docs
---

# The Docker Handbook

![](docker-handbook-preview.png)
Expand Down
67 changes: 67 additions & 0 deletions en/SUMMARY.md
@@ -0,0 +1,67 @@
# Table of Content

* [Introduction to Containerization and Docker](introduction-to-containerization-and-docker.md)
* [Installing Docker](installing-docker/README.md)
* [Installation on macOS](installing-docker/README.md#installation-on-macos)
* [Installation on Windows](installing-docker/README.md#installation-on-windows)
* [Installation on Linux](installing-docker/README.md#installation-on-linux)
* [Hello World in Docker](hello-world-in-docker/README.md)
* [Container](hello-world-in-docker/README.md#container)
* [Image](hello-world-in-docker/README.md#image)
* [Registry](hello-world-in-docker/README.md#registry)
* [Docker Architecture](hello-world-in-docker/README.md#docker-architecture)
* [The Full Picture](hello-world-in-docker/README.md#the-full-picture)
* [Container Manipulation Basics](container-manipulation-basics/README.md)
* [Running Containers](container-manipulation-basics/README.md#running-containers)
* [Publishing Ports](container-manipulation-basics/README.md#publishing-ports)
* [Detached Mode](container-manipulation-basics/README.md#detached-mode)
* [Listing Containers](container-manipulation-basics/README.md#listing-containers)
* [Naming or Renaming Containers](container-manipulation-basics/README.md#naming-or-renaming-containers)
* [Stopping or Killing a Running Container](container-manipulation-basics/README.md#stopping-or-killing-a-running-container)
* [Restarting Containers](container-manipulation-basics/README.md#restarting-containers)
* [Creating Containers Without Running](container-manipulation-basics/README.md#creating-containers-without-running)
* [Removing Dangling Containers](container-manipulation-basics/README.md#removing-dangling-containers)
* [Running Containers in Interactive Mode](container-manipulation-basics/README.md#running-containers-in-interactive-mode)
* [Executing Commands Inside a Container](container-manipulation-basics/README.md#executing-commands-inside-a-container)
* [Working With Executable Images](container-manipulation-basics/README.md#working-with-executable-images)
* [Image Manipulation Basics](image-manipulation-basics/README.md)
* [Image Creation Basics](image-manipulation-basics/README.md#image-creation-basics)
* [Tagging Images](image-manipulation-basics/README.md#tagging-images)
* [Listing and Removing Images](image-manipulation-basics/README.md#listing-and-removing-images)
* [Understanding the Many Layers of an Image](image-manipulation-basics/README.md#understanding-the-many-layers-of-an-image)
* [Building NGINX From Source](image-manipulation-basics/README.md#building-nginx-from-source)
* [Optimizing Images](image-manipulation-basics/README.md#optimizing-images)
* [Embracing Alpine Linux](image-manipulation-basics/README.md#embracing-alpine-linux)
* [Creating Executable Images](image-manipulation-basics/README.md#creating-executable-images)
* [Sharing Your Images Online](image-manipulation-basics/README.md#sharing-your-images-online)
* [Containerizing a JavaScript Application](containerizing-a-javascript-application/README.md)
* [Writing The Development Dockerfile](containerizing-a-javascript-application/README.md#writing-the-development-dockerfile)
* [Working With Bind Mounts](containerizing-a-javascript-application/README.md#working-with-bind-mounts)
* [Working With Anonymous Volumes](containerizing-a-javascript-application/README.md#working-with-anonymous-volumes)
* [Performing Multi-Staged Builds](containerizing-a-javascript-application/README.md#performing-multi-staged-builds)
* [Ignoring Unnecessary Files](containerizing-a-javascript-application/README.md#ignoring-unnecessary-files)
* [Network Manipulation Basics](network-manipulation-basics.md)
* [Network Basics](network-manipulation-basics.md#network-basics)
* [Creating a User-Defined Bridge](network-manipulation-basics.md#creating-a-user-defined-bridge)
* [Attaching Containers to a Network](network-manipulation-basics.md#attaching-containers-to-a-network)
* [Detaching Containers from a Network](network-manipulation-basics.md#detaching-containers-from-a-network)
* [Getting Rid of Networks](network-manipulation-basics.md#getting-rid-of-networks)
* [Containerizing a Multi-Container JavaScript Application](containerizing-a-multi-container-javascript-application/README.md)
* [Setting Up The Custom Bridge Network](containerizing-a-multi-container-javascript-application/README.md#setting-up-the-custom-bridge-network)
* [Running the Database Server](containerizing-a-multi-container-javascript-application/README.md#running-the-database-server)
* [Working With Named Volumes](containerizing-a-multi-container-javascript-application/README.md#working-with-named-volumes)
* [Accessing Logs From a Container](containerizing-a-multi-container-javascript-application/README.md#accessing-logs-from-a-container)
* [Attaching The Database Server (in case you missed it earlier)](containerizing-a-multi-container-javascript-application/README.md#attaching-the-database-server-in-case-you-missed-it-earlier)
* [Writing The Dockerfile)](containerizing-a-multi-container-javascript-application/README.md#writing-the-dockerfile)
* [Executing Commands in a Running Container)](containerizing-a-multi-container-javascript-application/README.md#executing-commands-in-a-running-container)
* [Writing Management Scripts)](containerizing-a-multi-container-javascript-application/README.md#writing-management-scripts)
* [Composing Projects Using Docker-Compose](composing-projects-using-docker-compose/README.md)
* [Compose Basics](composing-projects-using-docker-compose/README.md#compose-basics)
* [What About the Network Bridge?](composing-projects-using-docker-compose/README.md#what-about-the-network-bridge)
* [Starting Services](composing-projects-using-docker-compose/README.md#starting-services)
* [Listing Services](composing-projects-using-docker-compose/README.md#listing-services)
* [Executing Commands Inside a Running Service](composing-projects-using-docker-compose/README.md#executing-commands-inside-a-running-service)
* [Accessing Logs From a Running Service](composing-projects-using-docker-compose/README.md#accessing-logs-from-a-running-service)
* [Stopping Services](composing-projects-using-docker-compose/README.md#stopping-services)
* [Composing a Full-stack Application](composing-projects-using-docker-compose/README.md#composing-a-full-stack-application)
* [Conclusion](conclusion.md)
@@ -1,9 +1,3 @@
---
title: Composing Projects Using Docker-Compose
type: docs
weight: 9
---

# Composing Projects Using Docker-Compose

In the previous section, you've learned about managing a multi-container project and the difficulties of it. Instead of writing so many commands, there is an easier way to manage multi-container projects, a tool called [Docker Compose](https://docs.docker.com/compose/).
Expand Down

0 comments on commit 8e3e44c

Please sign in to comment.