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

Is it possible to provide psql command? #3

Closed
hank-cp opened this issue Nov 14, 2019 · 5 comments
Closed

Is it possible to provide psql command? #3

hank-cp opened this issue Nov 14, 2019 · 5 comments

Comments

@hank-cp
Copy link

hank-cp commented Nov 14, 2019

No description provided.

@Mystraht
Copy link

Mystraht commented Dec 4, 2019

+1, is it possible?
Hank-cp, did you resolve your issue?

@hank-cp
Copy link
Author

hank-cp commented Dec 5, 2019

@Mystraht looks like it's not very possible to achieve this goal. If you want to use psql to do some initialization jobs, take consideration of this PR #2.

@Mystraht
Copy link

Mystraht commented Dec 5, 2019

I resolved my issue by naming my container and using docker exec to use psql command.

on: push
name: Main
jobs:
  symfony:
    name: Symfony PHP 7.1
    runs-on: ubuntu-latest
    services:
      postgres:
        image: postgres:9.6
        options: --name=postgres
        ports:
          - 5432/tcp

Then:

docker exec -d postgres psql YOUR_ARGS

@gmassman
Copy link

gmassman commented May 6, 2020

Thank you @Mystraht! Been pulling out my hair since yesterday trying to figure this out.

@Mystraht
Copy link

Mystraht commented May 6, 2020

@gmassman glad it help someone :)

@hank-cp hank-cp closed this as completed May 7, 2020
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