无法在Docker容器中启动AKKA应用程序

时间:2018-06-22 19:06:22

标签: scala docker akka akka-http akka-remote-actor

我正在尝试在docker容器中启动akka应用程序。

以下是application.conf中的摘录

    akka.persistence.journal.plugin = "akka.persistence.journal.leveldb"
    akka.persistence.snapshot-store.plugin = "akka.persistence.snapshot-store.local"
    akka.persistence.journal.leveldb.native = true
    akka.persistence.snapshot-store.local.dir = "data/snapshots"
    akka.persistence.journal.leveldb.dir = "data/journal"

logingestordev | java.lang.UnsatisfiedLinkError:无法加载库。原因:[java.library.path中没有leveldbjni64-1.8,java.library.path中没有leveldbjni-1.8,java.library.path中没有leveldbjni,权限被拒绝] logingestordev |在org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182) logingestordev |在org.fusesource.hawtjni.runtime.Library.load(Library.java:140) logingestordev |在org.fusesource.leveldbjni.JniDBFactory。(JniDBFactory.java:48) logingestordev |在akka.persistence.journal.leveldb.LeveldbStore $ class.leveldbFactory(LeveldbStore.scala:52) logingestordev |在akka.persistence.journal.leveldb.LeveldbJournal.leveldbFactory(LeveldbJournal.scala:23) logingestordev |在akka.persistence.journal.leveldb.LeveldbStore $ class.preStart(LeveldbStore.scala:178) logingestordev |在akka.persistence.journal.leveldb.LeveldbJournal.preStart(LeveldbJournal.scala:23) logingestordev |在akka.actor.Actor $ class.aroundPreStart(Actor.scala:522) logingestordev |在akka.persistence.journal.leveldb.LeveldbJournal.aroundPreStart(LeveldbJournal.scala:23) logingestordev |在akka.actor.ActorCell.create(ActorCell.scala:591)上 logingestordev |在akka.actor.ActorCell.invokeAll $ 1(ActorCell.scala:462)

我没有在docker容器内以“ root”用户身份运行此应用程序。在DockerFile内部,我还有以下代码行,以特定用户身份运行

    RUN useradd -ms /bin/bash portal-admin
    USER portal-admin
    WORKDIR /home/portal-admin
    RUN chown portal-admin /home/portal-admin

这是在“ centos:6.9”图像上。

0 个答案:

没有答案