This is an automated email from the ASF dual-hosted git repository.
joshfischer pushed a commit to branch joshfischer/0.20.4-incubating-site
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to
refs/heads/joshfischer/0.20.4-incubating-site by this push:
new 54e551b adding simple docker instructions
54e551b is described below
commit 54e551b4852ab6ae282221ca75cb5cfb9b6471b1
Author: Josh Fischer <[email protected]>
AuthorDate: Thu May 27 19:38:01 2021 -0500
adding simple docker instructions
---
website2/docs/getting-started-docker.md | 21 ++++++++++++++++++++
.../getting-started-docker.md | 23 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/website2/docs/getting-started-docker.md
b/website2/docs/getting-started-docker.md
index fc9ec79..435e80b 100644
--- a/website2/docs/getting-started-docker.md
+++ b/website2/docs/getting-started-docker.md
@@ -26,3 +26,24 @@ The official Apache Heron Docker image is located at the
link below
<a target="_blank"
href="https://hub.docker.com/repository/docker/apache/heron">https://hub.docker.com/repository/docker/apache/heron</a>
+### Docker Quickstart
+In one terminal execute to start Heron in a container
+
+```bash
+$ docker run -it --rm \
+ -p 8889:8889 \
+ -p 8888:8888 \
+ --name local-heron \
+ apache/heron:0.20.4-incubating supervisord --nodaemon
+```
+In another terminal execute the following to deploy a job:
+```bash
+$ docker exec -it \
+ local-heron \
+ bash -c "heron submit sandbox /heron/examples/heron-eco-examples.jar
org.apache.heron.eco.Eco --eco-config-file /heron/examples/heron_wordcount.yaml"
+```
+
+View your job details by navigating to `localhost:8889` in your browser.
Congratulations, you've just deployed a Heron job in Docker!
+
+
+
diff --git
a/website2/website/versioned_docs/version-0.20.4-incubating/getting-started-docker.md
b/website2/website/versioned_docs/version-0.20.4-incubating/getting-started-docker.md
index 11afc60..2d5884d 100644
---
a/website2/website/versioned_docs/version-0.20.4-incubating/getting-started-docker.md
+++
b/website2/website/versioned_docs/version-0.20.4-incubating/getting-started-docker.md
@@ -27,3 +27,26 @@ The official Apache Heron Docker image is located at the
link below
<a target="_blank"
href="https://hub.docker.com/repository/docker/apache/heron">https://hub.docker.com/repository/docker/apache/heron</a>
+### Docker Quickstart
+In one terminal execute to start Heron in a container
+
+```bash
+$ docker run -it --rm \
+ -p 8889:8889 \
+ -p 8888:8888 \
+ --name local-heron \
+ apache/heron:0.20.4-incubating supervisord --nodaemon
+```
+In another terminal execute the following to deploy a job:
+```bash
+$ docker exec -it \
+ local-heron \
+ bash -c "heron submit sandbox /heron/examples/heron-eco-examples.jar
org.apache.heron.eco.Eco --eco-config-file /heron/examples/heron_wordcount.yaml"
+```
+
+View your job details by navigating to `localhost:8889` in your browser.
Congratulations, you've just deployed a Heron job in Docker!
+
+
+
+
+