Commit Graph

28 Commits

Author SHA1 Message Date
Charlie Drage 29f6765fc6
feature: change example to use non-root (#1879)
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
-->

/kind feature

#### What this PR does / why we need it:

This changes our example to use non-root so it runs well on non-root
clusters (ex. openshift).

We also add debugging tools so we can safely explore the container.

/tmp is also added as the directory for the replica or else it fails.

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

N/A

#### Special notes for your reviewer:

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-05-29 18:51:37 +02:00
Charlie Drage 575066d3ed
Add new examples to kompose (#1803)
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind documentation
/kind feature
-->

/kind cleanup

#### What this PR does / why we need it:

Fixes the current broken examples by:

* Removing all the old incompatible ones (we do not really support v3
  anymore or v2... since switching libraries)
* Uses quay.io/kompose/web as our front end example which is a fork of
  the guestbook-go kubernetes examples

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->

Closes https://github.com/kubernetes/kompose/issues/1757

#### Special notes for your reviewer:

Test using docker-compose (you'll see it come up!), then try with
kompose :)

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2024-01-16 09:37:31 -05:00
Charlie Drage 2c3f2939d4
update redis wording to replica (#1680)
#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature
-->

We should be using replica to indicate a new node of redis.

Unfortunatley gcr still hasn't pushed another image, so we will still
have to use registry.k8s.io/redis-slave:v2

#### What this PR does / why we need it:

N/A

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

N/A

#### Special notes for your reviewer:

N/A

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2023-07-25 14:32:20 -04:00
vaibhav2107 9ced8e2ced Update references from k8s.gcr.io to registry.k8s.io 2023-02-14 17:35:45 +05:30
namusyaka 119f0b8f70
Follow up on #1341 (#1344)
* mv d.yaml to examples

* rephrase debug log messages a bit
2020-11-04 08:26:15 +08:00
Charlie Drage 2fde1ad7b5 Revert "Add node references (#1123)"
This reverts commit cd7c8a3d9a.
2019-06-20 14:44:17 -04:00
Charlie Drage cd7c8a3d9a
Add node references (#1123)
Removes old Kubernetes references to master / slave and converts them to
master / node.
2019-06-14 10:43:11 -04:00
Tim Hockin a178cf53db Convert registry to k8s.gcr.io 2017-12-22 09:55:16 -08:00
Charlie Drage 0f4e06e7fb Remove dab examples
Removes .dab examples from the example directory
2017-08-21 10:32:43 -04:00
Suraj Narwade 216882d042 Added docker compose v3 example for counter 2017-07-17 10:28:01 +05:30
Tomas Kral 1cc7e2c7f9 Merge pull request #670 from cdrage/add-v3-example
Add v3 example
2017-06-23 15:37:55 +02:00
Charlie Drage 06443f594c Add v3 example
Same example as docker-compose.yaml but with 3 in the version name.

Needed for 1.0.0 blog post!
2017-06-23 08:51:27 -04:00
Charlie Drage 3694f2535e Remove 'cdrage' username from example
Removes username in favour of a foobar username
2017-06-22 15:43:14 -04:00
Charlie Drage e2f9084003 Adds both build and push support
This adds support for building and pushing docker containers
when you perform either `kompose convert` or `kompose up`.

Docker Compose files who have build parameters with their respective
image and build keys will automatically be both built and pushed.
2017-06-14 10:19:12 -04:00
Anush Shetty 1b3d876a62 Adding OpenShift functional tests for kompose up/down
* This PR adds functional tests for kompose up/down. The test scripts
are hosted under script/test_in_openshift. The directory structure,
as follows:

	script/test_in_openshift/
	├── compose-files
	│   └── docker-compose-command.yml
	├── lib.sh
	├── run.sh
	└── tests
		├── buildconfig.sh
    		├── entrypoint-command.sh
    		├── etherpad.sh
    		└── redis-replica-2.sh

* script/test_in_openshift/run.sh is the master script
  which executes all the tests

* script/test_in_openshift/lib.sh consists of helper functions
  for `kompose up` and `kompose down` checks

* script/test_in_openshift/tests directory consists of test scripts

* The scripts use 'oc cluster up' for setting up a single-machine
  OpenShift cluster. It exits if oc binaries are not installed

* Most of the docker compose files used are the ones already
  available in examples/ or script/test/fixtures.

* How to run the tests: 'make test-openshift'
2017-05-02 12:02:30 +05:30
Charlie Drage 2abb18af1a Fix the examples
Moves `docker-compose.yaml` to `docker-compose-counter.yaml` and
replaces the default docker-compose.yaml with the example from the
Kompose.io website.

We also rename each file from yml to yaml.

As well as do some slight modifications / formatting to
docker-compose-bundle.dab
2017-04-10 12:26:47 -04:00
Ratnadeep Debnath a9241e6fe5 Added example for openshift buildconfig. 2016-12-28 17:00:33 +05:30
Suraj Deshmukh 66bd044e7d Merge pull request #290 from cdrage/update-dsb-to-dab
Update .dsb to .dab
2016-11-21 18:59:38 +05:30
Charlie Drage dc474376b5 Update .dsb to .dab 2016-11-16 16:24:34 -05:00
Tuna 972711b3b2 fix docker-gitlab example 2016-11-06 18:57:39 +01:00
Charlie Drage 3ed96babcb Update README + Docker Compose Bundle references
This commit updates a few sentences in the README that I thought would
need improving.

Bundles now end with the .dab extension and are named "Distributed
Application Bundles" now. I've updated the README as well as the example
accordingly.
2016-10-05 16:04:21 -04:00
Tuna 4b3fbc02a5 update docker-voting example 2016-09-12 21:55:28 +07:00
runseb 22c65c689c New guestbook example 2016-08-31 15:35:39 +02:00
Janet Kuo b71b70e0d9 Converting compose labels to k8s annotations 2016-08-04 09:57:04 -07:00
Janet Kuo fa2ec5fa8d Add a bundle example file 2016-07-21 16:17:46 -07:00
ngtuna a8add081ab initially support compose v2 format, and close #8 as well 2016-07-20 16:28:09 +07:00
ngtuna d201adf0bf close #21 2016-07-08 02:04:41 +07:00
ngtuna 69bcf3527d add some sample docker-compose files 2016-06-30 23:27:36 +07:00