forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.development
88 lines (66 loc) · 3.74 KB
/
Dockerfile.development
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
79
80
81
82
83
84
85
86
87
88
FROM dependabot/dependabot-core
RUN apt-get update && apt-get install -y vim strace ltrace gdb
RUN useradd -m dependabot
RUN chown -R dependabot:dependabot \
/usr/local/.pyenv \
/opt/go/gopath \
/opt/rust/
USER dependabot
RUN curl -L -o ~/.vimrc https://github.com/hmarr/dotfiles/raw/master/vimrc-vanilla.vim && \
echo 'export PS1="[dependabot-core-dev] \w \[$(tput setaf 4)\]$ \[$(tput sgr 0)\]"' >> ~/.bashrc
RUN mkdir -p /home/dependabot/dependabot-core/common/lib/dependabot
WORKDIR /home/dependabot/dependabot-core
ENV BUNDLE_PATH="/home/dependabot/.bundle" \
BUNDLE_BIN=".bundle/binstubs" \
PATH=".bundle/binstubs:$PATH"
COPY common/Gemfile common/dependabot-common.gemspec /home/dependabot/dependabot-core/common/
COPY common/lib/dependabot/version.rb /home/dependabot/dependabot-core/common/lib/dependabot/
RUN cd common && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/terraform
COPY terraform/Gemfile terraform/dependabot-terraform.gemspec /home/dependabot/dependabot-core/terraform/
RUN cd terraform && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/elm
COPY elm/Gemfile elm/dependabot-elm.gemspec /home/dependabot/dependabot-core/elm/
RUN cd elm && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/docker
COPY docker/Gemfile docker/dependabot-docker.gemspec /home/dependabot/dependabot-core/docker/
RUN cd docker && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/git_submodules
COPY git_submodules/Gemfile git_submodules/dependabot-git_submodules.gemspec /home/dependabot/dependabot-core/git_submodules/
RUN cd git_submodules && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/python
COPY python/Gemfile python/dependabot-python.gemspec /home/dependabot/dependabot-core/python/
RUN cd python && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/nuget
COPY nuget/Gemfile nuget/dependabot-nuget.gemspec /home/dependabot/dependabot-core/nuget/
RUN cd nuget && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/maven
COPY maven/Gemfile maven/dependabot-maven.gemspec /home/dependabot/dependabot-core/maven/
RUN cd maven && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/gradle
COPY gradle/Gemfile gradle/dependabot-gradle.gemspec /home/dependabot/dependabot-core/gradle/
RUN cd gradle && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/hex
COPY hex/Gemfile hex/dependabot-hex.gemspec /home/dependabot/dependabot-core/hex/
RUN cd hex && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/cargo
COPY cargo/Gemfile cargo/dependabot-cargo.gemspec /home/dependabot/dependabot-core/cargo/
RUN cd cargo && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/dep
COPY dep/Gemfile dep/dependabot-dep.gemspec /home/dependabot/dependabot-core/dep/
RUN cd dep && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/go_modules
COPY go_modules/Gemfile go_modules/dependabot-go_modules.gemspec /home/dependabot/dependabot-core/go_modules/
RUN cd go_modules && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/npm_and_yarn
COPY npm_and_yarn/Gemfile npm_and_yarn/dependabot-npm_and_yarn.gemspec /home/dependabot/dependabot-core/npm_and_yarn/
RUN cd npm_and_yarn && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/composer
COPY composer/Gemfile composer/dependabot-composer.gemspec /home/dependabot/dependabot-core/composer/
RUN cd composer && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/bundler
COPY bundler/Gemfile bundler/dependabot-bundler.gemspec /home/dependabot/dependabot-core/bundler/
RUN cd bundler && bundle install
RUN mkdir -p /home/dependabot/dependabot-core/omnibus
COPY omnibus/Gemfile omnibus/dependabot-omnibus.gemspec /home/dependabot/dependabot-core/omnibus/
RUN cd omnibus && bundle install