ServantDocker doesn't work out of the box
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, docker-compose, haskell
- 領域
- build-system, devops
調査の方向性
まず、記載されている stack new、docker-compose build、docker-compose up コマンドを実行します。報告で言及されている Dockerfile、docker-compose.yml、stack.yaml、nginx.conf を調べ、その後、生成されたプロジェクトが手動編集なしで動作し、互換性のある image、project-name、resolver、upstream の設定を使用していることを確認します。
索引モデルが issue の本文から書いたものです。
説明
tldr;
- The Dockerfile needs to inherit from haskell:8.6.3
- The project name needs to be lowercased in several instances.
Steps to reproduce:
stack new ServantDockerTest servant-docker
sudo docker-compose up
- "ERROR: no such image: ServantDockerTest: invalid reference format: repository name must be lowercase"
I go to docker-compose.yml and change line 3, 5, 15: to servantdockertest
version: '3'
services:
servantdockertest:
build: .
image: servantdockertest
command: ServantDockerTest
expose:
- "1234"
nginx:
build: ./nginx
image: nginx
ports:
- "8080:80"
depends_on:
- servantdockertest
-
The build will fail because of ghc mismatch. To get past this, I update the docker image to haskell:8.6.3 or I have to go into the stack.yaml and change the resolver from lts-13.4 to lts-11.8
-
sudo docker-compose up will still fail because the upstream can't be found. Have to edit the nginx.conf file for the upstream app.
upstream app {
server servantdockertest:1234;
}
sudo docker-compose build
sudo docker-compose up
And everything works.
- 主要言語
- Haskell
- スター
- 244
- フォーク
- 110
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
alunduil/network-arbitrary#293 ·
メンテナーはふだん 1 日以内に返信
-
area:client bug priority-low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
simplex-chat/simplex-chat#8372 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信