AppFlowy-Cloud
AppFlowy-Cloud copied to clipboard
[Bug] Deploying problem, Can't build by docker compose
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:
- go into AppFlowy-Cloud dir
- copy deploy.env to .env, modified .env as needed
- run: docker compose up -d
- 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
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
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
We no longer build our own postgres image, and use the official pgvector image instead.