Tag: 组合

编译期间依赖项无法看到它的configuration

我正在尝试在Docker容器中打包应用程序。 它依赖于可authablehex包。 运行时: docker build –tag "testing:0.1" –file Dockerfile . …我收到以下编译错误: == Compilation error on file lib/authable/repo.ex == ** (ArgumentError) missing :adapter configuration in config :authable, Authable.Repo lib/ecto/repo/supervisor.ex:50: Ecto.Repo.Supervisor.compile_config/2 lib/authable/repo.ex:6: (module) (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6 could not compile dependency :authable, "mix compile" failed. You can recompile this dependency with "mix deps.compile authable", update it with "mix […]

我试图通过Docker与Clojure应用程序连接到MongoDB

我有以下docker组成规则… catalog-service: build: ./services/catalog ports: – "2000:3000" depends_on: – catalog-datastore restart: always catalog-datastore: image: mongo:3.0 command: mongod –smallfiles –quiet –logpath=/dev/null ports: – "27017:27017" 下面的clojure应用程序的Dockerfile … FROM clojure COPY . /usr/src/app WORKDIR /usr/src/app CMD ["lein", "ring", "server"] 和下面的连接代码在我的应用程序… (ns catalog.handler (:import com.mchange.v2.c3p0.ComboPooledDataSource) (:use compojure.core) (:use cheshire.core) (:use ring.util.response) (:require [compojure.handler :as handler] [ring.middleware.json :as middleware] [clojure.java.jdbc […]