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

[Bug] Deploying problem, Can't build by docker compose #614

Open
mickey3721 opened this issue Jun 12, 2024 · 1 comment
Open

[Bug] Deploying problem, Can't build by docker compose #614

mickey3721 opened this issue Jun 12, 2024 · 1 comment

Comments

@mickey3721
Copy link

mickey3721 commented Jun 12, 2024

Describe the bug
When i use docker compose up to redeploy the server, it stuck in building process

To Reproduce
Steps to reproduce the behavior:

  1. go into AppFlowy-Cloud dir
  2. copy deploy.env to .env, modified .env as needed
  3. run: docker compose up -d
  4. Message showed, I need to choose option,
    but actually can't input anything at all, the process stuck on it,
    it seems some version conflict problem,
    also I try to deploy the server by remove all containers and images, the same problem happens

#5 389.9 Configuring postgresql-common
#5 389.9 -----------------------------
#5 389.9
#5 389.9 createcluster.conf: A new version (/tmp/postgresql-common.eLmlQd) of
#5 389.9 configuration file /etc/postgresql-common/createcluster.conf is available, but
#5 389.9 the version installed currently has been locally modified.
#5 389.9
#5 389.9 1. install the package maintainer's version
#5 389.9 2. keep the local version currently installed
#5 389.9 3. show the differences between the versions
#5 389.9 4. show a side-by-side difference between the versions
#5 389.9 5. start a new shell to examine the situation
#5 389.9 What do you want to do about modified configuration file createcluster.conf?

Expected behavior
How to solve the problem? any bug in version conflict of redeployment the server?

Screenshots
image

Desktop (please complete the following information):

  • OS: [linux mint latest]
  • Browser [edge/firefox]
  • Version [latest]

Additional context

  • Environment [linux mint latest / selfhost / deploying by docker compose]
  • more deploying information in attachment text file
    log.txt
@mickey3721
Copy link
Author

For dialog is missing in the built container, install dialog to the container will solve the problem.
Add lines to ~/AppFlowy-Cloud/postgres/postgres.Dockerfile

postgres.Dockerfile after modified:

This is installing the pgvector extension for postgres

FROM postgres:latest

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&
apt-get -y install sudo dialog apt-utils
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

RUN apt-get update && apt-get install -y
build-essential
git
postgresql-server-dev-all
&& rm -rf /var/lib/apt/lists/*

WORKDIR /tmp
RUN git clone https://github.com/pgvector/pgvector.git

WORKDIR /tmp/pgvector
RUN make
RUN make install

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

1 participant