You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2022/04/13 16:13:10 UTC

[camel-website] branch doc-about-docker updated (2baabc34 -> 92ad3583)

This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a change to branch doc-about-docker
in repository https://gitbox.apache.org/repos/asf/camel-website.git


 discard 2baabc34 Promote the usage of yarn in docker
     new 92ad3583 Promote the usage of yarn in docker

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (2baabc34)
            \
             N -- N -- N   refs/heads/doc-about-docker (92ad3583)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


[camel-website] 01/01: Promote the usage of yarn in docker

Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nfilotto pushed a commit to branch doc-about-docker
in repository https://gitbox.apache.org/repos/asf/camel-website.git

commit 92ad3583942f9b5e7e5a7d102768a86a7e0a7c41
Author: Nicolas Filotto <nf...@talend.com>
AuthorDate: Wed Apr 13 18:05:52 2022 +0200

    Promote the usage of yarn in docker
---
 README.md          | 12 ++++++++++++
 yarn-in-docker.env |  4 ++++
 yarn-in-docker.sh  |  2 +-
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 28b59ff2..a4f6d1bd 100644
--- a/README.md
+++ b/README.md
@@ -373,6 +373,18 @@ This is most likely what you want.
 If you need to link to a specific non-latest version of a page, specify the version in the xref.
 - A link from anywhere to a camel-quarkus 2.0.0 page would be xref:2.0.0@camel-quarkus::reference/extensions/activemq.adoc[].
 
+## Build with Yarn in Docker
+
+To avoid having to install everything on your local machine, you still have the possibility to launch the `yarn` commands directly inside a Docker container in which all the required tools have been preinstalled.
+
+Assuming that Docker is properly installed on your local machine and the Docker daemon is started, all you need to do is to call the script `yarn-in-docker.sh` with the arguments that you would like to pass to the `yarn` command.
+
+For example to launch `yarn` with `build-all` as argument inside a Docker container, the corresponding command is then:
+
+    $ ./yarn-in-docker.sh build-all
+
+Note that the script actually launches Docker commands behind the scenes. In particular, it runs a Docker container using `yarn-in-docker.env` as file of environment variables thus you will need to edit this file to provide the value of the environment variables to set inside the Docker container.
+
 ## Build with Maven
 
 The project provides a simple way to build the website sources locally using the build tool [Maven](https://maven.apache.org/).
diff --git a/yarn-in-docker.env b/yarn-in-docker.env
new file mode 100644
index 00000000..5a2786c6
--- /dev/null
+++ b/yarn-in-docker.env
@@ -0,0 +1,4 @@
+#HUGO_PARAMS_GitHubUsername=<GitHub username>
+#HUGO_PARAMS_GitHubToken=<GitHub token>
+#GITHUB_TOKEN=<personal access token>
+#CAMEL_ENV=<production or netlify>
diff --git a/yarn-in-docker.sh b/yarn-in-docker.sh
index 55cf688d..63b5e164 100755
--- a/yarn-in-docker.sh
+++ b/yarn-in-docker.sh
@@ -5,4 +5,4 @@
 # $yarn-in-docker.sh workspace antora-ui-camel run build
 
 docker build -t camel-website .
-docker run --rm -it -v $(pwd):/work:Z --workdir /work camel-website yarn $*
+docker run --rm -it --env-file yarn-in-docker.env -v $(pwd):/work:Z --workdir /work camel-website yarn $*