0349.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Run Activepieces - Open Source Business Automation - In Docker</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Run Activepieces - Open Source Business Automation - In Docker">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="02/11/2024 06:39:28 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Run Activepieces - Open Source Business Automation - In Docker</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Activepieces?</h2>
  26. <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>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux based device</li>
  30. <li>Run the following commands in the terminal
  31. <div class="codeBlock"># install prerequisites<br />
  32. sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y<br />
  33. # add docker gpg key<br />
  34. 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 />
  35. # add docker software repository<br />
  36. 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 />
  37. # install docker<br />
  38. sudo apt install docker-ce docker-compose containerd.io -y<br />
  39. # enable and start docker service<br />
  40. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER<br />
  43. # reauthenticate for the new group membership to take effect<br />
  44. su - $USER</div>
  45. </li>
  46. </ol>
  47. <h2>Building Activepieces from Source</h2>
  48. <ol>
  49. <li>Continue with the following commands in a terminal window
  50. <div class="codeBlock"># create working directories<br />
  51. mkdir ~/docker/activepieces -p &amp;&amp; mkdir ~/docker/postgresql -p &amp;&amp; mkdir ~/docker/redis -p<br />
  52. # clone source code from github<br />
  53. git clone https://github.com/activepieces/activepieces.git ~/docker/activepieces<br />
  54. # change directory<br />
  55. cd ~/docker/activepieces<br />
  56. # create .env<br />
  57. sh tools/deploy.sh<br />
  58. # edit .env<br />
  59. sudo nano .env</div>
  60. </li>
  61. <li>Edit the following fields in the .env file
  62. <p>AP_FRONTEND_URL=http://&lt;%DNSorIP%&gt;:8990<br />
  63. <br />
  64. AP_POSTGRES_DATABASE=active_pieces<br />
  65. AP_POSTGRES_HOST=&lt;%Docker Host DNSorIP%&gt;<br />
  66. AP_POSTGRES_PORT=5432<br />
  67. AP_POSTGRES_USERNAME=active_pieces_rw<br />
  68. AP_POSTGRES_PASSWORD=Act1veP1EcES!<br />
  69. AP_REDIS_HOST=&lt;%Docker Host DNSorIP%&gt;<br />
  70. AP_REDIS_PORT=6379<br />
  71. <br />
  72. AP_TELEMETRY_ENABLED=false</p>
  73. </li>
  74. <li>Press CTRL+O, Enter, CTRL+X to write the changes and exit</li>
  75. <li>Continue with the following commands in the terminal
  76. <div class="codeBlock"># build the activepieces image<br />
  77. docker buildx build -t local/activepieces:latest .</div>
  78. </li>
  79. <li>The build process will take several minutes to complete</li>
  80. </ol>
  81. <h2>Running Activepieces</h2>
  82. <ol>
  83. <li>Continue following commands in a terminal window
  84. <div class="codeBlock"># note the sha256 in the build output, the first 12 characters can be used to interact with the new image<br />
  85. # list available images<br />
  86. docker image ls<br />
  87. # run the postgesql container<br />
  88. 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 />
  89. # run the redis container<br />
  90. docker run -d --name redis -v ~/docker/redis:/data --network host --restart=unless-stopped redis<br />
  91. # run activepieces container<br />
  92. # --dns is optional if using IP addresses instead of DNS names in .env<br />
  93. 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>
  94. </li>
  95. <li>Open a web browser and navigate to http://DNSorIP:8990</li>
  96. <li>Enter a first name, last name, email address and password &gt; Click Sign up</li>
  97. <li>Welcome to Activepieces</li>
  98. </ol>
  99. <p>Documentation: <a href="https://www.activepieces.com/docs/install/docker" target="_blank">https://www.activepieces.com/docs/install/docker</a></p> </div>
  100. </div>
  101. </body>
  102. </html>