This repository has been archived by the owner on Mar 6, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Require localheinz/composer-normalize only when differen…
…t from default
- Loading branch information
1 parent
58faaa8
commit 950722e
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ LABEL "maintainer"="Andreas Möller <[email protected]>" | |
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
ENV COMPOSER_NORMALIZE_VERSION=1.3.0 | ||
ENV COMPOSER_NORMALIZE_VERSION_DEFAULT=1.3.0 | ||
|
||
RUN composer global require localheinz/composer-normalize:$COMPOSER_NORMALIZE_VERSION | ||
RUN composer global require localheinz/composer-normalize:$COMPOSER_NORMALIZE_VERSION_DEFAULT | ||
|
||
ADD entrypoint.sh /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh -l | ||
|
||
sh -c "composer global require localheinz/composer-normalize:$COMPOSER_NORMALIZE_VERSION" | ||
sh -c "if [[ ! -z $COMPOSER_NORMALIZE_VERSION && '$COMPOSER_NORMALIZE_VERSION' != '$COMPOSER_NORMALIZE_VERSION_DEFAULT' ]]; then composer global require localheinz/composer-normalize:$COMPOSER_NORMALIZE_VERSION; fi" | ||
sh -c "if [[ '$HOME' != '/root' ]]; then cp -r /root/.composer $HOME/.composer; fi" | ||
sh -c "composer normalize --dry-run" |