-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
78 lines (61 loc) · 1.83 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM ubuntu:18.04
### SYSTEM DEPENDENCIES
ENV DEBIAN_FRONTEND="noninteractive" \
LC_ALL="en_US.UTF-8" \
LANG="en_US.UTF-8"
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
build-essential \
dirmngr \
git \
bzr \
mercurial \
gnupg2 \
curl \
wget \
file \
zlib1g-dev \
liblzma-dev \
tzdata \
zip \
unzip \
locales \
openssh-client \
&& locale-gen en_US.UTF-8
### RUBY
# Install Ruby 2.6.6, update RubyGems, and install Bundler
ENV BUNDLE_SILENCE_ROOT_WARNING=1
RUN apt-get install -y software-properties-common \
&& apt-add-repository ppa:brightbox/ruby-ng \
&& apt-get update \
&& apt-get install -y ruby2.6 ruby2.6-dev \
&& gem update --system 3.0.3 \
&& gem install bundler -v 1.17.3 --no-document
### CLOJURE
# Install leiningen
RUN apt-get update \
&& apt-get install -y openjdk-8-jre-headless \
&& java -version \
&& wget "https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein" \
&& mkdir -p /usr/local/lein/bin \
&& mv lein /usr/local/lein/bin \
&& chmod +x /usr/local/lein/bin/lein \
&& /usr/local/lein/bin/lein version
ENV PATH="$PATH:/usr/local/lein/bin" \
LEIN_SNAPSHOTS_IN_RELEASE="yes"
# Get dependabot source
RUN git clone --branch leiningen https://github.com/CGA1123/dependabot-core /home/app/dependabot-core # :buildcache:
WORKDIR /home/app/dependabot-core
RUN echo $(git rev-parse --short HEAD)
# Install native clojure helper
RUN mkdir -p /opt/lein/helpers
RUN cp -R ./lein/helpers /opt/lein/
ENV DEPENDABOT_NATIVE_HELPERS_PATH="/opt"
RUN bash /opt/lein/helpers/build /opt/lein
# Setup update script
COPY . /home/app/dependabot-lein-runner
WORKDIR /home/app/dependabot-lein-runner
RUN bundle install --path vendor
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]