OK - <@U071QGDLH> has been helping me with my mult...
# docker
j
OK - @jclausen has been helping me with my multi-stage build to get CF2021 working on Mac M1. Now I've run into a weird issue trying to change the APP_DIR to something other than /app which seems like it should be simple LOL I've simplified my build and posted it here: https://github.com/jimpriest/mac-m1-test/blob/main/Dockerfile If I set APP_DIR to /app - everything works. I can build it, run it and hit the CFAdmin, etc. If I set APP_DIR to /jim - it builds, but when I run docker compose up it fails with an error about /app
Copy code
cfml  | WARNING: package com.sun.java.swing.plaf.nimbus not in java.desktop
cfml  | WARNING: package com.sun.java.swing.plaf.windows not in java.desktop
cfml  | java.lang.RuntimeException: File not found: /app/ (/app)
cfml  |         at runwar.options.CommandLineHandler.getFile(CommandLineHandler.java:1367)
cfml  |         at runwar.options.CommandLineHandler.parseLogArguments(CommandLineHandler.java:803)
cfml  |         at runwar.options.CommandLineHandler.parseLogArguments(CommandLineHandler.java:767)
cfml  |         at runwar.Start.main(Start.java:36)
cfml  | Exception in thread "main" java.lang.NullPointerException
cfml  |         at runwar.logging.LoggerFactory.configure(LoggerFactory.java:53)
cfml  |         at runwar.Start.main(Start.java:37)
So now I'm stuck... 😕 The only place I can find an reference to '/app' is in /usr/local/bin/startup-final.sh? I pulled some of this code from the multi-stage build example here: https://github.com/Ortus-Solutions/docker-commandbox#multi-stage-builds
Copy code
'-war' '/app/' \