Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for 2.0.0 release #1345

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

fabiobrz
Copy link
Collaborator

SSIA

Short description of what this resolves:

Documentation update

Changes proposed in this pull request:

  • Mainly removing the Boot2Docker and Docker-machine mentions
  • Minor fixes here and there as they were spotted

Fixes #1344

@fabiobrz fabiobrz force-pushed the update-doc-for-200.alpha1 branch from 11cf019 to ad3c45d Compare January 11, 2025 08:32
@fabiobrz fabiobrz changed the title Update docuentation for 2.0.0.Alpha release Update docuentation for 2.0.0 release Jan 11, 2025
@fabiobrz fabiobrz requested a review from gaol January 11, 2025 09:07
@fabiobrz fabiobrz changed the title Update docuentation for 2.0.0 release Update documentation for 2.0.0 release Jan 13, 2025
@asoldano asoldano merged commit 4640def into arquillian:main Jan 15, 2025
3 checks passed
Copy link
Collaborator

@gaol gaol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for late, several comments :)

@@ -1,9 +1,9 @@
== Building containers

To build a container _Docker_ uses a file called +Dockerfile+ http://docs.docker.com/reference/builder/.
*Arquillian Cube* also supports building and running a container from a +Dockerfile+.
To build a container _Docker_ uses a file called `Dockerfile` http://docs.docker.com/reference/builder/.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Let's see how you can rewrite previous HelloWorld example with Tomcat to be used using docker-compose format.
Let's see how you can rewrite previous HelloWorld example with Tomcat, using docker-compose format.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At end of this file, the link is broken, should it be https://github.com/arquillian/arquillian-cube/tree/main/docker/ftest-docker-compose-v2 ?

And shall we mention which docker compose version to support ? and maybe follow the compose-spec in the future ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gaol, should be fixed by #1347 now. Would you mind to file an issue for supporting the compose-spec as suggested, so yu can deal with details you might have on your mind?

|machineName
|Sets the machine name in case you are using docker-machine to manage your docker host. This parameter is mandatory when using docker-machine with more than one running machine. In case of having only one docker machine running, it is not necessary to set it since it is auto resolved by cube.

|machineDriver
|Sets the machine driver in case you are using _docker-machine_, _Cube_ will create a machine using this driver. This parameter is mandatory when docker-machine is not installed.
|Sets the machine driver in case you are using _docker-machine_. This parameter is mandatory when docker-machine is not installed.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we remove the docker machine related parameters as we don't support them ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, and submitted an issue for removing the remaining references in the functional and test code: #1346

<6> You can pass environment variables by using `env`. In this section you can set special `dockerServerIp` string which at runtime will be replaced by _Cube_ to current docker server ip.
<7> After the container is up, a list of commands can be executed within it.
<8> Port forwarding is configured using `portBinding` section. It contains a list of `exposedPort` and `port` separated by arrow (_->_). If only one port is provided, *Arquillian Cube* will expose the same port number. In this example the exposed port 8089 is mapped to 8089 and exposed port 8080 is mapped to 8081.
<9> You can extend another configuration. Any top level element and it's children from the target container-id will be copied over to this configuration, unless they have been defined here already.
<10> You can use `manual` to indicate that this container is going to be started or in the test manually using `CubeController` or started by an extension. This attribute is ingorned in case of arquillian containers (none autostart containers) or in case of a linked container that comes from a none manual container.
<11> Kills the container instead of stopping it normally. By default is false so containers are stopped.
<11> Kills the container instead of stopping it normally. By default, it is set to false, so that containers are stopped.
<12> Alternate hostname for use with the builtin DNS for https://docs.docker.com/engine/userguide/networking/#user-defined-networks[docker'suser defined networks].
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabiobrz
Copy link
Collaborator Author

Sorry for late, several comments :)

Thanks indeed for your review @gaol! I provided some feedback here, and addressed your comments via #1347, would you mind having a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update documentation for 2.0.0 release
3 participants