Hello! I want to build a project that uses boot on Windows. boot.exe requires java 1.7.0 which is a really old version that I really don't want to install. Is there some other way to install/run boot on Windows?
@markus.gustavsson244 use Windows Subsystem for Linux and run boot as if it were on Ubuntu
just make sure you are using the latest build of Win10
Is there a way to ask boot to print what is the .m2/repository
location being used is?
(I have a task in a build pipeline that takes time because it downloads the dependencies, however they are already copied in /root/.m2
- but it may not be the place
@nha it’s almost always ~/.m2
unless you have changed it
I know there is a var controlling it (I am not setting it)
but I can see /root/.m2
on the container being populated just before running the task
and yet it downloads the deps when invoking boot
Ah so is boot being run as root then?
That’s probably why it’s using that location
If you are in a container the deps will download every time, since when the container starts up again it has no deps
You would need to build a container after downloading the deps if you wanted to cache them
right but I have the deps on the host and I tried docker cp
on the container and setting the volumes
in docker-compose
@nha I’m not sure that will work, you would need a volume that mounts your host m2 to the root m2 in the container
I mean I’m sure it can work, the same way as replacing the working directory, I just don’t know what it would be off hand
Well I seem to be able to copy the files (I can docker exec -i my_container ls "/root/.m2"
etc) but it doesn’t seem to be the right place for boot
so I was thinking maybe it looks somewhere else and I wanted to check that - but I must have missed something
@nha it’s possible boot is using two places, but I don’t know without taking a look at your docker setup
two places? you mean another than user/.m2
?
I think before making a reproducible example I might just try and set BOOT_LOCAL_REPO
- see what happens
Yeah that’s the easiest way to see what’s going on, it might not matter tho, again depending on which container images you are using
here is the container - https://gist.github.com/nha/bdbde7768f0724b63d1fad9122b3b5c2
FROM ubuntu:16.04
and a bunch of (too much) stuff
this is both the “parent” container (that has .m2
populated) and the “child” container (where I am trying to copy it)
setting BOOT_LOCAL_REPO doesn’t seem to work