Would you please provide an example of how to automate license key generation for docker.
Type: Documentation | Version: 2.8.0_04 | Priority: Normal | Status: Active | Replies: 2 |
Would you please provide an example of how to automate license key generation for docker.
I made some progress with this, but there is a strange issue.
Groovy code (working):
import com.objectdb.Activator import groovy.transform.CompileStatic @CompileStatic class Activation { static void main(String[] args) { PipedOutputStream piped = new PipedOutputStream() System.setIn(new PipedInputStream(piped)) Thread.start { Activator.main(args) } sleep(100) piped.println(<USERNAME>) piped.write(13) piped.flush() sleep(100) piped.println(<PASSWORD>) piped.write(13) piped.flush() sleep(100) piped.println(<LICENSE>) piped.write(13) piped.flush() } }
Now here's the strange bit, the license url truncates some of the output!
for example, here is the correct url when the activation is done manually:
http://www.objectdb.com/activate/ZG1vc2hhbA$$,MDA3MDA3,SzgxMi03WTdILUdSMVktREZDQw$$,ZGF2ZW0$,(the rest ommited as it's the same)
but when done with the above program, the url is:
http://www.objectdb.com/activate/,,,ZGF2ZW0$,(the rest omitted)
ie: the following characters: ,ZG1vc2hhbA$$,MDA3MDA3,SzgxMi03WTdILUdSMVktREZDQw$$,
were replaced with: ,,,
This is strange.
Maybe you have double new lines (println + 13) instead of single after every input item?