-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (47 loc) · 1.92 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
FROM ruby:2.6.3-buster AS development
WORKDIR /workspaces/icalia-sdk
ENV PATH=/workspaces/icalia-sdk/bin:$PATH
COPY Gemfile Gemfile.lock /workspaces/icalia-sdk/
RUN bundle install --jobs=4 --retry=3
# Copy all files required to run "bundle install":
# Copy the SDK core library dependency files:
COPY core/Gemfile \
core/Gemfile.lock \
core/icalia-sdk-core.gemspec \
/workspaces/icalia-sdk/core/
COPY core/lib/icalia-sdk-core/version.rb \
/workspaces/icalia-sdk/core/lib/icalia-sdk-core/
# Copy the Event Notification SDK library dependency files:
COPY event-notification/Gemfile \
event-notification/Gemfile.lock \
event-notification/icalia-sdk-event-notification.gemspec \
/workspaces/icalia-sdk/event-notification/
COPY event-notification/lib/icalia-sdk-event-notification/version.rb \
/workspaces/icalia-sdk/event-notification/lib/icalia-sdk-event-notification/
# Copy the Event Webhook SDK library dependency files:
COPY event-webhook/Gemfile \
event-webhook/Gemfile.lock \
event-webhook/icalia-sdk-event-webhook.gemspec \
/workspaces/icalia-sdk/event-webhook/
COPY event-webhook/lib/icalia-sdk-event-webhook/version.rb \
/workspaces/icalia-sdk/event-webhook/lib/icalia-sdk-event-webhook/
# Copy the Event SDK meta library dependency files:
COPY event/Gemfile \
event/Gemfile.lock \
event/icalia-sdk-event.gemspec \
/workspaces/icalia-sdk/event/
COPY event/lib/icalia-sdk-event/version.rb \
/workspaces/icalia-sdk/event/lib/icalia-sdk-event/
# Copy the SDK meta library dependency files:
COPY sdk/Gemfile \
sdk/Gemfile.lock \
sdk/icalia-sdk.gemspec \
/workspaces/icalia-sdk/sdk/
COPY sdk/lib/icalia-sdk/version.rb \
/workspaces/icalia-sdk/sdk/lib/icalia-sdk/
# Step X: Install all ruby library dependencies
RUN for dir in core event-notification event-webhook event sdk; do \
cd $dir ; \
bundle install --jobs=4 --retry=3 ; \
cd .. ; \
done