A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/kubernetes/kompose/commit/50e0408f6fec4bdd1db5e05f422f00e08624dd07 below:

update references to just compose (#1869) · kubernetes/kompose@50e0408 · GitHub

File tree Expand file treeCollapse file tree 13 files changed

+28

-28

lines changed

Filter options

Expand file treeCollapse file tree 13 files changed

+28

-28

lines changed Original file line number Diff line number Diff line change

@@ -78,7 +78,7 @@ var (

78 78 79 79

var convertCmd = &cobra.Command{

80 80

Use: "convert",

81 -

Short: "Convert a Docker Compose file",

81 +

Short: "Convert a Compose file",

82 82

Example: ` kompose --file compose.yaml convert

83 83

kompose -f first.yaml -f second.yaml convert

84 84

kompose --provider openshift --file compose.yaml convert`,

Original file line number Diff line number Diff line change

@@ -51,7 +51,7 @@ var (

51 51

// RootCmd root level flags and commands

52 52

var RootCmd = &cobra.Command{

53 53

Use: "kompose",

54 -

Short: "A tool helping Docker Compose users move to Kubernetes",

54 +

Short: "A tool helping Compose users move to Kubernetes",

55 55

Long: `Kompose is a tool to help users who are familiar with docker-compose move to Kubernetes.`,

56 56

Example: ` kompose --file compose.yaml convert

57 57

kompose -f first.yaml -f second.yaml convert

Original file line number Diff line number Diff line change

@@ -18,7 +18,7 @@ redirect_from:

18 18 19 19

## Loader

20 20 21 -

The Loader reads the input file now `kompose` supports [Docker Compose](https://docs.docker.com/compose) v1, v2 and converts it to KomposeObject.

21 +

The Loader reads the input file now `kompose` supports [Compose](https://docs.docker.com/compose) v1, v2 and converts it to KomposeObject.

22 22 23 23

Loader is represented by a Loader interface:

24 24 Original file line number Diff line number Diff line change

@@ -24,7 +24,7 @@ We're doing our best to keep it up to date as soon as possible in our releases t

24 24

**Glossary:**

25 25 26 26

- **✓:** Converts

27 -

- **-:** Not in this Docker Compose Version

27 +

- **-:** Not in this Compose Version

28 28

- **n:** Not yet implemented

29 29

- **x:** Not applicable / no 1-1 conversion

30 30

@@ -90,7 +90,7 @@ We're doing our best to keep it up to date as soon as possible in our releases t

90 90

| stop_signal | x | x | x | | Not supported within Kubernetes. See issue https://github.com/kubernetes/kubernetes/issues/30051 |

91 91

| sysctls | n | n | n | | |

92 92

| ulimits | x | x | x | | Not supported within Kubernetes. See issue https://github.com/kubernetes/kubernetes/issues/3595 |

93 -

| userns_mode | x | x | x | | Not supported within Kubernetes and ignored in Docker Compose Version 3 |

93 +

| userns_mode | x | x | x | | Not supported within Kubernetes and ignored in Compose Version 3 |

94 94

| volumes |||| PersistentVolumeClaim | Creates a PersistentVolumeClaim. Can only be created if there is already a PersistentVolume within the cluster |

95 95

| volumes: short-syntax |||| PersistentVolumeClaim | Creates a PersistentVolumeClaim. Can only be created if there is already a PersistentVolume within the cluster |

96 96

| volumes: long-syntax | - | - || PersistentVolumeClaim | Creates a PersistentVolumeClaim. Can only be created if there is already a PersistentVolume within the cluster |

Original file line number Diff line number Diff line change

@@ -44,13 +44,13 @@ Starting cluster components...

44 44

Kubectl is now configured to use the cluster

45 45

```

46 46 47 -

**Download an [example Docker Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

47 +

**Download an [example Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

48 48 49 49

```sh

50 50

wget https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml

51 51

```

52 52 53 -

**Convert your Docker Compose file to Kubernetes:**

53 +

**Convert your Compose file to Kubernetes:**

54 54 55 55

Run `kompose convert` in the same directory as your `compose.yaml` file.

56 56

@@ -134,13 +134,13 @@ Starting local OpenShift cluster using 'kvm' hypervisor...

134 134

...

135 135

```

136 136 137 -

**Download an [example Docker Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

137 +

**Download an [example Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

138 138 139 139

```sh

140 140

wget https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml

141 141

```

142 142 143 -

**Convert your Docker Compose file to OpenShift:**

143 +

**Convert your Compose file to OpenShift:**

144 144 145 145

Run `kompose convert --provider=openshift` in the same directory as your `compose.yaml` file.

146 146

@@ -254,13 +254,13 @@ Starting local OpenShift cluster using 'kvm' hypervisor...

254 254

...

255 255

```

256 256 257 -

**Download an [example Docker Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

257 +

**Download an [example Compose file](https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml), or use your own:**

258 258 259 259

```sh

260 260

wget https://raw.githubusercontent.com/kubernetes/kompose/main/examples/compose.yaml

261 261

```

262 262 263 -

**Convert your Docker Compose file to OpenShift:**

263 +

**Convert your Compose file to OpenShift:**

264 264 265 265

Run `kompose convert --provider=openshift` in the same directory as your `compose.yaml` file.

266 266 Original file line number Diff line number Diff line change

@@ -16,7 +16,7 @@ There are some projects out there known to use Kompose integrated in some form o

16 16 17 17

### Kompose UI by Jad Chamoun (ICANN) and Joe Haddad (Anghami)

18 18 19 -

**Description:** "A web interface to convert Docker Compose files to Kubernetes YAML"

19 +

**Description:** "A web interface to convert Compose files to Kubernetes YAML"

20 20 21 21

**Link:** [https://github.com/JadCham/komposeui](https://github.com/JadCham/komposeui)

22 22

@@ -48,7 +48,7 @@ There are some projects out there known to use Kompose integrated in some form o

48 48 49 49

**Description:** "Maven is one of the widely used build tools for Java applications. The Fabric8 Maven Plugin is a maven extension that simplifies the deployment of Java applications to Kubernetes or OpenShift clusters.

50 50

The main task of this plugin is to build Docker images, generate Kubernetes or OpenShift resource descriptors and run/deploy the application on Kubernetes or OpenShift cluster.

51 -

The plugin has a wide range of configuration options. Docker Compose is one of the options to bring up deployments on Kubernetes or OpenShift clusters.

51 +

The plugin has a wide range of configuration options. Compose is one of the options to bring up deployments on Kubernetes or OpenShift clusters.

52 52

Technically, Fabric8 Maven Plugin processes the external compose.yml file and generates Kubernetes or OpenShift resources via Kompose."

53 53 54 54

**Links:**

Original file line number Diff line number Diff line change

@@ -9,7 +9,7 @@ redirect_from:

9 9 10 10

# Fabric8 Maven Plugin + Kompose:

11 11 12 -

Let's deploy a Springboot Java application with Docker Compose file using Fabric8 Maven Plugin to Kubernetes or OpenShift.

12 +

Let's deploy a Springboot Java application with Compose file using Fabric8 Maven Plugin to Kubernetes or OpenShift.

13 13 14 14

##### Requirements

15 15

@@ -46,7 +46,7 @@ $ mvn fabric8:install

46 46 47 47

This command installs the `kompose` on the host.

48 48 49 -

**4. Configure Fabric8 Maven Plugin to use a Docker Compose file**

49 +

**4. Configure Fabric8 Maven Plugin to use a Compose file**

50 50 51 51

```bash

52 52

<plugin>

@@ -66,7 +66,7 @@ This command installs the `kompose` on the host.

66 66

</plugin>

67 67

```

68 68 69 -

Add the `<configuration>` and `<executions>` sections to `pom.xml` as shown in above `pom.xml` snippet. Update the `<composeFile>` to provide the relative path of Docker Compose file from `pom.xml`

69 +

Add the `<configuration>` and `<executions>` sections to `pom.xml` as shown in above `pom.xml` snippet. Update the `<composeFile>` to provide the relative path of Compose file from `pom.xml`

70 70 71 71

**5. Deploy application on Kubernetes or OpenShift**

72 72 Original file line number Diff line number Diff line change

@@ -17,7 +17,7 @@ You can choose a targeted provider using global option `--provider`. If no provi

17 17 18 18

## Kompose Convert

19 19 20 -

Kompose supports conversion of V1, V2, and V3 Docker Compose files into Kubernetes and OpenShift objects.

20 +

Kompose supports conversion of V1, V2, and V3 Compose files into Kubernetes and OpenShift objects.

21 21 22 22

### Kubernetes

23 23

@@ -609,9 +609,9 @@ services:

609 609 610 610

#### Warning about Deployment Config's

611 611 612 -

If the Docker Compose file has a volume specified for a service, the Deployment (Kubernetes) or DeploymentConfig (OpenShift) strategy is changed to "Recreate" instead of "RollingUpdate" (default). This is done to avoid multiple instances of a service from accessing a volume at the same time.

612 +

If the Compose file has a volume specified for a service, the Deployment (Kubernetes) or DeploymentConfig (OpenShift) strategy is changed to "Recreate" instead of "RollingUpdate" (default). This is done to avoid multiple instances of a service from accessing a volume at the same time.

613 613 614 -

If the Docker Compose file has service name with `_` or `.` in it (eg.`web_service` or `web.service`), then it will be replaced by `-` and the service name will be renamed accordingly (eg.`web-service`). Kompose does this because "Kubernetes" doesn't allow `_` in object name.

614 +

If the Compose file has service name with `_` or `.` in it (eg.`web_service` or `web.service`), then it will be replaced by `-` and the service name will be renamed accordingly (eg.`web-service`). Kompose does this because "Kubernetes" doesn't allow `_` in object name.

615 615 616 616

Please note that changing service name might break some `compose` files.

617 617

@@ -621,7 +621,7 @@ To generate network policies, all you need is to use the `--generate-network-pol

621 621 622 622

## Build and push image

623 623 624 -

If the Docker Compose file has `build` or `build:context, build:dockerfile` keys, build will run when `--build` specified.

624 +

If the Compose file has `build` or `build:context, build:dockerfile` keys, build will run when `--build` specified.

625 625 626 626

And Image will push to _docker.io_ (default) when `--push-image=true` specified.

627 627 Original file line number Diff line number Diff line change

@@ -4,15 +4,15 @@ layout: default

4 4 5 5

# Kubernetes + Compose = Kompose

6 6 7 -

## A conversion tool to go from Docker Compose to Kubernetes

7 +

## A conversion tool to go from Compose to Kubernetes

8 8 9 9

### What's Kompose?

10 10 11 -

Kompose is a conversion tool for Docker Compose to container orchestrators such as Kubernetes (or OpenShift).

11 +

Kompose is a conversion tool for Compose to container orchestrators such as Kubernetes (or OpenShift).

12 12 13 13

Why do developers love it?

14 14 15 -

- Simplify your development process with Docker Compose and then deploy your containers to a production cluster

15 +

- Simplify your development process with Compose and then deploy your containers to a production cluster

16 16

- Convert your `docker-compose.yaml` with one simple command `kompose convert`

17 17 18 18

### It's as simple as 1-2-3

Original file line number Diff line number Diff line change

@@ -250,7 +250,7 @@ func convertDockerLabel(dockerLabel string) (string, error) {

250 250

return "", errors.New(errMsg)

251 251

}

252 252 253 -

// Convert the Docker Compose volumes to []string (the old way)

253 +

// Convert the Compose volumes to []string (the old way)

254 254

// TODO: Check to see if it's a "bind" or "volume". Ignore for now.

255 255

// TODO: Refactor it similar to loadPorts

256 256

// See: https://docs.docker.com/compose/compose-file/#long-syntax-3

@@ -273,7 +273,7 @@ func loadVolumes(volumes []types.ServiceVolumeConfig) []string {

273 273

return volArray

274 274

}

275 275 276 -

// Convert Docker Compose ports to kobject.Ports

276 +

// Convert Compose ports to kobject.Ports

277 277

// expose ports will be treated as TCP ports

278 278

func loadPorts(ports []types.ServicePortConfig, expose []string) []kobject.Ports {

279 279

komposePorts := []kobject.Ports{}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4