dgroup / docker-unittests

Testing of base docker images during CI/CD process
MIT License
35 stars 4 forks source link

No install/download section #241

Closed g4s8 closed 5 years ago

g4s8 commented 5 years ago

I tried to download it from maven central and run using commands:

mvn dependency:get \ 
  -DgroupId=com.github.dgroup \
  -DartifactId=docker-unittests \
  -Dversion=1.1.0
java -jar ~/.m2/repository/com/github/dgroup/docker-unittests/1.1.0/docker-unittests-1.1.0.jar \
  -f tests.yml \
  -i alpine:latest

but got an error:

no main manifest attribute, in /home/g4s8/.m2/repository/com/github/dgroup/docker-unittests/1.1.0/docker-unittests-1.1.0.jar

then I tried to download sources from this repo build it and run:

git clone  --depth=1 https://github.com/dgroup/docker-unittests.git
cd docker-unittests
mvn clean install
cd ..
java -jar ./docker-unittests-1.1.0/target/docker-unittests-1.1.0.jar \
  -f tests.yml \
  -i alpine:latest

and got same error (no main manifest attribute).

Honestly speaking, I just forgot how to run it and now I can't find any documentation about it. Also it would be great if I'll be able to download a jar from somewhere (e.g. Github releases) without complex commands.

dgroup commented 5 years ago

Hi @g4s8 , Thank you for the issue reporting, will add the documentation.

As W/A the jar is available as shaded release https://github.com/dgroup/docker-unittests/releases/download/v1.1.0/docker-unittests-app-1.1.0.jar

https://github.com/dgroup/docker-unittests/releases

dgroup commented 5 years ago

By default, there is no manifest within the *.jar for mvn central.

g4s8 commented 5 years ago

@dgroup thanks this shaded release works fine, I tried to search this jar in latest github release https://github.com/dgroup/docker-unittests/releases/tag/1.1.0 (1.1.0 instead of v1.1.0)

dgroup commented 5 years ago

@g4s8, i've renamed the release image

The key problem here is that rultor didn't attach the files to the release https://github.com/yegor256/rultor/issues/1160

For this purpose, the github-release-plugin is used, however, it also can't attach the dist to the existing repository (only create from scratch or delete+create again). https://github.com/jutzig/github-release-plugin/ I'm wondering to raise the RR to them.

dgroup commented 5 years ago

@rultor release, tag=1.1.1

rultor commented 5 years ago

@rultor release, tag=1.1.1

@dgroup OK, I will release it now. Please check the progress here

rultor commented 5 years ago

@rultor release, tag=1.1.1

@dgroup Done! FYI, the full log is here (took me 7min)

g4s8 commented 5 years ago

@dgroup now it's clear, thanks