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

Add pre/post command option #468

Closed
blackrosezy opened this issue Sep 3, 2014 · 4 comments
Closed

Add pre/post command option #468

blackrosezy opened this issue Sep 3, 2014 · 4 comments

Comments

@blackrosezy
Copy link

This is an idea to have options to run a command on fig up / fig stop so script have a chance to do some prep.
e.g.:

pre-command: cp /root/.ssh/id_rsa .
post-command: do some cleanup, send email notification, etc.

web:
  build: .
  command: python manage.py runserver 0.0.0.0:8000
  volumes:

What do you think?

Update:

The pre-command and post-command will be run on host machine, not container.

@dnephin
Copy link

dnephin commented Sep 3, 2014

See #74 and #429 for similar.

Why not just wrap the fig command in a bash script, or some other build tool? make, tox, rake, there are already many for every language

@blackrosezy
Copy link
Author

Yes, I did using makefile but I think It is nice if Fig can handle it out of box.

@pahaz
Copy link

pahaz commented Sep 27, 2014

No, run something on host machine - is bead idea.
Someone can use configs from antonymous users.

-1

@dnephin
Copy link

dnephin commented Sep 1, 2015

Thanks for the feature suggestion!
I think this is a duplicate of #1341

I think we're going to enable this with #1510 instead.

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

No branches or pull requests

3 participants