Преглед на файлове

0349: Run Activepieces - Open Source Business Automation - In Docker

i12bretro преди 1 година
родител
ревизия
71a8eed1ce
променени са 1 файла, в които са добавени 111 реда и са изтрити 0 реда
  1. 111 0
      0349.html

+ 111 - 0
0349.html

@@ -0,0 +1,111 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Run Activepieces - Open Source Business Automation - In Docker</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Web Based,Web Based Tools,Application Integration Platform,Container,Containerization,Docker,Docker How To,Docker Simplified,Graphical Software Integration,Integomat Alternative,Linux,Make Alternative,Open Source,Open Source Software,Ubuntu,Workflow Automation,Activepieces,N8n Alternative,Containerize,Docker Container,Docker Tutorial,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Run Activepieces - Open Source Business Automation - In Docker">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="02/11/2024 06:39:28 AM" />
+				          <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
+				  <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
+				        <script type="text/javascript" src="includes/js/steps.js"></script>
+        <link href="css/steps.css" rel="stylesheet" type="text/css" />
+      </head>
+      <body>
+        <div id="gridContainer">
+          <div class="topMargin"></div>
+          <div id="listName" class="topMargin">
+            <h1>Run Activepieces - Open Source Business Automation - In Docker</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>What is Activepieces?</h2>
+
+<blockquote><em>[Activepieces is an open-source] alternative to Zapier. Automate your work for free and without writing code, keep your data on your machine. -<a href="https://github.com/activepieces/activepieces" target="_blank">https://github.com/activepieces/activepieces</a></em></blockquote>
+
+<h2>Installing Docker</h2>
+
+<ol>
+	<li>Log into the Linux based device</li>
+	<li>Run the following commands in the terminal
+	<div class="codeBlock"># install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y<br />
+	# add docker gpg key<br />
+	curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
+	# add docker software repository<br />
+	sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# enable and start docker service<br />
+	sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Building Activepieces from Source</h2>
+
+<ol>
+	<li>Continue with the following commands in a terminal window
+	<div class="codeBlock"># create working directories<br />
+	mkdir ~/docker/activepieces -p &amp;&amp; mkdir ~/docker/postgresql -p &amp;&amp; mkdir ~/docker/redis -p<br />
+	# clone source code from github<br />
+	git clone https://github.com/activepieces/activepieces.git ~/docker/activepieces<br />
+	# change directory<br />
+	cd ~/docker/activepieces<br />
+	# create .env<br />
+	sh tools/deploy.sh<br />
+	# edit .env<br />
+	sudo nano .env</div>
+	</li>
+	<li>Edit the following fields in the .env file
+	<p>AP_FRONTEND_URL=http://&lt;%DNSorIP%&gt;:8990<br />
+	<br />
+	AP_POSTGRES_DATABASE=active_pieces<br />
+	AP_POSTGRES_HOST=&lt;%Docker Host DNSorIP%&gt;<br />
+	AP_POSTGRES_PORT=5432<br />
+	AP_POSTGRES_USERNAME=active_pieces_rw<br />
+	AP_POSTGRES_PASSWORD=Act1veP1EcES!<br />
+	AP_REDIS_HOST=&lt;%Docker Host DNSorIP%&gt;<br />
+	AP_REDIS_PORT=6379<br />
+	<br />
+	AP_TELEMETRY_ENABLED=false</p>
+	</li>
+	<li>Press CTRL+O, Enter, CTRL+X to write the changes and exit</li>
+	<li>Continue with the following commands in the terminal
+	<div class="codeBlock"># build the activepieces image<br />
+	docker buildx build -t local/activepieces:latest .</div>
+	</li>
+	<li>The build process will take several minutes to complete</li>
+</ol>
+
+<h2>Running Activepieces</h2>
+
+<ol>
+	<li>Continue following commands in a terminal window
+	<div class="codeBlock"># note the sha256 in the build output, the first 12 characters can be used to interact with the new image<br />
+	# list available images<br />
+	docker image ls<br />
+	# run the postgesql container<br />
+	docker run -d --name postgres -e POSTGRES_USER=active_pieces_rw -e POSTGRES_PASSWORD=Act1veP1EcES! -e POSTGRES_DB=active_pieces -e POSTGRES_INITDB_ARGS=&quot;--encoding=UTF-8&quot; --network host -v ~/docker/postgresql:/var/lib/postgresql/data --restart=unless-stopped postgres:latest<br />
+	# run the redis container<br />
+	docker run -d --name redis -v ~/docker/redis:/data --network host --restart=unless-stopped redis<br />
+	# run activepieces container<br />
+	# --dns is optional if using IP addresses instead of DNS names in .env<br />
+	docker run -d --name=activepieces --env-file ~/docker/activepieces/.env --dns=&quot;192.168.0.1&quot; -p 8990:80 --restart=unless-stopped local/activepieces</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8990</li>
+	<li>Enter a first name, last name, email address and password &gt; Click Sign up</li>
+	<li>Welcome to Activepieces</li>
+</ol>
+
+<p>Documentation: <a href="https://www.activepieces.com/docs/install/docker" target="_blank">https://www.activepieces.com/docs/install/docker</a></p>          </div>
+        </div>
+      </body>
+    </html>
+