vmware / vmware/photon-docker-image

Unable to setup postgressql in Photon OS

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
51
Forks
20
Avg merge
1m
Merged PRs (30d)
2

Description

I have created a dockerfile with parent image as Photon OS. I created an image from it, and then a container from the image.
In the dockerfile, I am installing postgres as tdnf install postgresql -y which is working fine.

But the issue is that in the container, the postgres service is not running. Also, there is no 'postresql' folder under /etc and on searching I'm not able to find "pg_hba.conf" as well.

Is there anything else I need to perform in order to setup postgressql on Photon OS?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the reported Dockerfile and reviewing the tdnf install postgresql -y step in the Photon OS container. Inspect the installed package for the PostgreSQL service files and pg_hba.conf; done means reproducing the setup and documenting what is required for PostgreSQL to run with its configuration available.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, postgresql, shell
Domain
databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.