Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter logs #27

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Filter logs #27

wants to merge 8 commits into from

Conversation

LeeZeitz
Copy link
Collaborator

No description provided.

with open(LOGFILE, 'a') as log_file:
print ('Initializing {0}...'.format(service))
subprocess.call([DOCKER_COMPOSE, "run", service, "INIT"], stdout=log_file, stderr=subprocess.STDOUT)
subprocess.call([DOCKER_COMPOSE, "rm", "-f", service], stdout=log_file, stderr=subprocess.STDOUT)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check if there was an error before we say it was initialized?

subprocess.call([DOCKER_COMPOSE, "up", "-d", service])
print ('{0} Started!'.format(service))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is outdated, I provide the url they can hit to see the web app.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is outdated. I have to merge manually, so that's probably one of the reasons why.

@Fattouche
Copy link
Owner

image
This is how it currently looks, we just see docker-compose output. I think it looks pretty good IMO.

@LeeZeitz
Copy link
Collaborator Author

Do we just want to leave it then? Doesn't matter to me.

Copy link
Owner

@Fattouche Fattouche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this for initialization, they don't need to know about starting and removing the containers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants