Skip to content

Commit

Permalink
Merge pull request #8492 from liranmauda/liran-update-dockerfiles
Browse files Browse the repository at this point in the history
Update the Dockerfiles
  • Loading branch information
liranmauda authored Nov 4, 2024
2 parents 64336ec + 6ece4f9 commit 07f1582
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/deploy/NVA_build/Base.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM noobaa-builder
FROM noobaa-builder AS noobaa-base

######################################################################
# Layers:
Expand Down
24 changes: 12 additions & 12 deletions src/deploy/NVA_build/NooBaa.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG CENTOS_VER=9
FROM noobaa-base as server_builder
FROM noobaa-base AS server_builder

RUN mkdir -p /noobaa_init_files && \
cp -p ./build/Release/kube_pv_chown /noobaa_init_files
Expand Down Expand Up @@ -39,18 +39,18 @@ RUN tar \
# Cache: Rebuild when any layer is changing
##############################################################

FROM quay.io/centos/centos:stream${CENTOS_VER}
FROM quay.io/centos/centos:stream${CENTOS_VER} AS noobaa

# The ports are overridden for Ceph Test later
ENV container docker
ENV PORT 8080
ENV SSL_PORT 8443
ENV ENDPOINT_PORT 6001
ENV ENDPOINT_SSL_PORT 6443
ENV WEB_NODE_OPTIONS ''
ENV BG_NODE_OPTIONS ''
ENV HOSTED_AGENTS_NODE_OPTIONS ''
ENV ENDPOINT_NODE_OPTIONS ''
ENV container=docker
ENV PORT=8080
ENV SSL_PORT=8443
ENV ENDPOINT_PORT=6001
ENV ENDPOINT_SSL_PORT=6443
ENV WEB_NODE_OPTIONS=''
ENV BG_NODE_OPTIONS=''
ENV HOSTED_AGENTS_NODE_OPTIONS=''
ENV ENDPOINT_NODE_OPTIONS=''

##############################################################
# Layers:
Expand Down Expand Up @@ -153,7 +153,7 @@ EXPOSE 27000
EXPOSE 26050

# Needs to be added only after installing jemalloc in dependencies section (our env section is before) - otherwise it will fail
ENV LD_PRELOAD /usr/lib64/libjemalloc.so.2
ENV LD_PRELOAD=/usr/lib64/libjemalloc.so.2

#RUN mkdir -p /nsfs/fs1/amitpb && chmod -R 777 /nsfs/
#RUN mkdir -p /nsfsAA/fs1/amitpb && chmod -R 777 /nsfsAA/
Expand Down
9 changes: 5 additions & 4 deletions src/deploy/NVA_build/Tests.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM noobaa
FROM noobaa AS noobaa-tester

USER 0:0

ENV container docker
ENV TEST_CONTAINER true
ENV container=docker
ENV TEST_CONTAINER=true

##############################################################
# Layers:
Expand All @@ -13,6 +13,7 @@ ENV TEST_CONTAINER true
##############################################################

RUN dnf config-manager --enable crb || true
RUN dnf clean all

RUN dnf group install -y -q "Development Tools" && \
dnf install -y -q --nogpgcheck vim \
Expand Down Expand Up @@ -62,7 +63,7 @@ COPY .eslintignore /root/node_modules/noobaa-core
# Making mocha accessible
RUN ln -s /root/node_modules/noobaa-core/node_modules/mocha/bin/mocha.js /usr/local/bin

ENV SPAWN_WRAP_SHIM_ROOT /data
ENV SPAWN_WRAP_SHIM_ROOT=/data
RUN mkdir -p /data && \
chgrp -R 0 /data && \
chmod -R g=u /data
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/NVA_build/builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG CENTOS_VER=9
FROM quay.io/centos/centos:stream${CENTOS_VER}
FROM quay.io/centos/centos:stream${CENTOS_VER} AS noobaa-builder
#Needs to reapply ARG, it was cleaned by FROM command.
ARG CENTOS_VER
LABEL maintainer="Liran Mauda (lmauda@redhat.com)"
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/NVA_build/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ARG CENTOS_VER=9
FROM quay.io/centos/centos:stream${CENTOS_VER}

ENV container docker
ENV container=docker

RUN dnf update -y -q && \
dnf install -y -q \
Expand Down

0 comments on commit 07f1582

Please sign in to comment.