ebalo55 / OpenForum

OpenForum headless event manager administrative panel
https://openforum-docs.override.sh/
Apache License 2.0
2 stars 0 forks source link

Unable to create docker image #11

Closed N008x closed 1 year ago

N008x commented 1 year ago

Hello Team, I am trying to create docker image in my VM but unable to create because of few errors. Please have a look into and help me out to resolve this.

Following descriptive error and installation.

└─$ sudo docker build -t openforum .
Sending build context to Docker daemon  4.275MB
Step 1/38 : ARG PHP_VERSION=8.2
Step 2/38 : ARG NODE_VERSION=18
Step 3/38 : FROM php:8.2.3-fpm as base
 ---> 4e879a8dd1fd
Step 4/38 : ARG PHP_VERSION
 ---> Using cache
 ---> 3e66247c9521
Step 5/38 : LABEL fly_launch_runtime="laravel"
 ---> Using cache
 ---> 7abf6c3f4eff
Step 6/38 : ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
Downloading [==================================================>]  157.8kB/157.8kB

 ---> Using cache
 ---> 23d1ea1d3b18
Step 7/38 : RUN chmod +x /usr/local/bin/install-php-extensions
 ---> Using cache
 ---> ae27ff8dd24e
Step 8/38 : RUN apt-get update && apt-get install -y git curl zip unzip rsync ca-certificates vim htop cron nginx
 ---> Using cache
 ---> dc0875637298
Step 9/38 : RUN install-php-extensions pgsql swoole xml bcmath mbstring zip @composer
 ---> Using cache
 ---> 4de6dfc743dd
Step 10/38 : RUN apt-get clean
 ---> Using cache
 ---> cc4ad5544fb1
Step 11/38 : RUN rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 2caf2a744ef3
Step 12/38 : WORKDIR /var/www/html
 ---> Using cache
 ---> 2bbf26273e43
Step 13/38 : COPY . /var/www/html
 ---> Using cache
 ---> 3d661789b31e
Step 14/38 : RUN composer install --optimize-autoloader --no-dev
 ---> Using cache
 ---> a182f3fa8323
Step 15/38 : RUN mkdir -p storage/logs
 ---> Using cache
 ---> dacb1dffb045
Step 16/38 : RUN php artisan optimize:clear
 ---> Using cache
 ---> 7e6f1d3fafd4
Step 17/38 : RUN adduser --group webgroup
 ---> Using cache
 ---> e2bd37fc1b10
Step 18/38 : RUN useradd -G webgroup webuser
 ---> Using cache
 ---> 1ec925bcbb42
Step 19/38 : RUN chown -R webuser:webgroup /var/www/html
 ---> Using cache
 ---> c73c9d42ccf5
Step 20/38 : RUN sed -i 's/protected \$proxies/protected \$proxies = "*"/g' app/Http/Middleware/TrustProxies.php
 ---> Using cache
 ---> c43f1685e061
Step 21/38 : RUN echo "MAILTO=\"\"\n* * * * * webuser /usr/bin/php /var/www/html/artisan schedule:run" > /etc/cron.d/laravel
 ---> Using cache
 ---> 57327a8acb50
