2017-03-19 17 views
0

Drupalコンポーザプロジェクトのファイルとフォルダのリストがドッカー画像に含まれないようにしようとしていますが、意図しない副作用として明示的ではないフォルダ.dockerignoreに定義されている。ここで私が働いているファイルです:私は一番下に含めるフォルダを定義した.dockerignoreのフォルダを除外します

# root files 
.gitignore 
.gitmodules 
.travis.yml 
.gitlab-ci.yml 
docker-compose.yml 
LICENSE 
phpunit.xml.dist 
README.md 

# folders 
.c9 
.git 
backups/ 
vendor/ 
web/core/ 
web/modules/contrib/ 
web/profiles/ 
web/themes/contrib/ 

# web files 
web/.csslintrc 
web/.editorconfig 
web/.eslintrc 
web/.eslintignore 
web/.gitattributes 
web/.htaccess 

# web sites files 
web/sites/development.services.yml 
web/sites/example.settings.local.php 
web/sites/example.sites.php 

# web sites default files 
web/sites/default/files/ 
web/sites/default/default.services.yml 
web/sites/default/settings.local.php 

<all combinations of lines below, one at a time> 

、私は以下の考えることができるすべての組み合わせを試してみました。これまでの運がなかったし、試してみるべきものがなくなった。

# don't ignore comes last 
!web/themes/custom 
!web/libraries 

# don't ignore comes last 
!web/themes/custom/ 
!web/libraries/ 

# don't ignore comes last 
!web/themes/custom/* 
!web/libraries/* 

# don't ignore comes last 
*!web/themes/custom/* 
*!web/libraries/* 

私はまた、すべてのフォルダのコメントを解除しようとした、とweb/themes/customweb/librariesフォルダは、まだ私のドッキングウィンドウの画像に表示されません。私もこれらのフォルダを含む.gitignoreファイルがあります。多分、これはこの奇妙な振る舞いの原因となるでしょうか?

ご協力いただければ幸いです。

+0

提供された詳細からこれを再現することはできません。 [この回答](http://stackoverflow.com/a/40966234/596285)の手順に従って、ビルドの出力とビルドディレクトリで実行されている 'find .'と一緒に結果を投稿してください。 – BMitch

+0

問題が解決しました。以下の回答を参照してください。 – DevOps1337

答えて

0

私はGitlab CIで画像を構築していましたが、私のgitリポジトリに私がコピーしようとしていたフォルダがないことを忘れました。私のローカル開発環境だけがフォルダを持っていました。

関連する問題