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/custom
및
web/libraries
폴더는 여전히 내 고정 표시기 이미지에 표시되지 않습니다. 또한이 폴더가 포함 된
.gitignore
파일이 있습니다. 어쩌면이게 이상한 행동의 원인일까요?
도움을 주시면 감사하겠습니다.
제공하신 세부 정보에서이를 재현 할 수 없습니다. [이 답변] (http://stackoverflow.com/a/40966234/596285)의 단계를 따라 빌드 결과와 함께 빌드 디렉토리에서 실행중인 '찾기'를 게시하십시오. – BMitch
문제가 해결되었습니다. 아래 답변을 참조하십시오. – DevOps1337