aboutsummaryrefslogtreecommitdiffstats
path: root/docker/entrypoint.sh
Commit message (Collapse)AuthorAge
* Server re-build with latest AdonisJS framework & Typescript (#47)Libravatar Ricardo2023-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * chore: setup first basis structure * chore: ensure styling is loaded correctly * chore: comply to new routing syntax by replace . with / in routes/resource locations * chore: add login controller * chore: correctly use views with slash instead of dot * chore: working login + tests * chore: clean up tests * chore: add password-forgot endpoint and matching test * chore: add delete page test * chore: add logout test * chore: add reset-password route and tests * chore: remove obsolete comment * chore: add account-page and tests * chore: add data page & first step of the test * chore: add transfer/import data feature and tests * chore: add export and basic test * chore: add all static api routes with tests * Regenerate 'pnpm-lock.json' and fix bad merge conflict WIP: - Tests have been commented out since they dont work - Server doesn't start * easier dev and test runs * - remove --require-pragma from reformat-files so formatting works properly - run pnpm reformat-files over codebase - remove .json files from .eslintignore - add invalid.json file to .eslintignore - configure prettier properly in eslint config - add type jsdoc to prettier config - run adonis generate:manifest command to regenerate ace-manifest.json - specify volta in package.json - introduce typecheck npm script - remove unused .mjs extension from npm scripts - install missing type definition dependencies - add pnpm.allowedDeprecatedVersions to package.json - fix invalid extends in tsconfig.json causing TS issues throughout codebase - remove @ts-ignore throughout codebase which is not relevant anymore - enable some of the tsconfig options - remove outdated eslint-disable from codebase - change deprecated faker.company.companyName() to faker.company.name() - fix TS issues inside transfer.spec.ts * - update to latest node and pnpm versions - upgrade all non-major dependencies to latest - install missing @types/luxon dependency - add cuid to pnpm.allowedDeprecatedVersions - add esModuleInterop config option to tsconfig - migrate more deprecated faker methods to new ones - add more temporary ts-ignore to code * - update eslint config - remove trailingComma: all since default in prettier v3 - add typecheck command to prepare-code npm script - upgrade various dependencies to latest major version - update tsconfig to include only useful config options - disable some lint issues and fix others * - add test command to prepare-code - disable strictPropertyInitialization flag in tsconfig which creates issues with adonis models - update precommit hook to excute pnpm prepare-code - remove ts-ignore statements from all models * fix node and pnpm dependency update * add cross env (so that we can develop on windows) * add signup endpoint (TODO: JWT auth) * Add login endpoint * Add me and updateMe endpoints * Add service endpoint * refactor: change endpoints to use jwt * add recipes endpoint * add workspaces endpoint * fix web controllors for login and post import * Update node deps * Change auth middleware (for web) and exempt api from CSRF * Add import endpoint (franz import) * Fix export/import logic * Fix service and workspace data in user/data * Fix partial lint * chore: workaround lint issues * fix: migration naming had two . * Sync back node with recipes repo * Temporarily ignore typescript * Fix adonisrc to handle public folder static assets * Fix issue with production database * add Legacy Password Provider * Fix lint errors * Fix issue on login errors frontend * add Legacy Password Provider * Fix issue with customIcons * Fix issue with auth tokens * Update 'node' to '18.18.0' * make docker work * improve docker entrypoint (test api performance) * Add migration database script * NODE_ENV on recipes * prefer @ts-expect-error over @ts-ignore * small fixes * Update 'pnpm' to '8.7.6' * fix error catch * Automatically generate JWT Public and Private keys * Use custom Adonis5-jwt * Update code to use secret (old way, no breaking changes) * Normalize appKey * Trick to make JWT tokens on client work with new version * Fix error with new JWT logic * Change migration and how we store JWT * Fix 500 response code (needs to be 401) * Improve logic and fix bugs * Fix build and entrypoint logic * Catch error if appKey changes * Add newToken logic * Fix lint (ignore any errors) * Add build for PRs * pnpm reformat-files result * Fix some tests * Fix reset password not working (test failing) * Restore csrfTokens (disabled by accident) * Fix pnpm start command with .env * Disable failing tests on the transfer endpoint (TODO) * Add tests to PR build * Fix build * Remove unnecessary assertStatus * Add typecheck * hash password on UserFactory (fix build) * Add JWT_USE_PEM true by default (increase security) * fix name of github action --------- Co-authored-by: Vijay A <vraravam@users.noreply.github.com> Co-authored-by: Balaji Vijayakumar <kuttibalaji.v6@gmail.com> Co-authored-by: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
* Add dynamic version of pnpm and npm (#37)Libravatar André Oliveira2022-06-02
|
* Fix pnpm version on entrypoint.shv1.3.6Libravatar André Oliveira2022-06-01
|
* Add /app/recipes as a safe directory to git configv1.3.5Libravatar André Oliveira2022-05-13
| | | | This was due to a problem on the image of the main server
* Add update recipes to ferdium server based on github repo (#33)Libravatar André Oliveira2022-05-13
|
* build: Do not run husky for production builds, only for dev builds (#12)Libravatar Eric Reeves2022-04-30
| | | | | * Use 'is-ci' to determine if we are in a CI system Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
* Rebranded from 'ferdi' to 'ferdium' (#4)Libravatar Vijay Aravamudhan2022-04-24
|
* Fix `docker/entrypoint.sh`Libravatar Edgars2021-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | `docker/entrypoint.sh` was updated to fix errors that results in a container that runs on a locally built Ferdi Server image. Fixes that were made: - shebang was changed to `#!/bin/sh` as the Node Alpine image does not have `bash`, therefore the container cannot start because of the error "/usr/local/bin/docker-entrypoint.sh: exec: line 8: /entrypoint.sh: not found"; - `if` condition was updated to make it more portable so it works with non-Bash shells; - `su-exec` command was updated to remove the redundant `#!/bin/bash` from the end of the line as it was causing the error "Error: Cannot find module '/app/server.js#!/bin/bash'". Additional code optimization changes: - tabs were replaced with spaces; - optimizations to avoid code duplication: - new variable `key_file` was added to hold the path to the Ferdi app key file; - the function `print_app_key_message` was added to print the informational message about the app key.
* Fixed shebang and simplfied if statement.Libravatar thursday2021-09-17
|
* Update entrypoint.shLibravatar thursday2021-09-16
|
* Update entrypoint.shLibravatar thursday2021-08-23
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed error causing Ferdi-server's Adonis APP_KEY not to be read from FERDI_APP_KEY.txt on container restart, which was causing the following error: ``` RuntimeException: E_MISSING_APP_KEY: Make sure to define appKey inside config/app.js file before using Encryption provider > More details: https://err.sh/adonisjs/errors/E_MISSING_APP_KEY RuntimeException: E_MISSING_APP_KEY: Make sure to define appKey inside config/app.js file before using Encryption provider > More details: https://err.sh/adonisjs/errors/E_MISSING_APP_KEY at Function.missingAppKey (/app/node_modules/@adonisjs/generic-exceptions/src/RuntimeException.js:54:12) at new Encryption (/app/node_modules/@adonisjs/framework/src/Encryption/index.js:33:33) at Object.closure (/app/node_modules/@adonisjs/framework/providers/AppProvider.js:257:14) at Ioc._resolveBinding (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:231:68) at Ioc.make (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:807:19) at /app/node_modules/@adonisjs/fold/src/Ioc/index.js:318:19 at Array.map (<anonymous>) at Ioc._makeInstanceOf (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:317:44) at Ioc.make (/app/node_modules/@adonisjs/fold/src/Ioc/index.js:799:19) at AuthManager.getScheme (/app/node_modules/@adonisjs/auth/src/Auth/Manager.js:86:16) at Auth.authenticator (/app/node_modules/@adonisjs/auth/src/Auth/index.js:118:40) at new Auth (/app/node_modules/@adonisjs/auth/src/Auth/index.js:68:39) at Context.<anonymous> (/app/node_modules/@adonisjs/auth/providers/AuthProvider.js:151:14) at Context.wrappedCallback [as auth] (/app/node_modules/macroable/index.js:132:61) at Server._handleException (/app/node_modules/@adonisjs/framework/src/Server/index.js:253:63) at /app/node_modules/@adonisjs/framework/src/Server/index.js:441:14 ```
* Update entrypoint.shLibravatar thursday2021-07-21
|
* Update entrypoint.shLibravatar thursday2021-07-21
| | | Attempting to launch the server with su-exec in order to run it as a non-root user.
* Update docker/entrypoint.shLibravatar thursday2021-07-13
| | | Co-authored-by: Cromefire_ <cromefire_@outlook.com>
* Update docker/entrypoint.shLibravatar thursday2021-07-13
| | | Co-authored-by: Cromefire_ <cromefire_@outlook.com>
* Update entrypoint.shLibravatar thursday2021-07-13
| | | Updating APP_KEY location
* Update entrypoint.shLibravatar thursday2021-07-13
| | | Removing remaining references to cofig.txt
* Update comment to deprecate use of config.txt Libravatar thursday2021-07-09
| | | Explain the deprecated state of config.txt (and .env) and reference the readme and .env.example.
* Comment out code to generate .env fileLibravatar thursday2021-07-09
| | | Remove code to check for `config.txt` and generate `/app/.env` file, but keep it in comments for now as documentation.
* Fix all issues found on CR -> especially update README.md, remove creation ↵Libravatar Michal Kostewicz2021-02-09
| | | | of new config.txt, update ignore files.
* Add script which will use config.txt if existLibravatar Michal Kostewicz2021-02-07
|
* Revert line which choose DB folder using env. Move Dockerfile to root. ↵Libravatar Michal Kostewicz2021-02-07
| | | | Simplify export in entrypoint. Update README
* Add new configuration for docker with small script to generate or use ↵Libravatar Michal Kostewicz2021-02-07
APP_KEY. docker-compose was adjusted to use DATA_DIR.