I have a simple grails application that works fine on its own. It has no problem using grails web page profile with grails run-app
However, when I create the docker image from the application, grails commands such as grails run-app --stacktrace or grails dependency-report --stacktrace sent to docker fail using stacktrace:
| Error Error occurred running Grails CLI: No profile found for name [web]. (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.IllegalStateException: No profile found for name [web]. at org.grails.cli.GrailsCli.initializeProfile(GrailsCli.groovy:507) at org.grails.cli.GrailsCli.initializeApplication(GrailsCli.groovy:308) at org.grails.cli.GrailsCli.execute(GrailsCli.groovy:271) at org.grails.cli.GrailsCli.main(GrailsCli.groovy:162) | Error Error occurred running Grails CLI: No profile found for name [web].
Docker Build Command: Run from the root of the grails application. The user is in the docker group.
docker build -t mygrailsapp .
DockerFile: (The line will fail in the RUN grails-dependency-report -stacktrace command. If I remove this command, the assembly will fail. However, the first time the application starts with the default command, the same error occurs.)
# # My Dockerfile # # https:
Setup:
Ubuntu 14.04 LTS 64
Jave: Oracle JDK 1.8.0_77 64
Via sdkman 4.0.32:
Grails 3.14 Groovy 2.4.6 Gradle 2.12
Docker Client: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu 10 Mar 15:54:52 2016 OS / Arch: linux / amd64
Ed j
source share