[ 
https://issues.apache.org/jira/browse/AMBARI-25938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944527#comment-17944527
 ] 

Wei-Chiu Chuang commented on AMBARI-25938:
------------------------------------------

We should update the user doc 
[https://ambari.apache.org/docs/3.0.0/ambari-dev/development-in-docker] too.

 

> dev-support/docker/docker/Dockerfile failed
> -------------------------------------------
>
>                 Key: AMBARI-25938
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25938
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-trunk, build
>            Reporter: Ted Lin
>            Priority: Major
>              Labels: newbie
>
> According to README.md:
> {code:java}
> docker build -t ambari/build ./dev-support/docker/docker{code}
> 1.
> {code:java}
> FROM centos:centos6 {code}
> will error:
> {code:java}
> Step 1/39 : FROM centos:centos6
> centos6: Pulling from library/centos
> ff50d722b382: Pull complete 
> Digest: 
> sha256:a93df2e96e07f56ea48f215425c6f1673ab922927894595bb5c0ee4c5a955133
> Status: Downloaded newer image for centos:centos6
>  ---> 5bf9684f4720
> Step 2/39 : RUN echo root:changeme | chpasswd
>  ---> Running in 54aaee7f235c
> Removing intermediate container 54aaee7f235c
>  ---> 54cc72d01d59
> Step 3/39 : RUN yum clean all -y && yum update -y
>  ---> Running in 785a7fc318b5
> Loaded plugins: fastestmirror, ovl
> Cleaning repos: base extras updates
> Cleaning up Everything
> Loaded plugins: fastestmirror, ovl
> Setting up Update Process
> Determining fastest mirrors
> Error: Cannot find a valid baseurl for repo: base
> YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
>  Eg. Invalid release/repo/arch combination/
> removing mirrorlist with no valid mirrors: 
> /var/cache/yum/x86_64/6/base/mirrorlist.txt
> The command '/bin/sh -c yum clean all -y && yum update -y' returned a 
> non-zero code: 1{code}
> 2.
> change to centos:centos7 and install java error:
> {code:java}
> Sending build context to Docker daemon  24.06kB
> Step 1/39 : FROM centos:centos7
>  ---> eeb6ee3f44bd
> Step 2/39 : RUN echo root:changeme | chpasswd
>  ---> Using cache
>  ---> 8f944f131f19
> Step 3/39 : RUN yum clean all -y && yum update -y
>  ---> Using cache
>  ---> 40b142a39186
> Step 4/39 : RUN yum -y install vim wget rpm-build sudo which telnet tar 
> openssh-server openssh-clients ntp git python-setuptools python-devel httpd
>  ---> Using cache
>  ---> 48d721b3c540
> Step 5/39 : RUN yum -y install fontconfig freetype libfreetype.so.6 
> libfontconfig.so.1 libstdc++.so.6
>  ---> Using cache
>  ---> 8812a726d248
> Step 6/39 : RUN rpm -e --nodeps --justdb glibc-common
>  ---> Using cache
>  ---> abc177358f82
> Step 7/39 : RUN yum -y install glibc-common
>  ---> Using cache
>  ---> cb4acf9c1c22
> Step 8/39 : ENV HOME /root
>  ---> Using cache
>  ---> 6a52499d1204
> Step 9/39 : RUN wget --no-check-certificate --no-cookies --header 
> "Cookie:oraclelicense=accept-securebackup-cookie" 
> http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm 
> -O jdk-8u60-linux-x64.rpm
>  ---> Running in 243814cca96a
> --2023-05-15 10:00:09--  
> http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm
> Resolving download.oracle.com (download.oracle.com)... failed: Name or 
> service not known.
> wget: unable to resolve host address 'download.oracle.com'
> The command '/bin/sh -c wget --no-check-certificate --no-cookies --header 
> "Cookie:oraclelicense=accept-securebackup-cookie" 
> http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.rpm 
> -O jdk-8u60-linux-x64.rpm' returned a non-zero code: 4{code}
> 3.
> change to java-1.8.0-openjdk-devel and install maven error:
> {code:java}
> Sending build context to Docker daemon  24.06kB
> Step 1/38 : FROM centos:centos7
>  ---> eeb6ee3f44bd
> Step 2/38 : RUN echo root:changeme | chpasswd
>  ---> Using cache
>  ---> 8f944f131f19
> Step 3/38 : RUN yum clean all -y && yum update -y
>  ---> Using cache
>  ---> 40b142a39186
> Step 4/38 : RUN yum -y install vim wget rpm-build sudo which telnet tar 
> openssh-server openssh-clients ntp git python-setuptools python-devel httpd
>  ---> Using cache
>  ---> 48d721b3c540
> Step 5/38 : RUN yum -y install fontconfig freetype libfreetype.so.6 
> libfontconfig.so.1 libstdc++.so.6
>  ---> Using cache
>  ---> 8812a726d248
> Step 6/38 : RUN rpm -e --nodeps --justdb glibc-common
>  ---> Using cache
>  ---> abc177358f82
> Step 7/38 : RUN yum -y install glibc-common
>  ---> Using cache
>  ---> cb4acf9c1c22
> Step 8/38 : ENV HOME /root
>  ---> Using cache
>  ---> 6a52499d1204
> Step 9/38 : RUN yum -y install java-1.8.0-openjdk-devel
>  ---> Using cache
>  ---> 041184a22521
> Step 10/38 : ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk
>  ---> Using cache
>  ---> 675085919ef5
> Step 11/38 : RUN mkdir -p /opt/maven
>  ---> Using cache
>  ---> cd4e1cb6b96a
> Step 12/38 : WORKDIR /opt/maven
>  ---> Using cache
>  ---> cc83d898b8d5
> Step 13/38 : RUN wget 
> http://apache.cs.utah.edu/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
>  ---> Running in f85fb23bd293
> --2023-05-15 10:02:06--  
> http://apache.cs.utah.edu/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz
> Resolving apache.cs.utah.edu (apache.cs.utah.edu)... failed: Name or service 
> not known.
> wget: unable to resolve host address 'apache.cs.utah.edu'
> The command '/bin/sh -c wget 
> http://apache.cs.utah.edu/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz'
>  returned a non-zero code: 4{code}
> 4.
> change to MAVEN_VERSION 3.9.1 and install epel error:
> {code:java}
> Sending build context to Docker daemon  24.06kB
> Step 1/39 : FROM centos:centos7
>  ---> eeb6ee3f44bd
> Step 2/39 : RUN echo root:changeme | chpasswd
>  ---> Using cache
>  ---> 8f944f131f19
> Step 3/39 : RUN yum clean all -y && yum update -y
>  ---> Using cache
>  ---> 40b142a39186
> Step 4/39 : RUN yum -y install vim wget rpm-build sudo which telnet tar 
> openssh-server openssh-clients ntp git python-setuptools python-devel httpd
>  ---> Using cache
>  ---> 48d721b3c540
> Step 5/39 : RUN yum -y install fontconfig freetype libfreetype.so.6 
> libfontconfig.so.1 libstdc++.so.6
>  ---> Using cache
>  ---> 8812a726d248
> Step 6/39 : RUN rpm -e --nodeps --justdb glibc-common
>  ---> Using cache
>  ---> abc177358f82
> Step 7/39 : RUN yum -y install glibc-common
>  ---> Using cache
>  ---> cb4acf9c1c22
> Step 8/39 : ENV HOME /root
>  ---> Using cache
>  ---> 6a52499d1204
> Step 9/39 : RUN yum -y install java-1.8.0-openjdk-devel
>  ---> Using cache
>  ---> 041184a22521
> Step 10/39 : ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk
>  ---> Using cache
>  ---> 675085919ef5
> Step 11/39 : RUN mkdir -p /opt/maven
>  ---> Using cache
>  ---> cd4e1cb6b96a
> Step 12/39 : WORKDIR /opt/maven
>  ---> Using cache
>  ---> cc83d898b8d5
> Step 13/39 : ENV MAVEN_VERSION 3.9.1
>  ---> Using cache
>  ---> d1efe046d472
> Step 14/39 : RUN wget 
> http://apache.cs.utah.edu/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
>  ---> Using cache
>  ---> a49039416a4f
> Step 15/39 : RUN tar -xvzf /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz
>  ---> Using cache
>  ---> c9121a70549b
> Step 16/39 : RUN rm -rf /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz
>  ---> Using cache
>  ---> 15fb9f8806a8
> Step 17/39 : ENV M2_HOME /opt/maven/apache-maven-$MAVEN_VERSION
>  ---> Using cache
>  ---> 85ca832b6bb6
> Step 18/39 : ENV MAVEN_OPTS -Xmx2048m -XX:MaxPermSize=256m
>  ---> Using cache
>  ---> 2f6ad0fa80a4
> Step 19/39 : ENV PATH $PATH:$JAVA_HOME/bin:$M2_HOME/bin
>  ---> Using cache
>  ---> b2f01e0b8bfd
> Step 20/39 : RUN ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
>  ---> Using cache
>  ---> 9eb3212115f1
> Step 21/39 : RUN cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys
>  ---> Using cache
>  ---> 6dbc322e1e71
> Step 22/39 : RUN chmod 600 /root/.ssh/authorized_keys
>  ---> Using cache
>  ---> 3f11b1cc0373
> Step 23/39 : RUN sed -ri 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config
>  ---> Using cache
>  ---> c25ea9e49e8d
> Step 24/39 : RUN git config --global url."https://".insteadOf git://
>  ---> Using cache
>  ---> 9acdfee39add
> Step 25/39 : RUN yum -y install 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
>  ---> Running in a6438095f2cb
> Loaded plugins: fastestmirror, ovl
> Cannot open: 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm. 
> Skipping.
> Error: Nothing to do
> The command '/bin/sh -c yum -y install 
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm' 
> returned a non-zero code: 1{code}
> 5.
> change to 
> {code:java}
> yum install -y -q epel-release{code}
> and install  [email protected]
>  error:
> {code:java}
> un `npm audit` for details.
> Removing intermediate container 85a88135eb50
>  ---> bda34e69d544
> Step 28/39 : RUN npm install -g [email protected]
>  ---> Running in e2b981b50a0c
> /usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:49
>   return os.tmpDir()
>             ^
> TypeError: os.tmpDir is not a function
>     at /usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:49:13
>     at Object.exports.<computed> [as tmpdir] 
> (/usr/local/lib/node_modules/npm/node_modules/osenv/osenv.js:14:15)
>     at Object.<anonymous> 
> (/usr/local/lib/node_modules/npm/lib/config/defaults.js:97:18)
>     at Module._compile (node:internal/modules/cjs/loader:1155:14)
>     at Object.Module._extensions..js 
> (node:internal/modules/cjs/loader:1209:10)
>     at Module.load (node:internal/modules/cjs/loader:1033:32)
>     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
>     at Module.require (node:internal/modules/cjs/loader:1057:19)
>     at require (node:internal/modules/cjs/helpers:103:18)
>     at Object.<anonymous> 
> (/usr/local/lib/node_modules/npm/lib/config/core.js:4:18)
> {code}
> 6.
> change to 
> {code:java}
> RUN npm install -g [email protected]{code}
> and Ambari build error:
> {code:java}
> [DEBUG] Executing command line: 
> /tmp/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node 
> /tmp/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/bin/bower
>  install --allow-root
> bower angular#*       CERT_HAS_EXPIRED Request to 
> https://registry.bower.io/packages/angular failed: certificate has expired
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Ambari Main 3.0.0.0-SNAPSHOT:
> [INFO] 
> [INFO] Ambari Main ........................................ SUCCESS [27:01 
> min]
> [INFO] Apache Ambari Project POM .......................... SUCCESS [  0.214 
> s]
> [INFO] Ambari Web ......................................... SUCCESS [05:29 
> min]
> [INFO] Ambari Views ....................................... SUCCESS [03:38 
> min]
> [INFO] Ambari Admin View .................................. FAILURE [01:03 
> min]
> [INFO] ambari-utility ..................................... SKIPPED
> [INFO] Ambari Server SPI .................................. SKIPPED
> [INFO] Ambari Service Advisor ............................. SKIPPED
> [INFO] Ambari Server ...................................... SKIPPED
> [INFO] Ambari Functional Tests ............................ SKIPPED
> [INFO] Ambari Agent ....................................... SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  39:03 min
> [INFO] Finished at: 2023-05-15T13:33:07Z
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 
> (Bower install) on project ambari-admin: Command execution failed. Process 
> exited with an error: 1 (Exit value: 1) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on 
> project ambari-admin: Command execution failed.
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:347)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution 
> failed.
>     at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:362)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.commons.exec.ExecuteException: Process exited with an 
> error: 1 (Exit value: 1)
>     at org.apache.commons.exec.DefaultExecutor.executeInternal 
> (DefaultExecutor.java:377)
>     at org.apache.commons.exec.DefaultExecutor.execute 
> (DefaultExecutor.java:160)
>     at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:610)
>     at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:352)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:126)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
> (MojoExecutor.java:342)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
> (MojoExecutor.java:330)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:213)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:175)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
> (MojoExecutor.java:76)
>     at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
> (MojoExecutor.java:163)
>     at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
> (DefaultMojosExecutionStrategy.java:39)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:160)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:105)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:73)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:53)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:118)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:498)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> [ERROR] 
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <args> -rf :ambari-admin
> [DEBUG] Shutting down adapter factory; available factories [file-lock, 
> rwlock-local, semaphore-local, noop]; available name mappers [discriminating, 
> file-gav, file-hgav, file-static, gav, static]
> [DEBUG] Shutting down 'file-lock' factory
> [DEBUG] Shutting down 'rwlock-local' factory
> [DEBUG] Shutting down 'semaphore-local' factory
> [DEBUG] Shutting down 'noop' factory
> The command '/bin/sh -c mvn -B -X clean install package rpm:rpm -DskipTests 
> -Dpython.ver="python >= 2.6" -Preplaceurl' returned a non-zero code: 1{code}
> summary:
> change:
>  
> {code:java}
> FROM centos:centos7  
> #Install JAVA 
> RUN yum -y install java-1.8.0-openjdk-devel 
> ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk  
> #Install Maven 
> RUN mkdir -p /opt/maven WORKDIR /opt/maven 
> ENV MAVEN_VERSION 3.9.1 
> RUN wget 
> http://apache.cs.utah.edu/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
> RUN tar -xvzf /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz 
> RUN rm -rf /opt/maven/apache-maven-$MAVEN_VERSION-bin.tar.gz
> # Install python, nodejs and npm 
> RUN yum install -y -q epel-release 
> RUN yum -y install nodejs npm --enablerepo=epel 
> RUN npm install -g [email protected] 
> RUN npm install -g [email protected]{code}
> Ambari build error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to