Step 22/38 : RUN rm -rf /etc/cont-init.d/*
 ---> Using cache
 ---> 58189edc0f6d
Step 23/38 : RUN cp .fly/nginx-websockets.conf /etc/nginx/conf.d/websockets.conf
 ---> Using cache
 ---> 8aa9f5b1fee4
Step 24/38 : RUN cp .fly/entrypoint.sh /entrypoint
 ---> Using cache
 ---> 2c4719f34203
Step 25/38 : RUN chmod +x /entrypoint
 ---> Using cache
 ---> 9edcc8e055e1
Step 26/38 : RUN if grep -Fq "laravel/octane" /var/www/html/composer.json; then         rm -rf /etc/services.d/php-fpm;         if grep -Fq "spiral/roadrunner" /var/www/html/composer.json; then             mv .fly/octane-rr /etc/services.d/octane;             if [ -f ./vendor/bin/rr ]; then ./vendor/bin/rr get-binary; fi;             rm -f .rr.yaml;         else             mv .fly/octane-swoole /etc/services.d/octane;         fi;         cp .fly/nginx-default-swoole /etc/nginx/sites-available/default;     else         cp .fly/nginx-default /etc/nginx/sites-available/default;     fi
 ---> Using cache
 ---> e8a4e0683fd7
Step 27/38 : FROM node:${NODE_VERSION} as node_modules_go_brrr
 ---> 37b4077cbd8a
Step 28/38 : RUN mkdir /app
 ---> Using cache
 ---> 92d022b24ba6
Step 29/38 : RUN mkdir -p  /app
 ---> Using cache
 ---> e76ea4a2f01c
Step 30/38 : WORKDIR /app
 ---> Using cache
 ---> 601e6b2deaae
Step 31/38 : COPY . .
 ---> Using cache
 ---> 6daef105d3d9
Step 32/38 : COPY --from=base /var/www/html/vendor /app/vendor
 ---> Using cache
 ---> a40ba4054611
Step 33/38 : RUN if [ -f "vite.config.js" ]; then         ASSET_CMD="build";     else         ASSET_CMD="production";     fi;     if [ -f "yarn.lock" ]; then         yarn install --frozen-lockfile;         yarn $ASSET_CMD;     elif [ -f "package-lock.json" ]; then         npm ci --no-audit;         npm run $ASSET_CMD;     else         npm install;         npm run $ASSET_CMD;     fi;
 ---> Using cache
 ---> 9a3dd4c0dd56
Step 34/38 : FROM base
 ---> e8a4e0683fd7
Step 35/38 : COPY --from=node_modules_go_brrr /app/public /var/www/html/public-npm
 ---> Using cache
 ---> 85c69b8aeaba
Step 36/38 : RUN rsync -ar /var/www/html/public-npm/ /var/www/html/public/ RUN rm -rf /var/www/html/public-npm RUN chown -R webuser:webgroup /var/www/html/public
 ---> Running in df63197ba4d7
Unknown filter rule: `/var/www/html/public-npm'
rsync error: syntax or usage error (code 1) at exclude.c(919) [client=3.2.3]                                                                                 
The command '/bin/sh -c rsync -ar /var/www/html/public-npm/ /var/www/html/public/ RUN rm -rf /var/www/html/public-npm RUN chown -R webuser:webgroup /var/www/html/public' returned a non-zero code: 1
ebalo55 commented 1 year ago

Issue acknowledged and fixed in v1.0.2

N008x commented 1 year ago

@ebalo55 I would like to reopen the issue because its still giving error

┌──(kali㉿kali)-[~/Downloads/OpenForum]
└─$ sudo docker build -t openforum .
Sending build context to Docker daemon  4.275MB
Step 1/38 : FROM php:8.2.3-fpm as base
 ---> 4e879a8dd1fd
Step 2/38 : ARG PHP_VERSION
 ---> Using cache
 ---> f148d78c3b9e
Step 3/38 : LABEL fly_launch_runtime="laravel"
 ---> Using cache
 ---> 25cd889989fb
Step 4/38 : ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
Downloading [==================================================>]  157.8kB/157.8kB

 ---> Using cache
 ---> 086676a49b8f
Step 5/38 : RUN chmod +x /usr/local/bin/install-php-extensions
 ---> Using cache
 ---> 36ed909be152
Step 6/38 : RUN apt-get update && apt-get install -y git curl zip unzip rsync ca-certificates vim htop cron nginx
 ---> Using cache
 ---> 10abc6a5fe89
Step 7/38 : RUN install-php-extensions pgsql swoole xml bcmath mbstring zip @composer
 ---> Using cache
 ---> 0f6dbb3de230
Step 8/38 : RUN apt-get clean
 ---> Using cache
 ---> 44c3d3235358
Step 9/38 : RUN rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 443b537bc4cb
Step 10/38 : WORKDIR /var/www/html
 ---> Using cache
 ---> aced70cbaeae
Step 11/38 : COPY . /var/www/html
 ---> Using cache
 ---> 3e280bd84b25
Step 12/38 : RUN composer install --optimize-autoloader --no-dev
 ---> Using cache
 ---> 8d9ac1ad6ec6
Step 13/38 : RUN mkdir -p storage/logs
 ---> Using cache
 ---> 942f00590f7b
Step 14/38 : RUN php artisan optimize:clear
 ---> Using cache
 ---> 6696e888e5c8
Step 15/38 : RUN adduser --group webgroup
 ---> Using cache
 ---> 224f867533f4
Step 16/38 : RUN useradd -G webgroup webuser
 ---> Using cache
 ---> 94c0705ba1b1
Step 17/38 : RUN chown -R webuser:webgroup /var/www/html
 ---> Using cache
 ---> ac8a970ece21
Step 18/38 : RUN sed -i 's/protected \$proxies/protected \$proxies = "*"/g' app/Http/Middleware/TrustProxies.php
 ---> Using cache
 ---> 547f3177e3f2
Step 19/38 : RUN echo "MAILTO=\"\"\n* * * * * webuser /usr/bin/php /var/www/html/artisan schedule:run" > /etc/cron.d/laravel
 ---> Using cache
 ---> 8c24332dc90a
Step 20/38 : RUN rm -rf /etc/cont-init.d/*
 ---> Using cache
 ---> 2eeba129e2bf
Step 21/38 : RUN cp .fly/nginx-websockets.conf /etc/nginx/conf.d/websockets.conf
 ---> Using cache
 ---> b451be887d7f
Step 22/38 : RUN cp .fly/entrypoint.sh /entrypoint
 ---> Using cache
 ---> a39a27b9ece4
Step 23/38 : RUN chmod +x /entrypoint
 ---> Using cache
 ---> f0c6a3aa982c
Step 24/38 : RUN if grep -Fq "laravel/octane" /var/www/html/composer.json; then         rm -rf /etc/services.d/php-fpm;         if grep -Fq "spiral/roadrunner" /var/www/html/composer.json; then             mv .fly/octane-rr /etc/services.d/octane;             if [ -f ./vendor/bin/rr ]; then ./vendor/bin/rr get-binary; fi;             rm -f .rr.yaml;         else             mv .fly/octane-swoole /etc/services.d/octane;         fi;         cp .fly/nginx-default-swoole /etc/nginx/sites-available/default;     else         cp .fly/nginx-default /etc/nginx/sites-available/default;     fi
 ---> Using cache
 ---> e1a91050cc13
Step 25/38 : FROM node:lts as node_modules_go_brrr
 ---> 37b4077cbd8a
Step 26/38 : RUN mkdir /app
 ---> Using cache
 ---> 7a2257b5619c
Step 27/38 : RUN mkdir -p  /app
 ---> Using cache
 ---> c90b5f50a218
Step 28/38 : WORKDIR /app
 ---> Using cache
 ---> 60c31841de69
Step 29/38 : COPY . .
 ---> Using cache
 ---> 32fa02565e26
Step 30/38 : COPY --from=base /var/www/html/vendor /app/vendor
 ---> Using cache
 ---> 824e055a1986
Step 31/38 : RUN if [ -f "vite.config.js" ]; then         ASSET_CMD="build";     else         ASSET_CMD="production";     fi;     if [ -f "yarn.lock" ]; then         yarn install --frozen-lockfile;         yarn $ASSET_CMD;     elif [ -f "package-lock.json" ]; then         npm ci --no-audit;         npm run $ASSET_CMD;     else         npm install;         npm run $ASSET_CMD;     fi;
 ---> Using cache
 ---> 7abc9e55f5db
Step 32/38 : FROM base
 ---> e1a91050cc13
Step 33/38 : COPY --from=node_modules_go_brrr /app/public /var/www/html/public-npm
 ---> Using cache
 ---> 322d7e356a25
Step 34/38 : RUN rsync -ar /var/www/html/public-npm/ /var/www/html/public/
 ---> Using cache
 ---> 7a02a5e5e6cd
Step 35/38 : RUN rm -rf /var/www/html/public-npm
 ---> Using cache
 ---> a04fea3c1ff5
Step 36/38 : RUN chown -R webuser:webgroup /var/www/html/public
 ---> Using cache
 ---> 8dc82daf3e4f
Step 37/38 : EXPOSE 8080
 ---> Using cache
 ---> a72fb1d4a3bf
Step 38/38 : ENTRYPOINT ["/entrypoint"]
 ---> Using cache
 ---> b9bb488120b6
Successfully built b9bb488120b6
Successfully tagged openforum:latest

┌──(kali㉿kali)-[~/Downloads/OpenForum]
└─$ sudo docker run -it openforum   
/var/www/html/.fly/scripts/caches.sh: line 3: /usr/bin/php: No such file or directory
/var/www/html/.fly/scripts/caches.sh: line 4: /usr/bin/php: No such file or directory
/var/www/html/.fly/scripts/caches.sh: line 5: /usr/bin/php: No such file or directory
/entrypoint: 14: exec: /init: not found

┌──(kali㉿kali)-[~/Downloads/OpenForum]
└─$ sudo cat /var/www/html/.fly/scripts/caches.sh
#!/usr/bin/env bash

/usr/bin/php /var/www/html/artisan config:cache --no-ansi -q
/usr/bin/php /var/www/html/artisan route:cache --no-ansi -q
/usr/bin/php /var/www/html/artisan view:cache --no-ansi -q

┌──(kali㉿kali)-[~/Downloads/OpenForum]
└─$ 
ebalo55 commented 1 year ago

Startup scripts have been updated to fix the reported issue, check out release v1.0.4. For the full installation instructions refer to the Official Installation Steps

N008x commented 1 year ago

I would like to have your attention here. I might missing something here.

Docker Build Successfully.

┌``` ──(kali㉿kali)-[~/Downloads/OpenForum-1.0.4] └─$ sudo docker build -t open-forum --build-arg WEB_USER_PSW="root" --build-arg DB_HOST="127.0.0.1" . [sudo] password for kali: Sending build context to Docker daemon 3.306MB Step 1/41 : FROM php:8-fpm-alpine3.17 as base ---> b5e0829f1838 Step 2/41 : ARG WEB_USER_PSW ---> Using cache ---> 1fcdabc588bb Step 3/41 : ARG DB_HOST ---> Using cache ---> fd5ffcea4abe Step 4/41 : ARG IS_DEV="false" ---> Using cache ---> 270f223ad567 Step 5/41 : ENV DB_HOST=$DB_HOST ---> Using cache ---> 7bbebc65c8de Step 6/41 : ENV IS_DEV=$IS_DEV ---> Using cache ---> 1e93770ecf30 Step 7/41 : ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ Downloading [==================================================>] 157.8kB/157.8kB

---> Using cache ---> 9f87e60184e4 Step 8/41 : RUN chmod +x /usr/local/bin/install-php-extensions ---> Using cache ---> d1201f6a7515 Step 9/41 : RUN apk update && apk upgrade && apk add curl zip unzip nginx rsync git ---> Using cache ---> 6f1107a5c245 Step 10/41 : RUN install-php-extensions pgsql pdo_pgsql swoole xml bcmath mbstring zip redis curl @composer ---> Using cache ---> 52ca0403472c Step 11/41 : RUN echo "">/etc/apk/repositories ---> Using cache ---> 3c2cf5cb2841 Step 12/41 : WORKDIR /var/www/html ---> Using cache ---> 5d53e509f930 Step 13/41 : COPY . /var/www/html ---> Using cache ---> 367731ecb323 Step 14/41 : RUN if [[ "$IS_DEV" == "true" ]]; then composer install --optimize-autoloader; else composer install --optimize-autoloader --no-dev; fi ---> Using cache ---> b5c095fbe6df Step 15/41 : RUN mkdir -p storage/logs ---> Using cache ---> 704fc1ed38b6 Step 16/41 : RUN touch storage/logs/laravel.log ---> Using cache ---> e243fd4de201 Step 17/41 : RUN php artisan optimize:clear ---> Using cache ---> a205cd8192ba Step 18/41 : RUN addgroup webgroup ---> Using cache ---> bb99a8194b76 Step 19/41 : RUN echo -e "${WEB_USER_PSW}\n${WEB_USER_PSW}\n" | adduser -G webgroup webuser ---> Using cache ---> c2a43b8ffe63 Step 20/41 : RUN cp .fly/entrypoint.sh /entrypoint ---> Using cache ---> c703e308ec59 Step 21/41 : RUN chmod +x /entrypoint ---> Using cache ---> dd6c5e329db4 Step 22/41 : RUN mkdir -p /etc/nginx/sites-available/ ---> Using cache ---> 21261865b5b9 Step 23/41 : RUN cp .fly/nginx-default-swoole /etc/nginx/http.d/default.conf; ---> Using cache ---> 9878d513ebd3 Step 24/41 : RUN mv .env.example .env ---> Using cache ---> 6341b9868d57 Step 25/41 : RUN php artisan key:generate ---> Using cache ---> 062612b410d4 Step 26/41 : FROM node:lts-alpine3.17 as node_modules ---> f520ad35ba68 Step 27/41 : RUN mkdir /app ---> Using cache ---> 455c442e4535 Step 28/41 : RUN mkdir -p /app ---> Using cache ---> 2d8d73707e79 Step 29/41 : WORKDIR /app ---> Using cache ---> 877192957f5d Step 30/41 : COPY . . ---> Using cache ---> f9e0f876b575 Step 31/41 : COPY --from=base /var/www/html/vendor /app/vendor ---> Using cache ---> 0f4f91af7d5f Step 32/41 : RUN npm ci --no-audit ---> Using cache ---> 147f49af0286 Step 33/41 : RUN npm run build; ---> Using cache ---> 65f09672ec5b Step 34/41 : FROM base as final_image ---> 062612b410d4 Step 35/41 : COPY --from=node_modules /app/public /var/www/html/public-npm ---> Using cache ---> 18325a9c7643 Step 36/41 : RUN rsync -ar /var/www/html/public-npm/ /var/www/html/public/ ---> Using cache ---> 0792fe12f0b6 Step 37/41 : RUN apk del rsync git ---> Using cache ---> 7f0a5ede6274 Step 38/41 : RUN rm -rf /var/www/html/public-npm ---> Using cache ---> bb3e9bdece7d Step 39/41 : RUN chown -R webuser:webgroup /var/www/html ---> Using cache ---> 4c66ff5ce904 Step 40/41 : EXPOSE 8080 ---> Using cache ---> 57a961eceb55 Step 41/41 : ENTRYPOINT ["/entrypoint"] ---> Using cache ---> 5c78398ebc57 Successfully built 5c78398ebc57 Successfully tagged open-forum:latest

┌──(kali㉿kali)-[~/Downloads/OpenForum-1.0.4]


While running docker image show few error warnings in code.

┌──(kali㉿kali)-[~/Downloads/OpenForum-1.0.4] └─$ sudo docker run open-forum -it
[+] Running user scripts [-] Migrations not setup, skipping

In ConfigCacheCommand.php line 73:

Your configuration files are not serializable.

In config.php line 915:

Call to undefined method League\CommonMark\Extension\Embed\Bridge\Oscaroter
oEmbedAdapter::__set_state()

[-] Laravel queue not setup, skipping [-] Laravel scheduler not setup, skipping [-] Webserver not setup, skipping [+] User script execution completed [+] Spawning cron crond: crond (busybox 1.35.0) started, log level 2 crond: user:root entry:/15 run-parts /etc/periodic/15min 100000000000000100000000000000100000000000000100000000000000 111111111111111111111111 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 run-parts /etc/periodic/hourly 100000000000000000000000000000000000000000000000000000000000 111111111111111111111111 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 2 run-parts /etc/periodic/daily 100000000000000000000000000000000000000000000000000000000000 001000000000000000000000 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 3 6 run-parts /etc/periodic/weekly 100000000000000000000000000000000000000000000000000000000000 000100000000000000000000 11111111111111111111111111111111 111111111111 0000001 crond: user:root entry:0 5 1 run-parts /etc/periodic/monthly 100000000000000000000000000000000000000000000000000000000000 000001000000000000000000 01000000000000000000000000000000 111111111111 1111111 crond: user:root entry:/15 run-parts /etc/periodic/15min 100000000000000100000000000000100000000000000100000000000000 111111111111111111111111 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 run-parts /etc/periodic/hourly 100000000000000000000000000000000000000000000000000000000000 111111111111111111111111 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 2 run-parts /etc/periodic/daily 100000000000000000000000000000000000000000000000000000000000 001000000000000000000000 11111111111111111111111111111111 111111111111 1111111 crond: user:root entry:0 3 6 run-parts /etc/periodic/weekly 100000000000000000000000000000000000000000000000000000000000 000100000000000000000000 11111111111111111111111111111111 111111111111 0000001 crond: user:root entry:0 5 1 run-parts /etc/periodic/monthly 100000000000000000000000000000000000000000000000000000000000 000001000000000000000000 01000000000000000000000000000000 111111111111 1111111 crond: wakeup dt=32 crond: file root: crond: line run-parts /etc/periodic/15min crond: line run-parts /etc/periodic/hourly crond: line run-parts /etc/periodic/daily crond: line run-parts /etc/periodic/weekly crond: line run-parts /etc/periodic/monthly


Now After running docker it should be accessible on 8080/9000 but it is not accessible. give it a look and please let me know where i am going wrong.

┌──(kali㉿kali)-[~] └─$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 46221f193b35 open-forum "/entrypoint -it" 5 minutes ago Up 5 minutes 8080/tcp, 9000/tcp great_elion 2466ebd0ba27 open-forum "/entrypoint -it -p …" 10 minutes ago Up 10 minutes 8080/tcp, 9000/tcp peaceful_sutherland ab79e1a651b7 open-forum "/entrypoint -it" 22 minutes ago Up 22 minutes 8080/tcp, 9000/tcp zen_lamport

┌──(kali㉿kali)-[~] └─$ curl http://localhost:8080 curl: (7) Failed to connect to localhost port 8080 after 0 ms: Couldn't connect to server

┌──(kali㉿kali)-[~] └─$ curl http://localhost:9000 curl: (7) Failed to connect to localhost port 9000 after 0 ms: Couldn't connect to server

┌──(kali㉿kali)-[~] └─$

ebalo55 commented 1 year ago

Please check the Official installation instruction as you've not set the environment variable for the webserver startup (aka RUN_WEBSERVICE="true")

N008x commented 1 year ago

This time I run the webservice but still not access to on http://0.0.0.0:8000 As POC I also attached the curl out put

sudo docker run -it -e RUN_WEBSERVICE="true" open-forum

[+] Running user scripts
[-] Migrations not setup, skipping
In ConfigCacheCommand.php line 73:                                             
Your configuration files are not serializable.                                                 
In config.php line 915:
Call to undefined method League\CommonMark\Extension\Embed\Bridge\OscaroteroEmbedAdapter::__set_state()  
[-] Laravel queue not setup, skipping
[-] Laravel scheduler not setup, skipping
[+] Starting webserver
[+] User script execution completed
[+] Spawning cron
crond: crond (busybox 1.35.0) started, log level 2
crond: user:root entry:*/15 *   *   *   *   run-parts /etc/periodic/15min
100000000000000100000000000000100000000000000100000000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0    *   *   *   *   run-parts /etc/periodic/hourly
100000000000000000000000000000000000000000000000000000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0    2   *   *   *   run-parts /etc/periodic/daily
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: user:root entry:0    3   *   *   6   run-parts /etc/periodic/weekly
100000000000000000000000000000000000000000000000000000000000
000100000000000000000000
1111111111111111111111111111111
111111111111
0000001
crond: user:root entry:0    5   1   *   *   run-parts /etc/periodic/monthly
100000000000000000000000000000000000000000000000000000000000
00000100000000000000000
01000000000000000000000000000000
111111111111
1111111
INFO  Server running…
Local: http://0.0.0.0:8000 
Press Ctrl+C to stop the server

