Fork me on GitHub
#boot
<
2019-06-03
>
Markus Gustavsson09:06:19

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?

flyboarder17:06:29

@markus.gustavsson244 use Windows Subsystem for Linux and run boot as if it were on Ubuntu

flyboarder17:06:59

just make sure you are using the latest build of Win10

nha18:06:31

Is there a way to ask boot to print what is the .m2/repository location being used is?

nha18:06:26

(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

flyboarder18:06:23

@nha it’s almost always ~/.m2 unless you have changed it

nha18:06:53

I know there is a var controlling it (I am not setting it)

nha18:06:20

but I can see /root/.m2 on the container being populated just before running the task

nha18:06:34

and yet it downloads the deps when invoking boot

flyboarder18:06:40

Ah so is boot being run as root then?

flyboarder18:06:03

That’s probably why it’s using that location

flyboarder18:06:36

If you are in a container the deps will download every time, since when the container starts up again it has no deps

flyboarder18:06:59

You would need to build a container after downloading the deps if you wanted to cache them

nha18:06:46

right but I have the deps on the host and I tried docker cp on the container and setting the volumes in docker-compose

flyboarder18:06:48

@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

flyboarder19:06:34

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

nha19:06:38

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

nha19:06:51

so I was thinking maybe it looks somewhere else and I wanted to check that - but I must have missed something

flyboarder19:06:31

@nha it’s possible boot is using two places, but I don’t know without taking a look at your docker setup

nha19:06:13

two places? you mean another than user/.m2 ?

nha19:06:01

I think before making a reproducible example I might just try and set BOOT_LOCAL_REPO - see what happens

flyboarder19:06:03

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

nha19:06:02

FROM ubuntu:16.04 and a bunch of (too much) stuff

nha19:06:03

this is both the “parent” container (that has .m2 populated) and the “child” container (where I am trying to copy it)

nha21:06:30

setting BOOT_LOCAL_REPO doesn’t seem to work