tiangolo / full-stack-fastapi-couchbase

Full stack, modern web application generator. Using FastAPI, Couchbase as database, Docker, automatic HTTPS and more.
MIT License
441 stars 84 forks source link

Minimum swarm requirements? #17

Closed Wytamma closed 4 years ago

Wytamma commented 5 years ago

What are the minimum requirements for deploying this project? dockerswarm.rocks says: You can set it up, deploy your applications and do everything on a $5 USD/month server. However, I think I'm running out of memory while building the frontend on a 1GB VPS (works when I resize to 2GB). I'm building in a gitlab runner in the Manager Node.

Here are the runner logs:

...
 ---> 65890b36a2c2
Step 9/13 : RUN npm run build
 ---> Running in ca64bfe078cd

> frontend@0.1.0 build /app
> vue-cli-service build

-  Building for production...
Starting type checking and linting service...
Using 1 worker with 2048MB memory limit
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! frontend@0.1.0 build: `vue-cli-service build`
npm ERR! Exit status 137
npm ERR! 
npm ERR! Failed at the frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-07-11T13_35_19_185Z-debug.log
Service 'frontend' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 137
tiangolo commented 5 years ago

Have in mind that building requirements are different than deployment requirements.

Couchbase is quite needy though 😰. It might require more than 1 GB for itself alone.

github-actions[bot] commented 4 years ago

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.