Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
solareenlo committed May 17, 2019
1 parent 2d1f4df commit 9c605da
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 21 deletions.
15 changes: 12 additions & 3 deletions content/docs/angular.md
@@ -1,5 +1,6 @@
# [Angular](https://github.com/angular/angular)とは
Typescript/JavaScriptやその他の言語を使用してモバイルおよびデスクトップWebアプリケーションを構築するための開発プラットフォーム.
# Angularとは
- Typescript/JavaScriptやその他の言語を使用してモバイルおよびデスクトップWebアプリケーションを構築するための開発プラットフォーム.
- **GitHubリポジトリ:** https://github.com/angular/angular

## 用語
|用語|意味|
Expand Down Expand Up @@ -59,7 +60,8 @@ cd first-app
# コンテナに入って作業する
docker run -it --rm -w /app -v $(pwd):/app solareenlo/angular-cli sh
# コンポーネントを作成
docker run -it --rm -w /app -v $(pwd):/app solareenlo/angular-cli ng g component sample-component
docker run -it --rm -w /app -v $(pwd):/app solareenlo/angular-cli ng generate component sample-component
docker run -it --rm -w /app -v $(pwd):/app solareenlo/angular-cli ng g c sample-component
# コンテナを立ち上げる
docker run -d -w /app -v $(pwd):/app -p 4200:4200 solareenlo/angular-cli ng serve --host 0.0.0.0
```
Expand All @@ -77,6 +79,13 @@ docker run -it --rm -w /app -v $(pwd):/app solareenlo/angular-cli sh
docker-compose up -d
# コンテナの中に入って作業する
docker-compose exec angular sh
# コンポーネント作成
docker-compose exec ng generate component sample-component
docker-compose exec ng g c sample-component
# テストは作らずにコンポーネント作成
docker-compose exec ng g c sample-component --spec false
# コンポーネントの中にコンポーネントを作成
docker-compose exec ng g c sample-component/test --spec false
# 関連するコンテンを全て止める
docker-compose stop
# 関連するコンテナを全削除
Expand Down
10 changes: 6 additions & 4 deletions content/docs/command.md
@@ -1,8 +1,8 @@
# コマンドとは
コンピュータに特定の機能の実行を指示する命令のこと.
たくさんのコマンドがあり, 黒い画面に直接入力する.
- コンピュータに特定の機能の実行を指示する命令のこと.
- たくさんのコマンドがあり, 黒い画面に直接入力する.

## psコマンド
## プロセスの動作状況 (ps)
psコマンドはプロセスの動作状況を確認するためのコマンド.

**auxオプション**
Expand Down Expand Up @@ -31,10 +31,12 @@ shasum -a 256 <ファイル名>
sha256sum <ファイル名>
```

## ファイルのユーザー所有権とグループ所有権を変更
## 所有権を変更 (chown)
ファイルのユーザー所有権とグループ所有権をrootからsolareenloへ変更する
```bash
sudo chown solareenlo:solareenlo ファイル名
# 再帰的に変更
sudo chown -R solareenlo:solareenlo ファイル名
```

# 基本的なUnixコマンドの使い方
Expand Down
24 changes: 24 additions & 0 deletions content/docs/css.md
@@ -0,0 +1,24 @@
# CSSとは
- ウェブページのスタイルを指定するための言語.
- Cascading Style Sheetsの略.

## フレームワーク
### Bootstrap
#### グリッドシステム
<img src="/images/bootstrap/grid_system.jpg" width="80%" height="80%">

