Tag: 飞行

JHipster微服务的服务模板无法从UAA服务器检索JWT token_key

我已经在我的本地机器上使用docker-compose部署了我的jhipster-registry , UAA服务器和GATEWAY服务器。 现在我试图用mvnw或者mvn spring-boot部署我的服务:运行 ,(没有docker来部署它)因为我更容易使用我的IDE进行debugging。 然而,一旦我尝试开始我的服务,我得到这个输出: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration': Unsatisfied dependency expressed through field 'tokenStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenStore' defined in class path resource [id/co/fifgroup/dpa/config/MicroserviceSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.oauth2.provider.token.TokenStore]: Factory method 'tokenStore' threw exception; […]

无法在docker容器中加载libjli.so

我有一个基于docker集装箱的ruby应用程序。 其中之一是从openjdk:8build造的Flyway。 本地(osx sierra)全部完美运作。 但是当我试图在我的服务器上构build并启动它时,它会失败: flyway_1 | /flyway/jre/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory 我的环境: CentOS Linux版本7.3.1611(核心) Docker版本17.03.1-ce,构buildc6d412e docker构成版本1.13.0,构build1719ceb 浮桥dockerfile: FROM openjdk:8 RUN apt-get update && apt-get install -f -y postgresql-client COPY ./vendor/flyway/ /flyway COPY ./db/migrate.sh /flyway RUN ln -s /flyway/flyway /usr/local/bin/flyway WORKDIR /flyway CMD […]

将航线添加到MySQL Docker容器

我正在构build一个派生到这个为Docker容器的MySQL(使用它作为一个起点): https : //github.com/docker-library/mysql 我已经修改Dockerfile以在Flyway中添加。 一切都设置为编辑configuration文件连接到本地数据库实例等。意图是从https://github.com/docker-library/mysql/blob/master/5.7/docker-entrypoint.sh调用此命令https://github.com/docker-library/mysql/blob/master/5.7/docker-entrypoint.sh文件(作为入口点运行)在第186行左右: flyway migrate 当从shell脚本中运行这个连接时,我得到一个连接被拒绝: Flyway 4.1.2 by Boxfuse ERROR: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost:3306/db-name) for user 'root': Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused ———————————————————————————————————————————————————————————————- SQL State : 08 Error Code : -1 Message : Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused 但是,如果我从shell脚本中删除命令,重build并login到容器,并手动运行相同的命令,它没有问题。 我怀疑脚本连接数据库的方式可能有些不同(它有一个内置的SQL“runner”),但我似乎无法追捕它。 在这个过程中,容器会重新启动服务器,这可能与此处有所不同。 […]