0.8.2 • Published 1 year ago

localservice v0.8.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Local Service

Install and manage services for your local development environments.

Pre-requisites

  • Docker
  • Node (14+)

Usage

[~] npm i localservice
[~] npx localservice -h
Usage: npx localservice [options] [command]

Supported Services:
  minio             MinIO object storage (s3 compatible)
  mysql             MySQL database
  postgres          PostgreSQL database

Options:
  -V, --version     output the version number
  -v, --verbose     output verbose info (e.g. raw Docker commands)
  -h, --help        display general help and usage info

Commands:
  info <service>    Display service info (env vars and container status)
  create <service>  Create service container
  stop <service>    Stop service container
  start <service>   Start service container
  push <service>    Push data to service
  remove <service>  Remove service container
  help <command>    Display help for specific <command>

Environment Variables

MinIO

KeyRequiredDefaultDescription
MINIO_CONTAINER_NAMEYnoneName used to identify MinIO Service Docker container
MINIO_EXPOSED_PORTY9000Local network port used to expose MinIO Service
MINIO_EXPOSED_WEB_PORTY9001Local network port used to expose MinIO Web tool
MINIO_IMAGEYnoneMinIO Server Docker image for your processor: https://hub.docker.com/r/minio/minio/tags
MINIO_PATHYnonePath to the preferred MinIO Service library file folder
MINIO_PUSH_FILESNnonePath to MinIO object storage file glob(s) to push (upload) during first time setup (separated by commas)
MINIO_ROOT_PASSWORDYnoneUsername to use when creating the MinIO Service root user
MINIO_ROOT_USERYnonePassword to use when creating the MinIO Service root user
MINIO_SERVICE_WAIT_INTERVALN1000Number of milliseconds to wait between MinIO service uptime test retries
MINIO_SERVICE_WAIT_MAX_RETRIESN30Maximum number of times to retry MinIO service uptime test before timing out

MySQL

KeyRequiredDefaultDescription
MYSQL_CHARSETNutf8mb4Character set used to create a new MySQL database
MYSQL_COLLATENutf8mb4_binCharacter collate used to create a new MySQL database
MYSQL_CONTAINER_NAMEYnoneName used to identify MySQL Service Docker container
MYSQL_DATABASEYnoneName used to identify MySQL Service database
MYSQL_EXPOSED_PORTY3306Local network port used to expose MySQL Service
MYSQL_IMAGEYnoneMySQL Server Docker image for your processor: https://hub.docker.com/r/mysql/mysql-server/tags
MYSQL_PATHY/var/lib/mysqlPath to the preferred MySQL Service library file folder
MYSQL_PUSH_FILESNnonePath to SQL file glob(s) to push (execute) during first time setup (separated by commas)
MYSQL_ROOT_PASSWORDYnonePassword to use when creating the MySQL Service database root user
MYSQL_SERVICE_WAIT_INTERVALN1000Number of milliseconds to wait between MySQL service uptime test retries
MYSQL_SERVICE_WAIT_MAX_RETRIESN30Maximum number of times to retry MySQL service uptime test before timing out

PostgreSQL

KeyRequiredDefaultDescription
POSTGRES_CONTAINER_NAMEYnoneName used to identify PostgreSQL Service Docker container
POSTGRES_DATABASEYnoneName used to identify PostgreSQL Service database
POSTGRES_EXPOSED_PORTY5432Local network port used to expose PostgreSQL Service
POSTGRES_IMAGEYnonePostgreSQL Server Docker image for your processor: https://hub.docker.com/_/postgres/tags
POSTGRES_PATHY/var/lib/postgresql/dataPath to the preferred PostgreSQL Service library file folder
POSTGRES_PUSH_FILESNnonePath to SQL file glob(s) to push (execute) during first time setup (separated by commas)
POSTGRES_SUPER_USERYnoneUsername to use when creating the PostgreSQL Service database SuperUser account
POSTGRES_SUPER_PASSWORDYnonePassword to use when creating the PostgreSQL Service database SuperUser account
POSTGRES_SERVICE_WAIT_INTERVALN1000Number of milliseconds to wait between PostgreSQL service uptime test retries
POSTGRES_SERVICE_WAIT_MAX_RETRIESN30Maximum number of times to retry PostgreSQL service uptime test before timing out

License

MIT License

0.8.1

1 year ago

0.8.0

1 year ago

0.8.2

1 year ago

0.5.0

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.7.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.4.2

2 years ago

0.3.0

2 years ago

0.1.0

2 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

6 years ago