These are chat archives for sdkman/vendors

19th
Nov 2015
Julien Viet
@vietj
Nov 19 2015 20:36
hi
Marco Vermeulen
@marc0der
Nov 19 2015 20:37
hello!
Julien Viet
@vietj
Nov 19 2015 20:37
I decrypted the files
Marco Vermeulen
@marc0der
Nov 19 2015 20:37
excellent
Julien Viet
@vietj
Nov 19 2015 20:37
I reviewed a bit the api
so beside trying a couple of curl commands, what should I do :-) ?
Marco Vermeulen
@marc0der
Nov 19 2015 20:38
if you can perform the curl commands (receiving back the correct status)
then I can spin up a docker container and check to see if the stuff is deployed
Julien Viet
@vietj
Nov 19 2015 20:38
ok so docker container is used to test that we get it correct
but normally I should trust the api right ?
Marco Vermeulen
@marc0der
Nov 19 2015 20:39
if it returns the correct status in each case, yes
it will give you a message too, telling you if you were successful
Julien Viet
@vietj
Nov 19 2015 20:39
in the api, status return code are not documented though
I'm building a stack locally
Marco Vermeulen
@marc0der
Nov 19 2015 20:39
good point, I will look into that
Julien Viet
@vietj
Nov 19 2015 20:39
perhaps it's not good idea today
Marco Vermeulen
@marc0der
Nov 19 2015 20:40
it will always be a 2xx
Julien Viet
@vietj
Nov 19 2015 20:40
as one of our developer rewrote how we package stack :-)
but I haven't updated it locally yet
Marco Vermeulen
@marc0der
Nov 19 2015 20:40
well, that's why I suggested we do it on dev first
Julien Viet
@vietj
Nov 19 2015 20:40
ah yes
I don't want to do it on prod
Marco Vermeulen
@marc0der
Nov 19 2015 20:40
and if successful, we can go ahead on prod
Julien Viet
@vietj
Nov 19 2015 20:41
I mean that with the new vertx cli stack manager I'm not sure I can build a stack today
why would we have something on prod today ?
it would be a snapshot
[INFO] Creating temporary directory /Users/julien/java/vertx-stack/stack-npm/target/node/node_tmp
[INFO] Downloading Node.js from http://nodejs.org/dist/v0.12.6/node-v0.12.6-darwin-x64.tar.gz to /Users/julien/java/vertx-stack/stack-npm/target/node/node_tmp/node.tar.gz
[INFO] No proxy was configured, downloading directly
yeah...
Marco Vermeulen
@marc0der
Nov 19 2015 20:41
for sure yes
Julien Viet
@vietj
Nov 19 2015 20:41
vertx-stack is our project that aggregates all modules
build the doc and the binaries
publish them in maven
Marco Vermeulen
@marc0der
Nov 19 2015 20:42
ah, I see. wasn't familiar with it.
Julien Viet
@vietj
Nov 19 2015 20:42
then we our website pulls the doc from maven
using some maven / gulp
and updates the site after release is done
so I do have build these
total 596912
drwxr-xr-x  2 julien  staff        68 Nov 19 21:40 archive-tmp
drwxr-xr-x  3 julien  staff       102 Nov 19 21:40 maven-archiver
-rw-r--r--  1 julien  staff  49610184 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-base.tar.gz
-rw-r--r--  1 julien  staff  49620263 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-base.zip
-rw-r--r--  1 julien  staff  59582658 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-full.tar.gz
-rw-r--r--  1 julien  staff  59596203 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-full.zip
-rw-r--r--  1 julien  staff  43594506 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-min.tar.gz
-rw-r--r--  1 julien  staff  43597850 Nov 19 21:40 vert.x-3.2.0-SNAPSHOT-min.zip
drwxr-xr-x  5 julien  staff       170 Nov 19 21:40 vertx-base
drwxr-xr-x  6 julien  staff       204 Nov 19 21:40 vertx-full
drwxr-xr-x  5 julien  staff       170 Nov 19 21:40 vertx-min
-rw-r--r--  1 julien  staff      1983 Nov 19 21:40 vertx-stack-dist-3.2.0-SNAPSHOT-tests.jar
which one do you publish ?
full ?
Marco Vermeulen
@marc0der
Nov 19 2015 20:43
I can check for you, one moment...
I'm doing full
Julien Viet
@vietj
Nov 19 2015 20:44
ok
so I'm gonna try deploy that one
Marco Vermeulen
@marc0der
Nov 19 2015 20:44
sounds good!
that's with the dev urls that I sent you this morning
Julien Viet
@vietj
Nov 19 2015 20:45
ok
can url be something local BTW ?
like file://
Marco Vermeulen
@marc0der
Nov 19 2015 20:48
no, it needs to be the real url on bintray
Julien Viet
@vietj
Nov 19 2015 20:48
only on bintray ?
or any http server
I see
Marco Vermeulen
@marc0der
Nov 19 2015 20:48
or maven (wherever you prefer to host the binaries)
yep
Julien Viet
@vietj
Nov 19 2015 20:48
for this try
how about cloudbees jenkins server ?
actually we might have maven
snapshot repo
we should
Marco Vermeulen
@marc0der
Nov 19 2015 20:49
if it's reachable, why not.
Julien Viet
@vietj
Nov 19 2015 20:49
one question
Marco Vermeulen
@marc0der
Nov 19 2015 20:49
sure
Julien Viet
@vietj
Nov 19 2015 20:49
ah ok
no it's stupid question
I was saying you don't handle binaries signing
Marco Vermeulen
@marc0der
Nov 19 2015 20:51
no, not yet. but it's something that's on the backlog
Julien Viet
@vietj
Nov 19 2015 20:51
ok
so this file would be ok
Marco Vermeulen
@marc0der
Nov 19 2015 20:51
it's actually a great question ;-)
Julien Viet
@vietj
Nov 19 2015 20:51
it's a snapshot of today
Marco Vermeulen
@marc0der
Nov 19 2015 20:51
yep, that will do perfectly
Julien Viet
@vietj
Nov 19 2015 20:51
you don't host binariies
Marco Vermeulen
@marc0der
Nov 19 2015 20:52
no, not at all. we are purely a broker.
Julien Viet
@vietj
Nov 19 2015 20:52
yes
Marco Vermeulen
@marc0der
Nov 19 2015 20:52
we make curl redirect to wherever you host your binaries.
Julien Viet
@vietj
Nov 19 2015 20:52
you must have the hell of bash skills
Marco Vermeulen
@marc0der
Nov 19 2015 20:52
usually people prefer bintray because it's faster and gives better analytics
hahaha
Julien Viet
@vietj
Nov 19 2015 20:53
at the moment our bintray analytics are 30 days only
even with an open source account
Marco Vermeulen
@marc0der
Nov 19 2015 20:53
with bash it's hit and miss
Julien Viet
@vietj
Nov 19 2015 20:53
tomorrow I may attend a bash TDD session in a conf
Marco Vermeulen
@marc0der
Nov 19 2015 20:53
wow, I'm jealous!
that sounds like super geek fun!
ready to give it a bash? hahaha
Julien Viet
@vietj
Nov 19 2015 20:54
just got
{"status":403,"message":"Not authorised to use this service."}
Marco Vermeulen
@marc0der
Nov 19 2015 20:55
did you apply the security headers?
Julien Viet
@vietj
Nov 19 2015 20:55
ah actualy
was using wrong server :)
prod
Marco Vermeulen
@marc0der
Nov 19 2015 20:55
oops ;-)
Julien Viet
@vietj
Nov 19 2015 20:55
but with dev token
Marco Vermeulen
@marc0der
Nov 19 2015 20:55
it's all pretty well secured
so no harm done ;-)
Julien Viet
@vietj
Nov 19 2015 20:55
server is in groovy ?
got status 201
Marco Vermeulen
@marc0der
Nov 19 2015 20:56
5 servers in total. some in scala, some in groovy
Julien Viet
@vietj
Nov 19 2015 20:56
released vertx version: 2.3.0-SNAPSHOT
Marco Vermeulen
@marc0der
Nov 19 2015 20:56
excellent
give me a moment to check
what was the payload that you sent? I'm not seeing it
was it 2.3.0 snapshot?
Julien Viet
@vietj
Nov 19 2015 20:57
yes
Marco Vermeulen
@marc0der
Nov 19 2015 20:57
cool, let me try downloading it
Julien Viet
@vietj
Nov 19 2015 20:57
https://oss.sonatype.org/content/repositories/snapshots/io/vertx/vertx-stack-dist/3.2.0-SNAPSHOT/vertx-stack-dist-3.2.0-20151119.134825-48-full.zip
Marco Vermeulen
@marc0der
Nov 19 2015 20:58
excellent, can I ask you to try making it the default version now?
Julien Viet
@vietj
Nov 19 2015 20:58
we change the name when it's on bintray though
yes
Marco Vermeulen
@marc0der
Nov 19 2015 20:59
sure, and I propose that you only push the Milestone and RC releases
not snapshots, otherwise it will be version overload
Julien Viet
@vietj
Nov 19 2015 21:00
indeed
for 2.3.0 we won't do rc/milestone
Marco Vermeulen
@marc0der
Nov 19 2015 21:01
yep, just 3.1.x I gather
Julien Viet
@vietj
Nov 19 2015 21:01
it seems fine
201 again
Marco Vermeulen
@marc0der
Nov 19 2015 21:01
okay, let me try
Julien Viet
@vietj
Nov 19 2015 21:01
ah no
202
Marco Vermeulen
@marc0der
Nov 19 2015 21:02
perfect
right, so when I run vertx -version it says 3.2.0-SNAPSHOT
I suppose the 2.3.0-SNAPHSHOT version you have it was just a typo?
Julien Viet
@vietj
Nov 19 2015 21:04
ah yes
indeed
the kind of things I can do
Marco Vermeulen
@marc0der
Nov 19 2015 21:04
lol. now the last step, the broadcast call
Julien Viet
@vietj
Nov 19 2015 21:04
during last release
I tagged to 3.2.0 instead of 3.1.0
Marco Vermeulen
@marc0der
Nov 19 2015 21:05
oops
Julien Viet
@vietj
Nov 19 2015 21:05
fortunately the maven versions were 3.1.0
so I just had to delete the 3.2.0 tags on github
and retag
Marco Vermeulen
@marc0der
Nov 19 2015 21:05
I bet tim was overjoyed hahaha
Julien Viet
@vietj
Nov 19 2015 21:05
he does not really care
Marco Vermeulen
@marc0der
Nov 19 2015 21:05
;-)
Julien Viet
@vietj
Nov 19 2015 21:05
for doing our releases I had to write a custom maven plugin
Marco Vermeulen
@marc0der
Nov 19 2015 21:06
hmmm, I must speak to you about that
Julien Viet
@vietj
Nov 19 2015 21:06
to update our github repo
with maven build
in the correct order
Marco Vermeulen
@marc0der
Nov 19 2015 21:06
it would be nice to have a maven mojo to do this release. many of the vendors still use maven...
Julien Viet
@vietj
Nov 19 2015 21:06
yes
I was thinking about that
Marco Vermeulen
@marc0der
Nov 19 2015 21:06
i've got a gradle plugin, but no mojo
Julien Viet
@vietj
Nov 19 2015 21:06
I wrote the ceylon maven plugin recently
I believe the most important part
Marco Vermeulen
@marc0der
Nov 19 2015 21:06
do you want to contribute???
Julien Viet
@vietj
Nov 19 2015 21:06
yes I can it should be easy
Marco Vermeulen
@marc0der
Nov 19 2015 21:07
awesome!
Julien Viet
@vietj
Nov 19 2015 21:07
but there is some stuff to do with sonatype
creating a JIRA etc...
I believe you should do it
and add me as able to push too
Marco Vermeulen
@marc0der
Nov 19 2015 21:07
sure, if you can point me to the right place
will do
Julien Viet
@vietj
Nov 19 2015 21:07
so you are managing that
but I do deploy a plugin
I do have an account already
Marco Vermeulen
@marc0der
Nov 19 2015 21:08
excellent, will check it out
my sonatype name is
vietj
in the JIRA form there is a field where you can precise "vietj"
also you need to find a name for this plugin
like
sdkman-maven-plugin
and I can write three goals
Marco Vermeulen
@marc0der
Nov 19 2015 21:09
perfect, will do. thanks!
Julien Viet
@vietj
Nov 19 2015 21:09
at the end it's a wrapper of an HTTP client
Marco Vermeulen
@marc0der
Nov 19 2015 21:09
that will be a great help
Julien Viet
@vietj
Nov 19 2015 21:10
with some config
Marco Vermeulen
@marc0der
Nov 19 2015 21:10
yes, that's all, with some configuration for key/token and other metadata
yep
Julien Viet
@vietj
Nov 19 2015 21:10
the value is the integration in the maven toolchain
Marco Vermeulen
@marc0der
Nov 19 2015 21:10
for sure yes
Julien Viet
@vietj
Nov 19 2015 21:10
yes the part is how to get the value key/token securely
normally it's done with properties
so someone do -Dxyz=foobar
on command line
Marco Vermeulen
@marc0der
Nov 19 2015 21:11
yep, always the big challenge
or even env vars
Julien Viet
@vietj
Nov 19 2015 21:11
like there is for the maven-sign-plugin
Marco Vermeulen
@marc0der
Nov 19 2015 21:11
shall we quickly do the last step?
Julien Viet
@vietj
Nov 19 2015 21:11
I would do pretty much like maven-sign-plugin does
Marco Vermeulen
@marc0der
Nov 19 2015 21:11
the broadcast call?
Julien Viet
@vietj
Nov 19 2015 21:11
ok
I thought it was not possible on dev
Marco Vermeulen
@marc0der
Nov 19 2015 21:12
yes, I've got a special dev twitter account
Julien Viet
@vietj
Nov 19 2015 21:13
ok
done
Marco Vermeulen
@marc0der
Nov 19 2015 21:14
yay! that worked
Julien Viet
@vietj
Nov 19 2015 21:14
so when publishing
a release
there is no notion of "staging"
Marco Vermeulen
@marc0der
Nov 19 2015 21:14
as in a staging environment?
Julien Viet
@vietj
Nov 19 2015 21:15
yes
or
destroying or overwriting an existing release
would work too
Marco Vermeulen
@marc0der
Nov 19 2015 21:15
no, all releases are immutable.
you can't overwrite a release atm. you would have to ask me to remove it from the db
I'll still expose a DELETE endpoint at a future point
Julien Viet
@vietj
Nov 19 2015 21:16
ok
Marco Vermeulen
@marc0der
Nov 19 2015 21:16
the important thing to remember is that the default endpoint should only be called for your stable binary
some people forget and and set an older version as default.
it's easy to fix with a second call to the api though
Julien Viet
@vietj
Nov 19 2015 21:17
so if I want to try the sdkman maven plugin
I can still use this dev server ?
Marco Vermeulen
@marc0der
Nov 19 2015 21:17
that would be awesome!
Julien Viet
@vietj
Nov 19 2015 21:17
with whatever vertx snapshot
Marco Vermeulen
@marc0der
Nov 19 2015 21:17
yes, for sure
Julien Viet
@vietj
Nov 19 2015 21:17
that I name with dummy names
Marco Vermeulen
@marc0der
Nov 19 2015 21:17
the dev server is a playground
Julien Viet
@vietj
Nov 19 2015 21:17
ok
Marco Vermeulen
@marc0der
Nov 19 2015 21:18
you can put anything in there under vertx
Julien Viet
@vietj
Nov 19 2015 21:18
I believe http codes would be sufficient for testing
ah yes I would use vertx in dev server
Marco Vermeulen
@marc0der
Nov 19 2015 21:18
(there is an authorization check for candidate)
Julien Viet
@vietj
Nov 19 2015 21:18
you could also issue me a dummy name too
only for this server
Marco Vermeulen
@marc0der
Nov 19 2015 21:18
so your key/token will only work for vertx
Julien Viet
@vietj
Nov 19 2015 21:18
ok
issue me a test key/token then
with whatever name you like
Marco Vermeulen
@marc0der
Nov 19 2015 21:19
you can put stuff into the vertx candidate no problem. it's only a dev server
so use the creds that I gave you.
Julien Viet
@vietj
Nov 19 2015 21:19
ok
Marco Vermeulen
@marc0der
Nov 19 2015 21:20
then I'll do a restore of the prod db at a later stage to clean up
I do it periodically
Julien Viet
@vietj
Nov 19 2015 21:20
ok
it's more because I fear to make mistakes with vertx
Marco Vermeulen
@marc0der
Nov 19 2015 21:20
(got to go, wife is giving me angry looks ;-))
Julien Viet
@vietj
Nov 19 2015 21:20
and using another ID would be safer
Marco Vermeulen
@marc0der
Nov 19 2015 21:20
don't worry, it's just a dev environment
Julien Viet
@vietj
Nov 19 2015 21:20
yes but I mean that
at some point the plugin will have default URLs
and if I develop it
I may do mistakes
using vertx
Marco Vermeulen
@marc0der
Nov 19 2015 21:21
let's first get it all working against dev, then once we are confident, we can update the urls
Julien Viet
@vietj
Nov 19 2015 21:21
sure
Marco Vermeulen
@marc0der
Nov 19 2015 21:21
get the risk out of the way on dev, then we propagate to prod
got to run! thanks for all your help
Julien Viet
@vietj
Nov 19 2015 21:22
thank you
I'll keep you updated
Marco Vermeulen
@marc0der
Nov 19 2015 21:22
good luck with the release!
let me know how it goes and when you want to do it. I'll be on standby in case something goes wrong
Julien Viet
@vietj
Nov 19 2015 21:22
ok
it should be early december
Marco Vermeulen
@marc0der
Nov 19 2015 21:23
excellent, well have a great evening
Julien Viet
@vietj
Nov 19 2015 22:05
hi
here is a plugin I started
it does the "release" goal
let me know what you think
hint : you need to install the plugin locally before
Marco Vermeulen
@marc0der
Nov 19 2015 22:24
Hey man, just had a look and it's awesome!
Julien Viet
@vietj
Nov 19 2015 22:24
I'm doing the other
Marco Vermeulen
@marc0der
Nov 19 2015 22:24
I'll give it a spin over the weekend
Julien Viet
@vietj
Nov 19 2015 22:24
it should be quite trivial
I think what matters is to think about the workflow
and the configuration side
I don't know how it is done in gradle
Marco Vermeulen
@marc0der
Nov 19 2015 22:25
it's going to help some of the other communities like spring boot too
Julien Viet
@vietj
Nov 19 2015 22:25
I know a couple of folks there
(french)
Marco Vermeulen
@marc0der
Nov 19 2015 22:25
many people at pivotal still seem to be on maven too
(did you see that we now have maven as candidate?)
Julien Viet
@vietj
Nov 19 2015 22:26
no
I just know about Ceylon
Marco Vermeulen
@marc0der
Nov 19 2015 22:26
try sdk install maven
;-)
Julien Viet
@vietj
Nov 19 2015 22:26
[INFO] --- sdkman-maven-plugin:1.0-SNAPSHOT:default (default-cli) @ sdkman-maven-plugin ---
status:202
id:543c127a289a28bec97e6b0e
message:default vertx version: 0.0.1
so default works
the last one is the broadcast
Marco Vermeulen
@marc0der
Nov 19 2015 22:27
you rock man!
Julien Viet
@vietj
Nov 19 2015 22:27
that's quite easy
given I've done the maven ceylon plugin last week
I'm still hot
Marco Vermeulen
@marc0der
Nov 19 2015 22:32
very cool, it's much appreciated
Julien Viet
@vietj
Nov 19 2015 22:47
I'm done for now
I've done all api
so let me know
bye
Marco Vermeulen
@marc0der
Nov 19 2015 22:53
Will have a play with it over the weekend. Thank you!
Chat soon!