FROM python:2.7.15 as build
-ARG PNDACLITAG=2.0.0
-ARG PLATFORMSALTTAG=5.0.0
+ARG PNDACLITAG=release/5.0
+ARG PLATFORMSALTTAG=release/5.0
RUN git clone -b $PNDACLITAG https://github.com/pndaproject/pnda-cli.git
RUN git clone -b $PLATFORMSALTTAG https://github.com/pndaproject/platform-salt.git
FROM centos:7.5.1804 as build
-ARG PNDARELEASE=develop
+ARG PNDARELEASE=release/5.0
# Can be HDP or CDH
ARG HADOOPDIST=HDP
-
RUN yum clean all && rm -rf /var/cache/yum/* && yum install gettext git -y
RUN git clone -b $PNDARELEASE https://github.com/pndaproject/pnda.git
WORKDIR /pnda/mirror
-RUN ./create_mirror.sh HDP
+# Add the -r flag to mirror rpm packages
+RUN ./create_mirror.sh -d $HADOOPDIST -r
WORKDIR /pnda/build
RUN ./install-build-tools.sh
RUN yum install bzip2 make which -y
RUN source ./set-pnda-env.sh \
- && PARALLEL="--jobs 1" ./build-pnda.sh BRANCH $PNDARELEASE $HADOOPDIST
+ && PARALLEL="--jobs 1" ./build-pnda.sh RELEASE $PNDARELEASE $HADOOPDIST
FROM nginx:alpine