Giter VIP home page Giter VIP logo

Comments (3)

nevalla avatar nevalla commented on June 17, 2024

This is regression on 0.7 release and the fix is coming soon.

There are also couple of other thoughts how to fix your kontena.yml file.

I don't know does jenkins service need user attribute but at least gitblit does not work if you define it to use gitblit user. So I suggest you to remove it (or use the correct one).

When using kontena deploy, kontena prefixes services as you might have noticed. Due that you have to use prefix wildcard on affinity rules, for example: container!=%{prefix}-gitblit-1. Also notice that you have to define also container number on container affinity.

I got services up and running with the following kontena.yml file.

# jenkins configuration
jenkins:
    image: jenkinsci/jenkins:latest
    stateful: true
    instances: 1
    user: jenkins
    ports:
        - "9181:8080"
        - "9150:50000"
    affinity:
        - container!=%{prefix}-gitblit-1

# gitblit configuration
gitblit:
    image: elderresearch/docker-gitblit:latest
    instances: 1
    ports:
        - "9180:80"
        - "9118:9418"
        - "9122:29418"
    affinity:
        - container!=%{prefix}-jenkins-1

That demo/ portion on service list is a valid question. I think I will open a new issue where to discuss do we need or should we remove them.

from kontena.

jakolehm avatar jakolehm commented on June 17, 2024

@robxu9: fix is included in the 0.7.3 release.

from kontena.

robxu9 avatar robxu9 commented on June 17, 2024

Thanks for the advice and the fix!

from kontena.

Related Issues (20)

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.