summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-08-15 10:54:48 -0600
committermo khan <mo@mokhan.ca>2019-08-15 11:08:16 -0600
commitd57e616015f96681f8c3cf2ce36bdd85a24e2163 (patch)
tree935866b3ec0337d459cc701cb375d563a5d03d3f /Dockerfile
parent19f8fdcd8b2351daf220e3a3a456db84dd661280 (diff)
insert shim to generate report via ruby API
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 900019b..447c3a4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,6 +22,9 @@ RUN apt-get update && \
libpq-dev libmysqlclient-dev realpath python3-dev python3-pip && \
rm -rf /var/lib/apt/lists/*
+COPY . /opt/license-management/
+RUN bash -lc "cd /opt/license-management && gem build *.gemspec && gem install *.gem"
+
# Don't load RVM automatically, it doesn't work with GitLab-CI
RUN mv /etc/profile.d/rvm.sh /rvm.sh
@@ -43,6 +46,7 @@ RUN pip3 install --disable-pip-version-check setuptools==$SETUPTOOLS_VERSION &&
# Version of Python, defaults to Python 2.7
ARG LM_PYTHON_VERSION
ENV LM_PYTHON_VERSION ${LM_PYTHON_VERSION:-2.7}
+ENV LM_REPORT_VERSION ${LM_REPORT_VERSION:-1}
COPY test /test
COPY run.sh html2json.js /