-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2526 from SmartManoj/add-environment-variables
Add environment variables documentation
- Loading branch information
Showing
7 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
@echo off | ||
IF NOT DEFINED LIMACTL (SET LIMACTL=limactl) | ||
IF NOT DEFINED LIMA_INSTANCE (SET LIMA_INSTANCE=default) | ||
%LIMACTL% shell %LIMA_INSTANCE% %* | ||
@echo off | ||
REM Environment Variables | ||
REM LIMA_INSTANCE: Specifies the name of the Lima instance to use. Default is "default". | ||
REM LIMACTL: Specifies the path to the limactl binary. Default is "limactl" in %PATH%. | ||
|
||
IF NOT DEFINED LIMACTL (SET LIMACTL=limactl) | ||
IF NOT DEFINED LIMA_INSTANCE (SET LIMA_INSTANCE=default) | ||
%LIMACTL% shell %LIMA_INSTANCE% %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Environment Variables | ||
weight: 6 | ||
--- | ||
|
||
## Environment Variables | ||
|
||
This page documents the environment variables used in Lima. | ||
|
||
### `LIMA_INSTANCE` | ||
|
||
- **Description**: Specifies the name of the Lima instance to use. | ||
- **Default**: `default` | ||
- **Usage**: | ||
```sh | ||
export LIMA_INSTANCE=my-instance | ||
lima uname -a | ||
``` | ||
|
||
### `LIMA_SHELL` | ||
|
||
- **Description**: Specifies the shell interpreter to use inside the Lima instance. | ||
- **Default**: User's shell configured inside the instance | ||
- **Usage**: | ||
```sh | ||
export LIMA_SHELL=/bin/bash | ||
lima | ||
``` | ||
|
||
### `LIMA_WORKDIR` | ||
|
||
- **Description**: Specifies the initial working directory inside the Lima instance. | ||
- **Default**: Current directory from the host | ||
- **Usage**: | ||
```sh | ||
export LIMA_WORKDIR=/home/user/project | ||
lima | ||
``` | ||
|
||
### `LIMACTL` | ||
|
||
- **Description**: Specifies the path to the `limactl` binary. | ||
- **Default**: `limactl` in `$PATH` | ||
- **Usage**: | ||
```sh | ||
export LIMACTL=/usr/local/bin/limactl | ||
lima | ||
``` | ||
|
||
### `LIMA_USERNET_RESOLVE_IP_ADDRESS_TIMEOUT` | ||
|
||
- **Description**: Specifies the timeout duration for resolving the IP address in usernet. | ||
- **Default**: 2 minutes | ||
- **Usage**: | ||
```sh | ||
export LIMA_USERNET_RESOLVE_IP_ADDRESS_TIMEOUT=5 | ||
``` |