Open app-generator opened 1 year ago
Hello @barreraalexander
Note: Please update your local copy. I just commit some (minor) changes.
Once the users check out the project, they should be able to start the product using Docker:
$ docker-compose up --build
The defaults related to this:
5085
5005
On fresh install, $ docker-compose up --build bumps errors.
Please take a look. Ty!
Here is the full log:
S D:\work\repo-free\fastapi-soft-ui-dashboard> docker-compose up --build Creating network "fastapi-soft-ui-dashboard_default" with the default driver Building appseed-app [+] Building 2.4s (10/10) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/python:3.9.7 2.1s => [internal] load build context 0.1s => => transferring context: 72.93kB 0.1s => [1/5] FROM docker.io/library/python:3.9.7@sha256:8771691756bbf5beff80d64fca8f5b12e018352ddd9e30d8cdfef8cc3717b0e6 0.0s => CACHED [2/5] WORKDIR /usr/src/app 0.0s => CACHED [3/5] COPY requirements.txt ./ 0.0s => CACHED [4/5] RUN pip install --no-cache-dir -r requirements.txt 0.0s => [5/5] COPY . . 0.1s => exporting to image 0.1s => => exporting layers 0.0s => => writing image sha256:8a1f71a0795f0b971678c6e391c532098e34b352fdf548a73dad637fb562ce30 0.0s => => naming to docker.io/library/fastapi-soft-ui-dashboard_appseed-app 0.0s Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them Creating appseed_app ... done Attaching to appseed_app appseed_app | INFO: Will watch for changes in these directories: ['/usr/src/app'] appseed_app | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) appseed_app | INFO: Started reloader process [1] using watchgod appseed_app | Process SpawnProcess-1: appseed_app | Traceback (most recent call last): appseed_app | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap appseed_app | self.run() appseed_app | File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run appseed_app | self._target(*self._args, **self._kwargs) appseed_app | File "/usr/local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started appseed_app | target(sockets=sockets) appseed_app | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run appseed_app | return asyncio.run(self.serve(sockets=sockets)) appseed_app | File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run appseed_app | return loop.run_until_complete(main) appseed_app | File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete appseed_app | return future.result() appseed_app | File "/usr/local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in serve appseed_app | config.load() appseed_app | File "/usr/local/lib/python3.9/site-packages/uvicorn/config.py", line 458, in load appseed_app | self.loaded_app = import_from_string(self.app) appseed_app | File "/usr/local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string appseed_app | module = importlib.import_module(module_str) appseed_app | File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module appseed_app | return _bootstrap._gcd_import(name[level:], package, level) appseed_app | File "<frozen importlib._bootstrap>", line 1030, in _gcd_import appseed_app | File "<frozen importlib._bootstrap>", line 1007, in _find_and_load appseed_app | File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked appseed_app | File "<frozen importlib._bootstrap>", line 680, in _load_unlocked appseed_app | File "<frozen importlib._bootstrap_external>", line 850, in exec_module appseed_app | File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed appseed_app | File "/usr/src/app/./src/app.py", line 4, in <module> appseed_app | from src.routers.auth.auth_routes import router as auth_router appseed_app | File "/usr/src/app/./src/routers/auth/auth_routes.py", line 6, in <module> appseed_app | import src.models as models appseed_app | File "/usr/src/app/./src/models.py", line 1, in <module> appseed_app | from src.helpers.database import Base appseed_app | File "/usr/src/app/./src/helpers/database.py", line 10, in <module> appseed_app | if (settings.debugging): appseed_app | AttributeError: 'Settings' object has no attribute 'debugging'
Ah I see, I'm going to check it out!
Hello @barreraalexander
Once the users check out the project, they should be able to start the product using Docker:
The defaults related to this:
5085
is the external port5005
is the inner APP port (not visible outside Docker)The current behavior
On fresh install,
$ docker-compose up --build
bumps errors.Please take a look. Ty!
Here is the full log: