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

Does support docker-entrypoint-initdb.d in MysqlCluster CRD? #712

Open
zengzhengrong opened this issue Oct 15, 2022 · 1 comment
Open
Labels
question Further information is requested

Comments

@zengzhengrong
Copy link

I want to init my cluster db like this:

spec:
  initContainers:
    - name: wait-for-data
      image: alpine:3.9
      command:
        - "wget"
        - "--no-check-certificate"
        - "https://raw.githubusercontent.com/rnmulchandani/postgres-sample-data/master/employee_sample_data.sql"
        - "-O"
        - "/docker-entrypoint-initdb.d/ employee_sample_data.sql"
      volumeMounts:
        - mountPath: /docker-entrypoint-initdb.d
          name: sample-data
  containers:
    - name: postgres-with-data
      image: postgres
      env:
        - name: POSTGRES_HOST
          value: postgres
        - name: POSTGRES_PORT
          value: "5432"
        - name: POSTGRES_PASSWORD
          value: "a"
      volumeMounts:
        - mountPath: /docker-entrypoint-initdb.d
          name: sample-data
  volumes:
    - emptyDir: {}
      name: sample-data
@zengzhengrong zengzhengrong added the question Further information is requested label Oct 15, 2022
@acekingke
Copy link
Contributor

it doesn't support now, We'll consider your advices.

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

No branches or pull requests

2 participants