**Reference:** [Bootstrapのグリッドシステムの使い方を初心者に向けておさらいする](http://websae.net/twitter-bootstrap-grid-system-21060224/)

```css
<div class="contaiiner"> /* 固定枠 */
<div class="row"> /* row枠 */
<div class="col-xs-12"></div> /* スマホ枠 */
<div class="col-sm-12"></div> /* タブレット枠 */
<div class="col-md-12"></div> /* PC枠 */
<div class="col-lg-12"></div> /* PC大枠 */
</div>
</div>
```
<img src="/images/bootstrap/col_size.png" width="80%" height="80%">

**Reference:** [Bootstrapのグリッドシステムについてまとめてみた](https://qiita.com/akatsuki174/items/53b7367b04ed0b066bbf)
30 changes: 18 additions & 12 deletions content/docs/kubernetes.md
@@ -1,12 +1,12 @@
# [Kubernetes](https://github.com/kubernetes)とは
Dockerコンテナのクラスタ管理を始めとしたオーケストレーションを行うサービスのこと.
ホスト間の連携やデプロイについても総括的に管理できる(ここがDocker Composeと違うところ).
**Reference:** [Docker Compose利用者から見た Kubernetes 開発環境構築入門](https://speakerdeck.com/kkoudev/introduction-to-kubernetes-for-docker-compose-user)

Kubernetesの大きな特徴の1つに宣言的設定がある.
宣言的設定とは, イミュータブルなインフラを作るための基本的な考え方で, 「システムのあるべき姿」を設定ファイルに宣言する!という考え方.
Kubernetesは設定ファイルに書いたとおりのインフラを維持するように設計されている.
ので, 設定ファイル(yamlファイル)をたくさん書く事になる.
# Kubernetesとは
- Dockerコンテナのクラスタ管理を始めとしたオーケストレーションを行うサービスのこと.
- ホスト間の連携やデプロイについても総括的に管理できる(ここがDocker Composeと違うところ).
- Kubernetesの大きな特徴の1つに宣言的設定がある.
- 宣言的設定とは, イミュータブルなインフラを作るための基本的な考え方で, 「システムのあるべき姿」を設定ファイルに宣言する!という考え方.
- Kubernetesは設定ファイルに書いたとおりのインフラを維持するように設計されている.
- ので, 設定ファイル(yamlファイル)をたくさん書く事になる.
- **Reference:** [Docker Compose利用者から見た Kubernetes 開発環境構築入門](https://speakerdeck.com/kkoudev/introduction-to-kubernetes-for-docker-compose-user)
- **GitHubリポジトリ:** https://github.com/kubernetes

## 他のオーケストレーションと違うところ
① 様々なOSSと組み合わせることにより, 柔軟に機能拡張なところ.
Expand Down Expand Up @@ -234,9 +234,15 @@ kubectl set image solareenlo/worker-deployment worker=solareenlo/multi-worker:$S
## TLS
- [jetstack/cert-manager](https://github.com/jetstack/cert-manager)

# [Helm](https://github.com/helm/helm)
Kubernetesのパッケージ管理ツールのこと.
デフォルトで使用可能なChartは`kubernetes/charts``stable`ディレクトリで確認可能.
## 良書
- [Cloud Native Infrastructure](https://pages.cloud.vmware.com/cloud-native-infrastructure-ebook)
- [Kubernetes Up & Running](https://pages.cloud.vmware.com/kubernetes-up-and-running-ebook)
- [Managing Kubernetes](https://pages.cloud.vmware.com/managing-kubernetes-ebook)

# Helm
- Kubernetesのパッケージ管理ツール.
- デフォルトで使用可能なChartは`kubernetes/charts``stable`ディレクトリで確認可能.
- **GitHubリポジトリ:** https://github.com/helm/helm

|用語|意味|役割|
|---|---|---|
Expand Down
2 changes: 1 addition & 1 deletion content/docs/linter-formatter.md
Expand Up @@ -6,7 +6,7 @@

## Prettier
- JavaScript(including ES2017), JSX, Angular, Vue, Flow, TypeScrip,t CSS, Less, SCSS, HTML, JSON, GraphQL, Markdown, GFM, MDX, YAMLをフォーマットしてくれる.
- **リポジトリ:** [prettier/prettier](https://github.com/prettier/prettier)
- **GitHubリポジトリ:** [prettier/prettier](https://github.com/prettier/prettier)

### vimでの使い方
1. [こちら](https://github.com/solareenlo/vim-config/blob/master/.vimrc)の.vimrcの様に[vim-prettier](https://github.com/prettier/vim-prettier)を設定する.
Expand Down
1 change: 1 addition & 0 deletions content/menu/index.md
Expand Up @@ -17,6 +17,7 @@ headless: true
- [C]({{< relref "/docs/c.md" >}})
- [Rust]({{< relref "/docs/rust.md" >}})
- [JavaScript]({{< relref "/docs/javascript.md" >}})
- [CSS]({{< relref "/docs/css.md" >}})
- [Node.js]({{< relref "/docs/nodejs.md" >}})
- [TypeScript]({{< relref "/docs/typescript.md" >}})
- [Angular]({{< relref "/docs/angular.md" >}})
Expand Down
2 changes: 1 addition & 1 deletion public
Submodule public updated 68 files
+1 −0 docs/alpine-linux/index.html
+16 −4 docs/angular/index.html
+1 −0 docs/aws/index.html
+1 −0 docs/bitcoin-fullnode/index.html
+1 −0 docs/bitcoin/index.html
+1 −0 docs/blockchain/index.html
+1 −0 docs/c/index.html
+1 −0 docs/ci-cd/index.html
+1 −0 docs/circleci/index.html
+1 −0 docs/cloud/index.html
+12 −7 docs/command/index.html
+1 −0 docs/container/index.html
+1 −0 docs/crypto/index.html
+249 −0 docs/css/index.html
+1 −0 docs/db/index.html
+1 −0 docs/docker-compose/index.html
+1 −0 docs/docker-hub/index.html
+1 −0 docs/docker1/index.html
+1 −0 docs/docker2/index.html
+1 −0 docs/ethereum/index.html
+1 −0 docs/firebase/index.html
+1 −0 docs/gcp/index.html
+3 −2 docs/git/index.html
+1 −0 docs/github/index.html
+1 −0 docs/haskell/index.html
+1 −0 docs/hugo/index.html
+1 −0 docs/index.html
+17 −13 docs/index.xml
+1 −0 docs/iota/index.html
+1 −0 docs/javascript/index.html
+1 −0 docs/jenkins/index.html
+34 −13 docs/kubernetes/index.html
+1 −0 docs/latex/index.html
+2 −1 docs/linter-formatter/index.html
+1 −0 docs/mongodb/index.html
+1 −0 docs/mysql/index.html
+1 −0 docs/nodejs/index.html
+1 −0 docs/npm/index.html
+1 −0 docs/programming-language/index.html
+1 −0 docs/programming/index.html
+1 −0 docs/redis/index.html
+1 −0 docs/rust/index.html
+1 −0 docs/shell-script/index.html
+1 −0 docs/ssh/index.html
+1 −0 docs/substrate/index.html
+1 −0 docs/terminal/index.html
+1 −0 docs/test/index.html
+1 −0 docs/travis-ci/index.html
+1 −0 docs/typescript/index.html
+1 −0 docs/ubuntu/index.html
+3 −2 docs/vim/index.html
+1 −0 docs/vps/index.html
+1 −0 docs/white-paper/index.html
+ images/bootstrap/col_size.png
+ images/bootstrap/grid_system.jpg
+3 −2 index.html
+17 −13 index.xml
+1 −0 posts/angular-docker/index.html
+1 −0 posts/app/index.html
+1 −0 posts/bitbank01/index.html
+1 −0 posts/bitcoind/index.html
+1 −0 posts/docker-pass/index.html
+1 −0 posts/hello-world/index.html
+1 −0 posts/how-to-make-this-site/index.html
+1 −0 posts/index.html
+1 −0 posts/plasma-substrate01/index.html
+1 −0 posts/programming-bitcoin/index.html
+6 −1 sitemap.xml
Binary file added static/images/bootstrap/col_size.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/bootstrap/grid_system.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9c605da

Please sign in to comment.