Skip to content

Alpine Package Manager Tools

🛠️ Tools · ⬅ Top


This supports packageInstall --manager apk.

apkIsInstalled

Is this an Alpine system and is apk installed?

Usage

apkIsInstalled [ --help ]

Is this an Alpine system and is apk installed? Return Code: 0 - System is an alpine system and apk is installed Return Code: 1 - System is not an alpine system or apk is not installed

Arguments

  • --help - Optional. Flag. Display this help.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

alpineContainer

Open an Alpine container shell

Usage

alpineContainer [ --help ] [ --env-file envFile ] [ --env envVariable=envValue ] [ --platform platform ] [ extraArgs ]

Open an Alpine container shell Return Code: 1 - If already inside docker, or the environment file passed is not valid Return Code: 0 - Success Return Code: Any - docker run error code is returned if non-zero

Arguments

  • --help - Optional. Flag. Display this help.
  • --env-file envFile - Optional. File. One or more environment files which are suitable to load for docker; must be valid --env envVariable=- envValue - Optional. File. One or more environment variables to set.
  • --platform platform - Optional. String. Platform to run (arm vs intel).
  • extraArgs - Optional. Mixed. The first non-file argument to alpineContainer is passed directly through to docker run as arguments

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

isAlpine

Is this an Alpine system?

Usage

isAlpine [ --help ]

Is this an Alpine system?

Arguments

  • --help - Optional. Flag. Display this help.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error