# GitHub のリポジトリと discourse\_docker に関する議論を理解しようとしています

**URL:** https://meta.discourse.org/t/trying-to-understand-github-repositories-discourse-and-discourse-docker/154293
**Category:** Support
**Created:** [2020 年 6 月 9 日午後 12:01 UTC](https://meta.discourse.org/t/trying-to-understand-github-repositories-discourse-and-discourse-docker/154293 "2020-06-09T12:01:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2020 年 6 月 9 日午後 12:01 UTC](https://meta.discourse.org/t/trying-to-understand-github-repositories-discourse-and-discourse-docker/154293/1 "2020-06-09T12:01:43Z")

</div>

サイトがセルフホストされている場合の標準作業手順書（SOP）を作成する中で、[ダック](https://en.wikipedia.org/wiki/Rubber_duck_debugging) 🦆 に、GitHub のリポジトリ [discourse](https://github.com/discourse/discourse) と [discourse\_docker](https://github.com/discourse/discourse_docker) の違いを説明しようとしています。

以下に、[もしよろしければ](https://dictionary.cambridge.org/us/dictionary/english/if-you-will)、その証拠となる3点を挙げます。

* * *

Discourse を初めて [インストール](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md#install-discourse) する際には、`discourse_docker` リポジトリが使用されます。

```plaintext
groot@galaxy:~$ git clone https://github.com/discourse/discourse_docker.git /var/discourse

```

ここで [投稿](https://meta.discourse.org/search?q=tests-passed) を読むと、顧客が使用しているブランチは tests-passed であることが記載されています。しかし、[discourse\_docker](https://github.com/discourse/discourse_docker) リポジトリを確認すると、`tests-passed` ブランチは [見つかりません](https://github.com/discourse/discourse_docker/tree/tests-passed)。一方、[discourse](https://github.com/discourse/discourse) リポジトリを確認すると、tests-passed ブランチは [存在します](https://github.com/discourse/discourse/tree/tests-passed)。

* * *

`discourse_docker` における `tests-passed` については、[samples](https://github.com/discourse/discourse_docker/tree/master/samples) ディレクトリ内の [standalone.yml](https://github.com/discourse/discourse_docker/blob/master/samples/standalone.yml#L36-L37) ファイルで [確認できます](https://github.com/discourse/discourse_docker/search?q=tests-passed&unscoped_q=tests-passed)。ただし、`app.yml` のような同様のサイト設定ファイルでは、`discourse_docker` 内で `tests-passed` は [見当たりません](https://github.com/discourse/discourse/search?q=tests-passed&unscoped_q=tests-passed)。

* * *

もし [bash トレースを有効](https://tecadmin.net/tutorial/bash-scripting/bash-debugging/) にして `launcher rebuild app` を実行すると、例えば

```plaintext
groot@galaxy:/var/discourse$ sudo bash -x launcher rebuild app

```

次のように記録されます。

```plaintext
I, [2020-06-07T23:49:27.550542 #1] INFO -- : > cd /var/www/discourse && git pull
From https://github.com/discourse/discourse

```

* * *

ダック 🦆 が理解できるように、これらすべての点を説明していただけませんか。

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2020 年 6 月 9 日午後 12:25 UTC](https://meta.discourse.org/t/trying-to-understand-github-repositories-discourse-and-discourse-docker/154293/2 "2020-06-09T12:25:11Z")

</div>

Discourse\_docker は Discourse を実行する Docker コンテナをビルドします。Discourse をダウンロードします。app.yml ファイルで Discourse のブランチ（またはコミット）を設定することで、Discourse Docker が新しいコンテナをビルドする際に、そのブランチやコミットから Discourse をダウンロードするようにできます。

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [2020 年 6 月 10 日午前 1:01 UTC](https://meta.discourse.org/t/trying-to-understand-github-repositories-discourse-and-discourse-docker/154293/3 "2020-06-10T01:01:13Z")

</div>

サーバー上（オペレーターによって）に `discourse_docker` リポジトリがクローンされ、Docker コンテナを実行します。

Docker コンテナ内（スクリプトによって）に `discourse` リポジトリがクローンされ、Discourse アプリケーションを実行します。
