Category : playframework

I am using final File jsonSchemaFile = new File(path); final URI uri = jsonSchemaFile.toURI(); after using Logger of play framework on path and URI I used the Logger in this way Logger.info("path:->"+path); Logger.info("uri:->"+uri.toString()); I got this output after I start my server with the help of Docker path:->conf/config_schema/xyz.json uri:->file:////rule_engine-1.0/conf/config_schema/xyz.json but I don’t want these extra ..

Read more

This is the dockerfile which I want to use for dockerizing my Play application where I am using SBT as a build tool FROM openjdk:8 AS SCRATCH WORKDIR / ADD . . EXPOSE 9000 ENV MONGO_DB_HOST="host.docker.internal" ENV MONGO_DB_PORT="27017" RUN echo "$(ls -alh)" RUN java -jar libexec/activator-launch-1.3.10.jar dist -Dconfig.file=conf/application.conf RUN ls -alh target/universal/ RUN tar -xzvf ..

Read more

I am on a staging server and I am running my docker file on the same server docker run -v /home/deployer/rule_engine/ivy2:/root/.ivy2 -i -t -p 8099:9000 image_id. after running this command I am getting this error Getting com.typesafe.activator activator-launcher 1.3.10 … :: retrieving :: org.scala-sbt#boot-app confs: [default] 31 artifacts copied, 0 already retrieved (20211kB/273ms) Getting Scala ..

Read more

I want to dockerize my play application here is my Docker file FROM openjdk:8 AS SCRATCH WORKDIR / ADD . . EXPOSE 9000 CMD bin/activator run -Dconfig.file=conf/application.conf Problem I am facing is that my dependencies are getting installed again and again when I execute docker run command I don’t want this to happen i can ..

Read more

My app is Scala 2.12.8, sbt 1.2.7, running on docker. When jvm was 1.8 all worked well. When upgrading to jdk11, and therefore updated dependencies as follows- val playLiquibase = "com.ticketfly" %% "play-liquibase" % "2.2" exclude("org.liquibase", "liquibase-core") val liquibase = "org.liquibase" % "liquibase-core" % "3.8.5" and also changing this line to be – new PlayLiquibase(environment, ..

Read more

I have the following prod.conf, containing the relevant information on how to connect to my PostgresSql DB. slick.dbs.default { profile = "slick.jdbc.PostgresProfile$" db.dataSourceClass = "slick.jdbc.DatabaseUrlDataSource" db.numThreads = 8 maxConnections = 8 driver="slick.jdbc.PostgresProfile$" db.driver="org.postgresql.Driver" url="jdbc:postgresql://db:5432/db" user="user" password="password" } (excerpt) My Dockerfile looks like this #… RUN sbt stage RUN cd target/universal/stage/bin ENTRYPOINT ["target/universal/stage/bin/newsapi", "-Dplay.http.secret.key=KEY -Dconfig.resource=prod.conf"] (excerpt) ..

Read more