-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(cdk): Change Docker base image to Amazon Linux #2625
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
**/**/node_modules | ||
.dockerignore | ||
Dockerfile |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,10 @@ for module in ${modules}; do | |
# Symlink executable scripts into place as well. This is not completely | ||
# according to spec (we look in the bin/ directory instead of the { "scripts" | ||
# } entry in package.json but it's quite a bit easier. | ||
[[ -d $module/bin ]] && for script in $(find $module/bin -perm +111); do | ||
echo "${script} => node_modules/.bin/$(basename $script)" | ||
ln -fs ${script} node_modules/.bin | ||
done | ||
if [[ -d $module/bin ]]; then | ||
for script in $(find $module/bin -perm /111); do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note on this change ( |
||
echo "${script} => node_modules/.bin/$(basename $script)" | ||
ln -fs ${script} node_modules/.bin | ||
done | ||
fi | ||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note on this change: This format causes ./link-all.sh to return with exit code 1, because the last module doesn't have a bin directory, which fails the Docker image build.