Skip to content

Commit

Permalink
Merge pull request #2749 from itsmetambui/build-a-nodejs-and-react-ap…
Browse files Browse the repository at this point in the history
…p-with-npm-tutorial-fix

Build a Node.js and React app with npm tutorial fix.
  • Loading branch information
MarkEWaite committed Jan 15, 2020
2 parents 67db75c + 82477ae commit 38573ce
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion content/doc/book/installing/_docker-for-tutorials.adoc
Expand Up @@ -36,6 +36,7 @@ docker volume create jenkins-data
link:https://docs.docker.com/engine/reference/commandline/container_run/[`docker container run`]
command:
+
ifeval::["{tutorial-for}" == "node"]
[source,bash]
----
docker container run --name jenkins-docker --rm --detach \
Expand All @@ -44,8 +45,20 @@ docker container run --name jenkins-docker --rm --detach \
--volume jenkins-docker-certs:/certs/client \
--volume jenkins-data:/var/jenkins_home \
--volume "$HOME":/home \
docker:dind
--publish 3000:3000 docker:dind
----
endif::[]
ifndef::tutorial-for[]
[source,bash]
----
docker container run --name jenkins-docker --rm --detach \
--privileged --network jenkins --network-alias docker \
--env DOCKER_TLS_CERTDIR=/certs \
--volume jenkins-docker-certs:/certs/client \
--volume jenkins-data:/var/jenkins_home \
--volume "$HOME":/home docker:dind
----
endif::[]
. Run the `jenkinsci/blueocean` image as a container in Docker using the
following
link:https://docs.docker.com/engine/reference/commandline/container_run/[`docker container run`]
Expand Down
Expand Up @@ -7,6 +7,8 @@ section: doc
:toc:
:toclevels: 3
:imagesdir: ../../book/resources
:tutorial-for: node


This tutorial shows you how to use Jenkins to orchestrate building a simple
https://nodejs.org/en/[Node.js] and https://reactjs.org/[React] application
Expand Down

0 comments on commit 38573ce

Please sign in to comment.