I thought I should also run docker-compose up so i also did that but same thing happening

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ sudo docker-compose up 
Starting openforum-104_postgres_1 ... done
Attaching to openforum-104_postgres_1
postgres_1  | 
postgres_1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres_1  | 
postgres_1  | 2023-03-22 06:34:58.612 UTC [1] LOG:  starting PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
postgres_1  | 2023-03-22 06:34:58.612 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres_1  | 2023-03-22 06:34:58.612 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres_1  | 2023-03-22 06:34:58.616 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres_1  | 2023-03-22 06:34:58.623 UTC [29] LOG:  database system was shut down at 2023-03-22 06:34:55 UTC
postgres_1  | 2023-03-22 06:34:58.628 UTC [1] LOG:  database system is ready to accept connections
Postgres_1  | 2023-03-22 06:39:58.703 UTC [27] LOG:  checkpoint starting: time
postgres_1  | 2023-03-22 06:39:58.719 UTC [27] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.005 s, sync=0.002 s, total=0.017 s; sync files=2, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB

Curl Output with each possible port and host.

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ sudo docker ps
[sudo] password for vboxuser: 
CONTAINER ID   IMAGE             COMMAND                  CREATED          STATUS          PORTS                                       NAMES
137fbeb4c8b7   postgres:latest   "docker-entrypoint.s…"   6 minutes ago    Up 2 minutes    0.0.0.0:5432->5432/tcp, :::5432->5432/tcp   openforum-104_postgres_1
77233c0f7c3f   open-forum        "/entrypoint -it"        22 minutes ago   Up 22 minutes   8080/tcp, 9000/tcp                          relaxed_easley
vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://localhost:8000
curl: (7) Failed to connect to localhost port 8000 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://localhost:8080
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://0.0.0.0:8000

curl: (7) Failed to connect to 0.0.0.0 port 8000 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://0.0.0.0:9000

curl: (7) Failed to connect to 0.0.0.0 port 9000 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://127.0.0.1:9000

curl: (7) Failed to connect to 127.0.0.1 port 9000 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://127.0.0.1:8000

curl: (7) Failed to connect to 127.0.0.1 port 8000 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ curl http://127.0.0.1:8080

curl: (7) Failed to connect to 127.0.0.1 port 8080 after 0 ms: Connection refused

vboxuser@Ubuntu:~/Downloads/OpenForum-1.0.4$ 
ebalo55 commented 1 year ago

Please run the whole installation command with all the required environment variables, migration included as it is the first run