Created
September 12, 2018 14:11
-
-
Save klyr/bc8a01087fb86a8a648696ef24a5a403 to your computer and use it in GitHub Desktop.
Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============LICENSE_START======================================================= | |
# org.onap.dcae | |
# ================================================================================ | |
# Copyright (c) 2018 Cisco Systems. All rights reserved. | |
# ================================================================================ | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# ============LICENSE_END========================================================= | |
FROM centos:7.5.1804 as build | |
ARG PNDARELEASE=develop | |
ENV YUMROOT=/tmp/clean-root | |
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 | |
RUN git clone -b chroot-mirror-gobblin https://github.com/klyr/pnda.git | |
RUN mkdir -p $YUMROOT | |
RUN rpm --root $YUMROOT --initdb | |
RUN mkdir -p $YUMROOT/etc/yum/vars | |
RUN echo 7 > $YUMROOT/etc/yum/vars/releasever | |
RUN echo x86_64 > $YUMROOT/etc/yum/vars/arch | |
RUN yum install --installroot=$YUMROOT centos-release -y | |
WORKDIR /pnda/mirror | |
RUN ./create_mirror.sh HDP | |
WORKDIR /pnda/build | |
RUN ./install-build-tools.sh | |
RUN yum install bzip2 make which -y | |
RUN source ./set-pnda-env.sh \ | |
&& ./build-pnda.sh BRANCH $PNDARELEASE HDP | |
FROM nginx:alpine | |
COPY --from=build /pnda/mirror/mirror-dist /usr/share/nginx/html/ | |
COPY --from=build /pnda/build/pnda-dist /usr/share/nginx/html/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment