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

liugddx pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new fb263ae9c2d [Feature][Doc] Add Docker Doc #5513 (#267)
fb263ae9c2d is described below

commit fb263ae9c2d14e6219a8f0ee80fe5af6754abfed
Author: xiamidavid00 <[email protected]>
AuthorDate: Fri Sep 22 17:34:06 2023 +0800

    [Feature][Doc] Add Docker Doc #5513 (#267)
    
    * Add documents for Zeta engine running on Docker
    
    * Add documents for Zeta engine running on Docker
    
    * modify the document docker.md
    
    ---------
    
    Co-authored-by: w_weibangjia <[email protected]>
---
 .../version-2.3.3/start-v2/docker/docker.md        | 74 +++++++++++++++++++++-
 1 file changed, 72 insertions(+), 2 deletions(-)

diff --git a/versioned_docs/version-2.3.3/start-v2/docker/docker.md 
b/versioned_docs/version-2.3.3/start-v2/docker/docker.md
index fd927deabbd..d388c241e7c 100644
--- a/versioned_docs/version-2.3.3/start-v2/docker/docker.md
+++ b/versioned_docs/version-2.3.3/start-v2/docker/docker.md
@@ -3,7 +3,77 @@
 sidebar_position: 3
 -------------------
 
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
 # Set Up with Docker
 
-<!-- TODO -->
--->
+This section provides a quick guide to using SeaTunnel with Docker.
+
+## Prerequisites
+
+We assume that you have a local installations of the following:
+- [docker](https://docs.docker.com/)
+- [A seatunnel that has already executed the 
install-plugin.sh](https://seatunnel.apache.org/docs/start-v2/locally/deployment/)
+
+## Installation
+
+### SeaTunnel docker image
+
+## Step 1:
+
+To run the image with SeaTunnel, first compress your local seatuune into a 
compressed package:
+
+```shell
+sh apache-seatunnel-2.3.3/bin/install-plugin.sh
+tar -czvf  apache-seatunnel-2.3.3-bin.tar.gz  apache-seatunnel-2.3.3
+```
+
+## Step 2:
+
+Create a `Dockerfile`:
+
+```Dockerfile
+FROM openjdk:8
+
+ENV SEATUNNEL_VERSION="2.3.3"
+COPY /apache-seatunnel-${SEATUNNEL_VERSION}-bin.tar.gz 
/opt/apache-seatunnel-${SEATUNNEL_VERSION}-bin.tar.gz
+WORKDIR /opt
+RUN tar -xzvf apache-seatunnel-${SEATUNNEL_VERSION}-bin.tar.gz
+RUN mv apache-seatunnel-${SEATUNNEL_VERSION} seatunnel
+RUN rm -f /opt/apache-seatunnel-${SEATUNNEL_VERSION}-bin.tar.gz
+WORKDIR /opt/seatunnel
+ENTRYPOINT ["sh","-c"," bin/seatunnel.sh --config $config  -e local"]
+
+```
+
+## Step 3:
+
+Then run the following commands to build the image:
+
+```bash
+docker build -t seatunnel:2.3.3 -f Dockerfile .
+```
+
+## Step 4:
+
+You can start the container using the following command:
+
+```bash
+docker run   -e config="/container/path" -v /host/path:/container/path -d 
seatunnel:2.3.3
+```
+
+For example
+
+```bash
+docker run   -e config="/data/seatunnel.streaming.conf" -v 
/data/apache-seatunnel-2.3.3/config/v2.streaming.conf.template:/data/seatunnel.streaming.conf
  -d  seatunnel:test
+```
+
+## Step 5:
+
+Finally, you can use the following command to view the logs
+
+```bash
+docker logs CONTAINER ID
+```
+

Reply via email to