diff options
| author | Zachary Knight <zachk@knowbe4.com> | 2019-06-10 12:51:05 -0400 |
|---|---|---|
| committer | Zachary Knight <zachk@knowbe4.com> | 2019-06-10 12:51:05 -0400 |
| commit | 8d681e69c2025d31142fdc5f6685949ffe70d7d9 (patch) | |
| tree | cdad800c775cf59aacb20817ab50069c4786a11d | |
| parent | c1eff826603590c83778ff8c2e8aa018df5c0e73 (diff) | |
Updated license-finder to 5.9.0
| -rw-r--r-- | Dockerfile | 9 | ||||
| -rw-r--r-- | README.md | 15 | ||||
| -rwxr-xr-x | run.sh | 4 |
3 files changed, 13 insertions, 15 deletions
@@ -1,4 +1,4 @@ -ARG LICENSE_FINDER_VERSION=5.6.2 +ARG LICENSE_FINDER_VERSION=5.9.0 FROM licensefinder/license_finder:$LICENSE_FINDER_VERSION MAINTAINER GitLab @@ -6,6 +6,10 @@ MAINTAINER GitLab ARG LICENSE_FINDER_VERSION ENV LICENSE_FINDER_VERSION $LICENSE_FINDER_VERSION +# Current workaround due to a regression from 5.9.0 +# https://github.com/pivotal/LicenseFinder/issues/600 +ENV BUNDLE_GEMFILE=Gemfile + # Install JDK 11 RUN cd /tmp && \ wget --quiet --no-cookies https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.2%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_9.tar.gz -O jdk-11.tgz && \ @@ -22,9 +26,6 @@ RUN apt-get update && \ libpq-dev libmysqlclient-dev realpath python3-dev python3-pip && \ rm -rf /var/lib/apt/lists/* -# Don't load RVM automatically, it doesn't work with GitLab-CI -RUN mv /etc/profile.d/rvm.sh /rvm.sh - # Warning! Environment variable PIP_VERSION causes the upgrade of pip to fail. ARG VERSION_OF_PIP=19.1.1 ENV VERSION_OF_PIP $VERSION_OF_PIP @@ -61,17 +61,18 @@ The following table shows which languages and package managers are supported. | .NET | [Nuget](https://www.nuget.org/) | | Python | [pip](https://pip.pypa.io/en/stable/) | | Ruby | [gem](https://rubygems.org/) | +| PHP | [composer](https://getcomposer.org) | Inject `SETUP_CMD` to the docker command to override the given package managers and run your custom command to setup your environment with a custom package manager. - ```sh - docker run \ - --volume "$PWD":/code \ - --env "SETUP_CMD=./my-custom-install-script.sh" \ - --rm \ - registry.gitlab.com/gitlab-org/security-products/license-management:latest analyze /code - ``` +```sh +docker run \ + --volume "$PWD":/code \ + --env "SETUP_CMD=./my-custom-install-script.sh" \ + --rm \ + registry.gitlab.com/gitlab-org/security-products/license-management:latest analyze /code +``` ## Settings @@ -94,10 +94,6 @@ case "$COMMAND" in analyze) # Analyze project - - # Load RVM - source /rvm.sh - # Change current directory to the project path. APP_PATH=$1 shift |
