forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jenkins-cache
124 lines (120 loc) · 3.28 KB
/
Dockerfile.jenkins-cache
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# syntax = starlord.inscloudgate.net/jenkins/dockerfile:1.0-experimental
FROM starlord.inscloudgate.net/jenkins/busybox AS cache-helper-collect-gems
WORKDIR /tmp/src
RUN --mount=target=/tmp/src \
mkdir -p /tmp/dst && \
cp --parents -rf \
config/canvas_rails_switcher.rb \
Gemfile \
Gemfile.d \
\
/tmp/dst && \
find gems \( \
-name "Gemfile" -o \
-name "*.gemspec" -o \
-name "gem_version.rb" -o \
-name "version.rb" \
\) -exec cp --parents -rf {} /tmp/dst \; && \
find gems/plugins \( \
-name "Gemfile.d" \
\) -exec cp --parents -rf {} /tmp/dst \; && \
find engines \( \
-name "Gemfile" -o \
-name "*.gemspec" -o \
-name "gem_version.rb" -o \
-name "version.rb" \
\) -exec cp --parents -rf {} /tmp/dst \; && \
find vendor -type d \( \
-not -name "qti_migration_tool" \
-maxdepth 1 \
-mindepth 1 \
\) -exec cp --parents -rf {} /tmp/dst \;
FROM starlord.inscloudgate.net/jenkins/busybox AS cache-helper-collect-yarn
WORKDIR /tmp/src
RUN --mount=target=/tmp/src \
mkdir -p /tmp/dst && \
cp --parents -rf \
script/fix_inst_esm.js \
package.json \
yarn.lock \
\
/tmp/dst && \
find \
gems/canvas_i18nliner \
gems/plugins/* \
ui/shared/* \
packages/* \
\
-name 'package.json' \
-exec cp --parents {} /tmp/dst \;
FROM starlord.inscloudgate.net/jenkins/busybox AS cache-helper-collect-packages
WORKDIR /tmp/src
RUN --mount=target=/tmp/src \
mkdir -p /tmp/dst && \
cp --parents -rf \
packages \
\
/tmp/dst
FROM starlord.inscloudgate.net/jenkins/busybox AS cache-helper-collect-webpack
WORKDIR /tmp/src
RUN --mount=target=/tmp/src \
mkdir -p /tmp/dst && \
find gems -type d \
-not -path "gems" \
-not -path "gems/plugins" \
-maxdepth 2 \
-path "gems/*/lib" \
-exec cp -rf --parents {} /tmp/dst \; && \
find gems/canvas_i18nliner \
-not -path "gems/canvas_i18nliner" \
-not -path "gems/canvas_i18nliner/spec" \
-not -path "gems/canvas_i18nliner/spec/*" \
-exec cp -rf --parents {} /tmp/dst \; && \
find gems/plugins \( \
-path "*/app/coffeescripts" -o \
-path "*/app/jsx" -o \
-path "*/app/stylesheets" -o \
-path "*/app/views/jst" -o \
-path "*/public" -o \
\) -exec cp -rf --parents {} /tmp/dst \; && \
find gems/config_file \
-not -path "gems/config_file" \
-not -path "gems/config_file/spec" \
-not -path "gems/config_file/spec/*" \
-exec cp -rf --parents {} /tmp/dst \; && \
cp --parents -rf \
app/stylesheets \
bin \
config/environments \
config/locales \
lib/canvas/cdn \
lib/rake \
lib/tasks \
public \
ui \
ui-build \
\
config/application.rb \
config/boot.rb \
config/brandable_css.yml \
config/browsers.yml \
config/canvas_rails_switcher.rb \
config/environment.rb \
config/initializers/json.rb \
config/initializers/revved_asset_urls.rb \
db/migrate/*_regenerate_brand_files_based_on_new_defaults_*.rb \
gems/plugins/.i18n* \
lib/brandable_css.rb \
lib/canvas_logger.rb \
lib/logging_filter.rb \
lib/request_cache.rb \
lib/temp_cache.rb \
lib/canvas/cdn.rb \
lib/base/canvas/reloader.rb \
.i18nignore \
.i18nrc \
Rakefile \
gulpfile.js \
webpack.config.js \
\
/tmp/dst