forked from LaconicNetwork/kompose
Added more installation instructions (#1468)
* Added Docker image-building instructions in the docs * Added Nix and NixOS installation instructions
This commit is contained in:
@@ -105,3 +105,32 @@ and install the package:
|
||||
sudo zypper refresh
|
||||
sudo zypper install kompose
|
||||
```
|
||||
|
||||
#### NixOS
|
||||
|
||||
To install from [Nixpkgs](https://github.com/NixOS/nixpkgs), use [nix-env](https://nixos.org/manual/nix/stable/command-ref/nix-env.html).
|
||||
|
||||
```bash
|
||||
nix-env --install -A nixpkgs.kompose
|
||||
```
|
||||
|
||||
To run `kompose` without installing it, use [nix-shell](https://nixos.org/manual/nix/stable/command-ref/nix-shell.html).
|
||||
|
||||
```bash
|
||||
nix-shell -p kompose --run "kompose convert"
|
||||
```
|
||||
|
||||
|
||||
#### Docker
|
||||
|
||||
You can build an image from the offical repo for [Docker](https://docs.docker.com/engine/reference/commandline/build/) or [Podman](https://docs.podman.io/en/latest/markdown/podman-build.1.html):
|
||||
|
||||
```bash
|
||||
docker build -t kompose https://github.com/kubernetes/kompose.git
|
||||
```
|
||||
|
||||
To run the built image against the current directory, run the following command:
|
||||
|
||||
```bash
|
||||
docker run --rm -it -v $PWD:/opt kompose sh -c "cd /opt && kompose convert"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user