Skip to content

Commit 923ee23

Browse files
authored
Fixing docs(#497)
1 parent 381aab9 commit 923ee23

14 files changed

Lines changed: 515 additions & 22 deletions

File tree

CONTRIBUTING.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ articles, and such.
4545
Submit Feedback
4646
~~~~~~~~~~~~~~~
4747

48-
The best way to send feedback is to file an issue at https://github.com/lanbda-my-aws/ecs_composex/issues.
48+
The best way to send feedback is to file an issue at https://github.com/compose-x/ecs_composex/issues.
4949

5050
If you are proposing a feature:
5151

@@ -64,11 +64,13 @@ Ready to contribute? Here's how to set up `ecs_composex` for local development.
6464

6565
$ git clone git@github.com:your_name_here/ecs_composex.git
6666

67-
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
67+
3. Install your local copy into a virtualenv. Assuming you have python3 and pip installed, this is how you set up your fork for local development::
6868

69-
$ mkvirtualenv ecs_composex
69+
$ python -m venv venv
70+
$ source venv/bin/activate
7071
$ cd ecs_composex/
71-
$ python setup.py develop
72+
$ pip install poetry
73+
$ poetry install
7274

7375
4. Create a branch for local development::
7476

@@ -80,6 +82,7 @@ Ready to contribute? Here's how to set up `ecs_composex` for local development.
8082
tests, including testing other Python versions with tox::
8183

8284
$ make lint
85+
$ make conform
8386
$ make coverage
8487

8588
To get flake8 and tox, just pip install them into your virtualenv.
@@ -108,6 +111,7 @@ Tips
108111
To run a subset of tests::
109112

110113
$ make test
114+
$ make conform
111115
$ make coverage
112116

113117

@@ -118,7 +122,7 @@ A reminder for the maintainers on how to deploy.
118122
Make sure all your changes are committed (including an entry in HISTORY.rst).
119123
Then run::
120124

121-
$ bump2version patch # possible: major / minor / patch
125+
$ tbump --no-push major.minor.patch
122126
$ git push
123127
$ git push --tags
124128

docs/examples.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. meta::
2+
:description: ECS Compose-X Labs
3+
:keywords: AWS, AWS ECS, Docker, Containers, Compose, docker-compose, install, setup, examples
4+
5+
.. toctree::
6+
:maxdepth: 1
7+
:caption: Examples
8+
9+
examples/lab
10+
examples/nginx_simple

docs/examples/lab.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. meta::
2+
:description: ECS Compose-X Labs
3+
:keywords: AWS, AWS ECS, Docker, Containers, Compose, docker-compose, install, setup, examples
4+
5+
=================
6+
Compose-X Labs
7+
=================
8+
9+
There are tons of use-cases out there to use docker-compose, and a lot of various applications that can be deployed
10+
to AWS very easily
11+
12+
Whilst the examples on this site will aim to help users gradually add in complexity, more in details and in-depth examples
13+
which relate to real-life use-cases that helped shape and test compose-x can be found at `Compose-X Labs`_
14+
15+
.. seealso::
16+
17+
* `Compose-X Labs`_
18+
19+
* `Compose-X Labs GitHub repository`_ (contains the source and artifacts of the lab articles)
20+
21+
.. _Compose-X Labs: https://labs.compose-x.io
22+
.. _Compose-X Labs GitHub repository: https://github.com/compose-x/compose-x-labs

docs/examples/nginx_simple.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. meta::
2+
:description: ECS Compose-X Labs
3+
:keywords: AWS, AWS ECS, Docker, Containers, Compose, docker-compose, install, setup, examples
4+
5+
.. include:: ../../e2e-examples/nginx_webapp/README.rst

docs/index.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
Welcome to ECS Compose-X documentation
77
========================================
88

9-
|PYPI_VERSION| |PYPI_LICENSE|
9+
|PYPI_VERSION| |PYPI_LICENSE| |PY_DLS|
1010

1111
|CODE_STYLE| |TDD| |BDD|
1212

13-
|QUALITY|
14-
15-
|BUILD|
13+
|QUALITY| |BUILD|
1614

1715
---------------------------------------------------------------------------------------------------------------
1816
Manage, Configure and deploy your applications/services and AWS resources from your docker-compose definitions
@@ -52,14 +50,20 @@ Deploy it in your account today |AWS_SAR|
5250

5351
`Find out how to use ECS Compose-X in AWS here`_
5452

53+
Via docker
54+
-----------
55+
56+
.. code-block:: bash
57+
58+
docker run --rm -v ~/.aws:/root/.aws public.ecr.aws/compose-x/compose-x:latest
59+
5560
Via pip
5661
--------
5762

5863
.. code-block:: bash
5964
6065
pip install ecs_composex
6166
62-
6367
CLI Usage
6468
==========
6569

@@ -153,7 +157,7 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
153157
.. _Troposphere: https://github.com/cloudtools/troposphere
154158
.. _Blog: https://blog.compose-x.io/
155159
.. _Docker Compose: https://docs.docker.com/compose/
156-
.. _ECS Compose-X: https://github.com/lambda-my-aws/ecs_composex
160+
.. _ECS Compose-X: https://github.com/compose-x/ecs_composex
157161
.. _YAML Specifications: https://yaml.org/spec/
158162
.. _Extensions fields: https://docs.docker.com/compose/compose-file/#extension-fields
159163
.. _ECS Compose-X Project: https://github.com/orgs/lambda-my-aws/projects/3
@@ -203,6 +207,9 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
203207
:alt: Code scan with SonarCloud
204208
:target: https://sonarcloud.io/dashboard?id=compose-x_ecs_composex
205209

210+
.. |PY_DLS| image:: https://img.shields.io/pypi/dm/ecs-composex
211+
:target: https://pypi.org/project/ecs-composex/
212+
206213

207214
.. toctree::
208215
:maxdepth: 1
@@ -213,6 +220,7 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
213220
macro_usage
214221
contributing
215222

223+
.. include:: examples.rst
216224
.. include:: compatibility_matrix.rst
217225
.. include:: modules_syntax.rst
218226

docs/installation.rst

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,34 @@ Installation
1212
Stable release
1313
==============
1414

15+
From docker
16+
------------
17+
18+
.. code-block:: console
19+
20+
docker run --rm -v ~/.aws:/root/.aws public.ecr.aws/compose-x/compose-x:latest
21+
22+
.. hint::
23+
24+
Head to https://gallery.ecr.aws/compose-x/compose-x to select a particular version if need be.
25+
1526
From Pip
1627
---------
1728

1829
To install ECS-Compose-X, run this command in your terminal:
1930

2031
.. code-block:: console
2132
22-
$ pip install ecs_composex
33+
pip install --user ecs_composex
34+
35+
.. hint::
36+
37+
Highly recommend to create a new python virtualenv in order not to spread on all your machine
38+
39+
.. code-block:: console
40+
41+
python -m venv venv
42+
source venv/bin/activate
2343
2444
This is the preferred method to install ECS-Compose-X, as it will always install the most recent stable release.
2545

@@ -36,22 +56,41 @@ You can either clone the public repository:
3656

3757
.. code-block:: console
3858
39-
$ git clone git://github.com/lambda-my-aws/ecs_composex
59+
$ git clone git://github.com/compose-x/ecs_composex
4060
4161
Or download the `tarball`_:
4262

4363
.. code-block:: console
4464
45-
$ curl -OJL https://github.com/lambda-my-aws/ecs_composex/tarball/master
65+
$ curl -OJL https://github.com/compose-x/ecs_composex/tarball/main
66+
67+
Once you have a copy of the source, you can install it
68+
69+
70+
Using pip
71+
-----------
72+
73+
.. code-block:: console
74+
75+
# After git clone
76+
cd ecs_composex
77+
pip install .
4678
47-
Once you have a copy of the source, you can install it with:
79+
Using poetry
80+
-------------------
4881

4982
.. code-block:: console
5083
51-
$ python setup.py install
84+
# After git clone
85+
cd ecs_composex
86+
python -m pip install poetry
87+
poetry install
88+
89+
.. hint::
5290

91+
Using poetry will also install all the dev dependencies for local dev.
5392

54-
.. _Github repo: https://github.com/lambda-my-aws/ecs_composex
55-
.. _tarball: https://github.com/lambda-my-aws/ecs_composex/tarball/master
93+
.. _Github repo: https://github.com/compose-x/ecs_composex
94+
.. _tarball: https://github.com/compose-x/ecs_composex/tarball/master
5695
.. _pip: https://pip.pypa.io
5796
.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/

docs/story.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Community focused
3030
Any new Feature Request submitted by someone other than myself will get their request prioritized to try address their
3131
use-cases as quickly as possible.
3232

33-
`Submit your Feature Request here <https://github.com/lambda-my-aws/ecs_composex/issues/new/choose>`_
33+
`Submit your Feature Request here <https://github.com/compose-x/ecs_composex/issues/new/choose>`_
3434

3535
Ensure things work
3636
------------------
@@ -39,7 +39,7 @@ It takes an insane amount of time to test everything as, generating CFN template
3939
works end-to-end is a completely different thing.
4040

4141
I will always do my best to ensure that any new feature is tested end-to-end, but shall anything slip through the cracks,
42-
please feel free to report your errors `here <https://github.com/lambda-my-aws/ecs_composex/issues/new/choose>`_
42+
please feel free to report your errors `here <https://github.com/compose-x/ecs_composex/issues/new/choose>`_
4343

4444

4545
Provision other AWS resources your services need
@@ -168,6 +168,6 @@ can solve that problem and with ECS Compose-X the effort is to constantly abide
168168
.. _Troposphere: https://github.com/cloudtools/troposphere
169169
.. _Blog: https://blog.composex.io/
170170
.. _Docker Compose: https://docs.docker.com/compose/
171-
.. _ECS Compose-X: https://github.com/lambda-my-aws/ecs_composex
171+
.. _ECS Compose-X: https://github.com/compose-x/ecs_composex
172172
.. _YAML Specifications: https://yaml.org/spec/
173173
.. _Extensions fields: https://docs.docker.com/compose/compose-file/#extension-fields

docs/syntax/compose_x/codeguru_profiler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ Example
8989
Code Example
9090
-------------
9191

92-
Full Applications code used for this sort of testing can be found `here <https://github.com/lambda-my-aws/composex-testing-apps/tree/main/app02>`__
92+
Full Applications code used for this sort of testing can be found `here <https://github.com/compose-x/composex-testing-apps/tree/main/app02>`__
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ARG BASE_IMAGE=nginx:latest
2+
3+
FROM $BASE_IMAGE
4+
COPY app/* /usr/share/nginx/html

0 commit comments

Comments
 (0)