@@ -33,6 +33,23 @@ RUN tar \
33
33
34
34
# ####################################################################################################################################
35
35
36
+ FROM quay.io/centos/centos:stream${CENTOS_VER} AS noobaa-base
37
+
38
+ # #############################################################
39
+ # Layers:
40
+ # Title: Copying the tar file from the server_builder
41
+ # Size: ~ 230 MB
42
+ # Cache: Rebuild when there is a new tar file.
43
+ # #############################################################
44
+ COPY --from=server_builder /noobaa/noobaa-NVA.tar.gz /tmp/
45
+ RUN mkdir -m 777 /root/node_modules && \
46
+ cd /root/node_modules && \
47
+ tar -xzf /tmp/noobaa-NVA.tar.gz && \
48
+ chgrp -R 0 /root/node_modules && \
49
+ chmod -R 775 /root/node_modules
50
+
51
+ # ####################################################################################################################################
52
+
36
53
# #############################################################
37
54
# Title: Start of the Server Image
38
55
# Size: ~ 841 MB
@@ -41,6 +58,8 @@ RUN tar \
41
58
42
59
FROM quay.io/centos/centos:stream${CENTOS_VER} AS noobaa
43
60
61
+ # an arg to control if we install parquet-libs or not
62
+ ARG BUILD_S3SELECT_PARQUET=0
44
63
# The ports are overridden for Ceph Test later
45
64
ENV container=docker
46
65
ENV PORT=8080
@@ -56,11 +75,11 @@ ENV ENDPOINT_NODE_OPTIONS=''
56
75
# Layers:
57
76
# Title: Installing dependencies
58
77
# Size: ~ 272 MB
59
- # Cache: Rebuild when we adding/removing requirments
78
+ # Cache: Rebuild when we adding/removing requirements
60
79
# #############################################################
61
80
62
- RUN dnf install -y epel-release
63
- RUN dnf install -y -q bash \
81
+ RUN dnf install -y epel-release && \
82
+ dnf install -y -q bash \
64
83
boost \
65
84
lsof \
66
85
procps \
@@ -79,7 +98,6 @@ RUN dnf install -y -q bash \
79
98
dnf clean all
80
99
81
100
COPY ./src/deploy/NVA_build/install_arrow_run.sh ./src/deploy/NVA_build/install_arrow_run.sh
82
- ARG BUILD_S3SELECT_PARQUET=0
83
101
RUN ./src/deploy/NVA_build/install_arrow_run.sh $BUILD_S3SELECT_PARQUET
84
102
85
103
# #############################################################
@@ -95,7 +113,7 @@ RUN chmod +x ./install_nodejs.sh && \
95
113
96
114
# #############################################################
97
115
# Layers:
98
- # Title: Copying and giving premissions
116
+ # Title: Copying and giving permissions
99
117
# Size: ~ 1 MB
100
118
# Cache: Rebuild when we need to add another copy
101
119
#
@@ -120,25 +138,14 @@ RUN chmod 775 /noobaa_init_files && \
120
138
chgrp -R 0 /noobaa_init_files/ && \
121
139
chmod -R g=u /noobaa_init_files/
122
140
123
-
124
141
COPY --from=server_builder /kubectl /usr/local/bin/kubectl
125
142
COPY --from=server_builder ./noobaa_init_files/kube_pv_chown /noobaa_init_files
126
143
RUN mkdir -m 777 /root/node_modules && \
127
144
chown root:root /noobaa_init_files/kube_pv_chown && \
128
145
chmod 750 /noobaa_init_files/kube_pv_chown && \
129
146
chmod u+s /noobaa_init_files/kube_pv_chown
130
147
131
- # #############################################################
132
- # Layers:
133
- # Title: Copying the tar file from the server_builder
134
- # Size: ~ 153 MB
135
- # Cache: Rebuild when there is a new tar file.
136
- # #############################################################
137
- COPY --from=server_builder /noobaa/noobaa-NVA.tar.gz /tmp/
138
- RUN cd /root/node_modules && \
139
- tar -xzf /tmp/noobaa-NVA.tar.gz && \
140
- chgrp -R 0 /root/node_modules && \
141
- chmod -R 775 /root/node_modules
148
+ COPY --from=noobaa-base /root/node_modules /root/node_modules
142
149
143
150
# ##############
144
151
# PORTS SETUP #
@@ -155,9 +162,6 @@ EXPOSE 26050
155
162
# Needs to be added only after installing jemalloc in dependencies section (our env section is before) - otherwise it will fail
156
163
ENV LD_PRELOAD=/usr/lib64/libjemalloc.so.2
157
164
158
- # RUN mkdir -p /nsfs/fs1/amitpb && chmod -R 777 /nsfs/
159
- # RUN mkdir -p /nsfsAA/fs1/amitpb && chmod -R 777 /nsfsAA/
160
-
161
165
# ##############
162
166
# EXEC SETUP #
163
167
# ##############
0 commit comments