Skip to content

Commit

Permalink
Merge develop into master 1.10.0 (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbel Nathan authored Jul 26, 2022
1 parent 6179f7e commit 2656501
Show file tree
Hide file tree
Showing 166 changed files with 5,956 additions and 2,437 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
/bin/
node/mocks
build/reports
/.run/
docs/.vscode/settings.json
17 changes: 10 additions & 7 deletions Dockerfile-csi-controller.test → Dockerfile-controllers.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,36 @@ FROM registry.access.redhat.com/ubi8/python-38:1-75.1638364053 as builder
USER root
RUN if [[ "$(uname -m)" != "x86"* ]]; then yum install -y rust-toolset; fi
USER default
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN pip3 install --ignore-installed --default-timeout=100 --upgrade pip==21.2.4
WORKDIR /tmp
COPY controller/requirements.txt .
COPY controllers/servers/csi/requirements.txt ./csi_requirements.txt
COPY controllers/servers/host_definer/requirements.txt ./host_definer_requirements.txt
# avoid default- boringssl lib, since it does not support z systems
ENV GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
RUN pip3 install -r ./requirements.txt
RUN pip3 install -r ./csi_requirements.txt -r ./host_definer_requirements.txt

USER root
COPY controller/scripts/csi_general .
COPY controllers/scripts/csi_general .
RUN ./csi_pb2.sh
RUN pip3 install .

# Requires to run local testing
COPY controller/requirements-tests.txt .
COPY controllers/tests/requirements.txt ./requirements-tests.txt
RUN pip3 install -r ./requirements-tests.txt


FROM registry.access.redhat.com/ubi8/python-38:1-80.1645821300
FROM registry.access.redhat.com/ubi8/python-38:1-100

COPY --from=builder /opt/app-root /opt/app-root
COPY ./common /driver/common
COPY ./controller /driver/controller
COPY ./controllers/ /driver/controllers/
USER root
RUN groupadd -g 9999 appuser && \
useradd -r -u 9999 -g appuser appuser
RUN chown -R appuser:appuser /driver /opt/app-root
USER appuser
WORKDIR /driver
ENV PYTHONPATH=/driver

ENTRYPOINT ["/driver/controller/scripts/entrypoint-test.sh"]
ENTRYPOINT ["/driver/controllers/scripts/entrypoint-test.sh"]
13 changes: 7 additions & 6 deletions Dockerfile-csi-controller
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,24 @@ FROM registry.access.redhat.com/ubi8/python-38:1-75.1638364053 as builder
USER root
RUN if [[ "$(uname -m)" != "x86"* ]]; then yum install -y rust-toolset; fi
USER default
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN pip3 install --ignore-installed --default-timeout=100 --upgrade pip==21.2.4
WORKDIR /tmp
COPY controller/requirements.txt .
COPY controllers/servers/csi/requirements.txt .
# avoid default boringssl lib, since it does not support z systems
ENV GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
RUN pip3 install -r ./requirements.txt

USER root
COPY controller/scripts/csi_general .
COPY controllers/scripts/csi_general .
RUN ./csi_pb2.sh
RUN pip3 install .


FROM registry.access.redhat.com/ubi8/python-38:1-80.1645821300
FROM registry.access.redhat.com/ubi8/python-38:1-100
MAINTAINER IBM Storage

ARG VERSION=1.9.0
ARG VERSION=1.10.0
ARG BUILD_NUMBER=0

###Required Labels
Expand All @@ -48,7 +49,7 @@ LABEL name="IBM block storage CSI driver controller" \

COPY --from=builder /opt/app-root /opt/app-root
COPY ./common /driver/common
COPY ./controller /driver/controller
COPY ./controllers/ /driver/controllers/
COPY ./LICENSE /licenses/
COPY ./NOTICES /licenses/

Expand All @@ -57,4 +58,4 @@ ENV PYTHONPATH=/driver

# Note: UBI runs with app-user by default.

ENTRYPOINT ["/driver/controller/scripts/entrypoint.sh"]
ENTRYPOINT ["/driver/controllers/scripts/entrypoint.sh"]
46 changes: 46 additions & 0 deletions Dockerfile-csi-host-definer
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM registry.access.redhat.com/ubi8/python-38:1-75.1638364053 as builder

USER root
RUN if [[ "$(uname -m)" != "x86"* ]]; then yum install -y rust-toolset; fi
USER default
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN pip3 install --ignore-installed --default-timeout=100 --upgrade pip==21.2.4
WORKDIR /tmp
COPY controllers/servers/csi/requirements.txt ./csi_requirements.txt
COPY controllers/servers/host_definer/requirements.txt ./host_definer_requirements.txt
# avoid default- boringssl lib, since it does not support z systems
ENV GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
RUN pip3 install -r ./csi_requirements.txt -r ./host_definer_requirements.txt

USER root
COPY controllers/scripts/csi_general .
RUN ./csi_pb2.sh
RUN pip3 install .

FROM registry.access.redhat.com/ubi8/python-38:1-100

ARG VERSION=1.10.0
ARG BUILD_NUMBER=0

###Required Labels
LABEL name="IBM block storage CSI driver host definer" \
vendor="IBM" \
maintainer="IBM Storage" \
version=$VERSION \
release=$BUILD_NUMBER \
summary="The host definer defines Kubernetes nodes on IBM block storage" \
description="The host definer defines container orchestrators, such as Kubernetes and OpenShift, nodes on IBM block storage." \
io.k8s.display-name="IBM block storage CSI driver host definer" \
io.k8s.description="The host definer defines container orchestrators, such as Kubernetes and OpenShift, nodes on IBM block storage." \
io.openshift.tags=ibm,csi,ibm-block-csi-driver,host-definer

COPY --from=builder /opt/app-root /opt/app-root
COPY ./common /driver/common
COPY ./controllers/ /driver/controllers/
COPY ./LICENSE /licenses/
COPY ./NOTICES /licenses/

WORKDIR /driver/controllers/servers/host_definer/
ENV PYTHONPATH=/driver

CMD ["python3", "/driver/controllers/servers/host_definer/main.py"]
4 changes: 2 additions & 2 deletions Dockerfile-csi-node
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ COPY . .
RUN make ibm-block-csi-driver

# Final stage
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5-230.1645809059
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6-854
MAINTAINER IBM Storage

ARG VERSION=1.9.0
ARG VERSION=1.10.0
ARG BUILD_NUMBER=0

LABEL name="IBM block storage CSI driver node" \
Expand Down
Loading

0 comments on commit 2656501

Please sign in to comment.