You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:08:42 UTC

[GitHub] [pulsar] hangc0276 opened a new pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

hangc0276 opened a new pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862


   ### Motivation
   When build the pulsar-standalone docker image, it throw the following exception
   ```
   [INFO] + sudo -u postgres /usr/lib/postgresql/11/bin/initdb /data/
   [INFO]
   [INFO] sudo: /usr/lib/postgresql/11/bin/initdb: command not found
   [INFO]
   [ERROR] The command '/bin/sh -c /pulsar/django/init-postgres.sh' returned a non-zero code: 1
   [WARNING] An attempt failed, will retry 1 more times
   org.apache.maven.plugin.MojoExecutionException: Could not build image
       at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:247)
       at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:135)
       at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
       at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
       at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
       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)
   ```
   
   The root cause is when we use ubuntu 20.04 use base docker image instead of openjdk:11-jdk image introduce by #11026 , the ubuntu 20.04 will install `postgresql 12` instead of `postgresql 11` by default. However, the init and start script has been hard code with postgresql 11 install path, which will lead to `command not found` exception.
   
   ### Modification
   1. add `postgresql 11` resource address for ubuntu 20.04 and install `postgresql 11`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 commented on pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862#issuecomment-909086192


   > LGTM
   > in 2.9.0 we dropped Standalone.
   > it is fine to keep it in 2.8.0 at the moment
   > thanks
   
   @eolivelli Yes, it just tag it into 2.8.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 merged pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 merged pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 commented on pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862#issuecomment-909086192


   > LGTM
   > in 2.9.0 we dropped Standalone.
   > it is fine to keep it in 2.8.0 at the moment
   > thanks
   
   @eolivelli Yes, it just tag it into 2.8.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 commented on pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862#issuecomment-909086192


   > LGTM
   > in 2.9.0 we dropped Standalone.
   > it is fine to keep it in 2.8.0 at the moment
   > thanks
   
   @eolivelli Yes, it just tag it into 2.8.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 merged pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 merged pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] hangc0276 merged pull request #11862: [Branch-2.8]Fix pulsar_standalone docker image build failed

Posted by GitBox <gi...@apache.org>.
hangc0276 merged pull request #11862:
URL: https://github.com/apache/pulsar/pull/11862


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org