Problem building htm.java (osx)

builds
#1

Hi guys, I’m trying to use htm.java to perform simple application.
I’d like to execute some examples but I can’t complete building tutorial.

Here: github htm.java

I’m at “build the docker image” step but when I enter this line:
[htm.java]$ docker build -t $USER/htm.java .

console says: " invalid reference format: repository name must be lowercase"

How can I fix it?

0 Likes

#2

It doesn’t look like you have a $USER environment variable set up in your OS. Are you on Windows? Quick fix is to simply change $USER to the absolute file path to htm.java.

0 Likes

#3

I’m on osx. I’ve also tried using absolute path instead of $USER but I have same effect

0 Likes

#4

Does your username have upper case letters?

0 Likes

#5

I’ve already tried to change my name without upper letters but issue remains.

My absolute path should be /Users/andrea/htm.java but I’m not sure I can change also “Users” folder name.

If I try with /Users/andrea/htm.java console says: invalid reference format: repository name must be lowercase

If I use $USER/htm.java instead: “docker build” requires exactly 1 argument(s).
See ‘docker build --help’.

Usage:  docker build [OPTIONS] PATH | URL | -

Build an image from a Dockerfile
0 Likes

#6

Hi @Andrea_Giordano,

May I ask why your trying to build the docker file? The reason I ask is that it’s just a “reference” build so that users could see what a successful execution of:

gradle -Pskipbench check

…would look like if executed correctly. You can’t really do anything else with it…, and it is not part of the library one would use officially in their own code. Also, it’s probably very much out of sync now… not sure.

0 Likes

#7

David, maybe you should remove it from the README?

1 Like

#8

So I’ve done when I executed:
gradle check

?

If yes, that command works correctly.

0 Likes

#9

Matt, you’re probably right…

0 Likes

#10

I’m not sure what this means? gradle check works? You should probably use

gradle -Pskipbench check

…because there’s no reason to run the benchmarks every time you build.

0 Likes

#11

@cogmission ok thanks.
I misunderstood, I though was necessary follow docker steps.

0 Likes

#12

@Andrea_Giordano,

An easy mistake! :slight_smile:

Using HTM.Java is much more simple than that. You just put it on your class path and that’s it! The other stuff is for setting up in Eclipse… I removed mention of the Dockerfile from the README… (@rhyolight @Andrea_Giordano)

0 Likes