Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve usability of dockerode wrapper #486

Merged
merged 1 commit into from Apr 12, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Mar 22, 2024

  • Export getContainer and getContainerName functions This can be used to e.g. create the runOCC cypress command
  • Make the container name dependent on the current app to prevent issues when reusing containers
  • Allow to pass options for container creation to the startNextcloud function
    • forceRecreate to not reuse any container but force creating a new one
    • mounts to allow binding other directories to the container (e.g. server config)

@susnux susnux added 3. to review Waiting for reviews enhancement New feature request labels Mar 22, 2024
lib/docker.ts Outdated Show resolved Hide resolved
@susnux susnux force-pushed the feat/allow-mounts-and-force branch from 5072a4a to 0589bfd Compare April 10, 2024 20:22
* Export `getContainer` and `getContainerName` functions
  This can be used to e.g. create the `runOCC` cypress command
* Make the container name dependent on the current app to prevent issues when reusing containers
* Allow to pass options for container creation to the `startNextcloud` function
  * `forceRecreate` to not reuse any container but force creating a new one
  * `mounts` to allow binding other directories to the container (e.g. server config)
* Allow to expose a port

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the feat/allow-mounts-and-force branch from 0589bfd to 65f3597 Compare April 12, 2024 21:46
@susnux susnux merged commit 5a2136f into main Apr 12, 2024
10 checks passed
@susnux susnux deleted the feat/allow-mounts-and-force branch April 12, 2024 21:51
susnux added a commit that referenced this pull request Apr 16, 2024
Enhancements ✨
-----------------------
* feat: Improve usability of dockerode wrapper by @susnux in #486
  * Export getContainer and getContainerName functions This can be used to e.g. create the runOCC cypress command
  * Make the container name dependent on the current app to prevent issues when reusing containers
  * Allow to pass options for container creation to the startNextcloud function
    forceRecreate to not reuse any container but force creating a new one
    mounts to allow binding other directories to the container (e.g. server config)

Bugfixes 🐛
--------------
* fix: Update npm version to current LTS and update dev dependencies by @susnux in #509

Changed
-------
* Dependency updates

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants