Giter Club home page Giter Club logo

Comments (3)

ketan avatar ketan commented on June 19, 2024 1

This will be released either tomorrow, or early next week.

from docker-gocd-agent.

Stono avatar Stono commented on June 19, 2024

+1 this is very annoying, stdout is where we want our logs in most situations with docker.

@bdpiparva : you can work around this buy building your own container FROM this image, and overriding the entrypoint with a custom script that starts the agent, and then tails the log:

#!/bin/bash
function stop()
{
	echo "Stopping GoCD Agent..."
	kill $gocd_pid
	kill $tail_pid
	echo "Stopped."
	exit 0
}

function start() {
	echo "Starting GoCD Agent..."
	./docker-entrypoint.sh &	
	gocd_pid=$!

	sleep 3
        # Change this to a different log file if theres something else you want to log
	tail -f /go/go-agent-bootstrapper.out.log &
	tail_pid=$!

	echo "Started (GoCD: $gocd_pid, LogTail: $tail_pid)."
}

trap stop TERM INT SIGHUP
start
wait $gocd_pid

Not great, but it'll do for now.

from docker-gocd-agent.

sennerholm avatar sennerholm commented on June 19, 2024

Hi!

I think that 2b7c7c2 is changing the behavior so everything should get to stdout, but I don't know when it will be released. I guess september from new version in changelog (17.9.0).

/Mikael

from docker-gocd-agent.

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.