-
-
Notifications
You must be signed in to change notification settings - Fork 330
-
-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mill Docker image #186
Comments
@nightscape could you try using |
The |
I'd say feel free to create your own docker image and we can link to it in the relevant places in the docs/intro. For further questions about recompiling etc., come to the gitter channel |
docker-compose run job bash -c 'cp -R /input/* /workspace/ && cd /workspace && mill -i foo.test' Starting jenkinsfilerunner_box_1 ... done Compiling (synthetic)/ammonite/predef/interpBridge.sc Compiling (synthetic)/ammonite/predef/DefaultPredef.sc Compiling /workspace/build.sc [19/55] foo.sources 2 targets failed mill.scalalib.ScalaWorkerModule.worker java.lang.ClassNotFoundException: mill.scalalib.worker.ScalaWorker java.net.URLClassLoader.findClass(URLClassLoader.java:381) mill.util.ClassLoader3985anon.findClass(ClassLoader.scala:18) java.lang.ClassLoader.loadClass(ClassLoader.java:424) java.lang.ClassLoader.loadClass(ClassLoader.java:357) mill.scalalib.ScalaWorkerModule.(ScalaWorkerApi.scala:44) mill.scalalib.ScalaWorkerModule.worker java.lang.ClassNotFoundException: mill.scalalib.worker.ScalaWorker java.net.URLClassLoader.findClass(URLClassLoader.java:381) mill.util.ClassLoader3985anon.findClass(ClassLoader.scala:18) java.lang.ClassLoader.loadClass(ClassLoader.java:424) java.lang.ClassLoader.loadClass(ClassLoader.java:357) mill.scalalib.ScalaWorkerModule.(ScalaWorkerApi.scala:44)
Hi all,
I've created a docker base image for mill so that it's easier to start a dockerized project with it:
https://hub.docker.com/r/nightscape/scala-mill/
I would happily contribute this as a PR to this repo.
IMO it makes sense to have an official Docker build to reduce fragmentation.
Two additional questions:
I tried to run Mill once during the Docker build so that it precompiles all the predefs etc.
Unfortunately that failed on Docker Hub (but not locally) because of a
Do you have any idea how one could work around that?
It also seems that Mill still sometimes recompiles the predef files although it shouldn't be necessary.
I saw com-lihaoyi/Ammonite#542 but that should be solved, right?
The text was updated successfully, but these errors were encountered: