Code Monkey home page Code Monkey logo

Comments (14)

vladak avatar vladak commented on August 30, 2024 1

Actually, this seems to have triggered the build on the hub.

from docker.

vladak avatar vladak commented on August 30, 2024 1

Got the permissions, enabled build trigger. From the build logs I can see 1.1-rc74 being downloaded.

from docker.

vladak avatar vladak commented on August 30, 2024

Perhaps there is a way how to trigger commit into external repository (this one) from the oracle/opengrok deploy build stage in Travis.

from docker.

vladak avatar vladak commented on August 30, 2024

Perhaps https://martinrotter.github.io/it-programming/2016/08/26/pushing-git-travis/ would help.

from docker.

vladak avatar vladak commented on August 30, 2024

Or just add the RESTful API call to docker to perform remote build trigger would be more straightforward.

from docker.

edigaryev avatar edigaryev commented on August 30, 2024

Or just add the RESTful API call to docker to perform remote build trigger would be more straightforward.

Yes, you can configure a GitHub repo to send HTTP requests when certain event happens (e.g. new release is published), and that HTTP request URL can be a Docker Hub's trigger URL as described above.

But I just realized that it probably won't be enough if Docker Hub caches image layers (it may skip the build if Dockerfile and it's dependencies haven't changed), but I'm not sure if this is the case.

from docker.

vladak avatar vladak commented on August 30, 2024

Tried to create automated build on hub.docker.com however it was stuck in 'Creating...' over night so I will try my luck later.

from docker.

vladak avatar vladak commented on August 30, 2024

Okay, this time the automated build was successfully created. However, it expects certain JSON payload to trigger the build and Github can only supply the payloads specific to events, in this case the push event (https://developer.github.com/v3/activity/events/types/#pushevent) and there does not seem to be a way how to change the payload.

from docker.

vladak avatar vladak commented on August 30, 2024

But, only for vkotal/docker, not for OpenGrok/docker.

from docker.

vladak avatar vladak commented on August 30, 2024

It looks like this change needs to be done by whomever owns https://hub.docker.com/r/opengrok/docker/

from docker.

vladak avatar vladak commented on August 30, 2024

Okay, it's @tarzanek. I will try to enable the auto builds there as well however my vladak/docker does not seem to update the image so possibly we will have to go with the triggered push..

from docker.

vladak avatar vladak commented on August 30, 2024

Or, maybe consider moving the dockerfile into the main repo and let Maven set its version during the normal release procedure (https://github.com/oracle/opengrok/wiki/Release-process).

from docker.

vladak avatar vladak commented on August 30, 2024

Updated the webhook to be triggered only on releases.

from docker.

vladak avatar vladak commented on August 30, 2024

Seems like it's working - just created OpenGrok release 1.1-rc75, build was triggered on Docker hub with the webhook, docker pull gets the new image, docker container exec XYZ java -jar /opengrok/lib/opengrok.jar -V reports 1.1-rc75.

from docker.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.