cloudron 8.0.1 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/bin/cloudron +8 -12
  2. package/package.json +1 -1
  3. package/src/actions.js +104 -34
  4. package/src/appstore-actions.js +8 -56
  5. package/src/build-actions.js +4 -1
  6. package/src/templates/flask/CloudronManifest.json +25 -0
  7. package/src/templates/flask/Dockerfile +16 -0
  8. package/src/templates/flask/app/__init__.py +5 -0
  9. package/src/templates/flask/app/views.py +5 -0
  10. package/src/templates/flask/dockerignore +5 -0
  11. package/src/templates/flask/requirements.txt +1 -0
  12. package/src/templates/flask/run.py +4 -0
  13. package/src/templates/flask/start.sh +8 -0
  14. package/src/templates/flask/supervisor/uwsgi.conf +12 -0
  15. package/src/templates/flask/template.json +3 -0
  16. package/src/templates/flask/uwsgi.ini +6 -0
  17. package/src/templates/lamp/CloudronManifest.json +26 -0
  18. package/src/templates/lamp/Dockerfile +27 -0
  19. package/src/templates/lamp/apache/app.conf +17 -0
  20. package/src/templates/lamp/apache/mpm_prefork.conf +7 -0
  21. package/src/templates/lamp/dockerignore +4 -0
  22. package/src/templates/lamp/index.php +18 -0
  23. package/src/templates/lamp/start.sh +9 -0
  24. package/src/templates/lamp/template.json +3 -0
  25. package/src/templates/lamp-composer/CloudronManifest.json +26 -0
  26. package/src/templates/lamp-composer/Dockerfile +30 -0
  27. package/src/templates/lamp-composer/apache/app.conf +17 -0
  28. package/src/templates/lamp-composer/apache/mpm_prefork.conf +7 -0
  29. package/src/templates/lamp-composer/composer.json +8 -0
  30. package/src/templates/lamp-composer/dockerignore +5 -0
  31. package/src/templates/lamp-composer/public/index.php +20 -0
  32. package/src/templates/lamp-composer/start.sh +9 -0
  33. package/src/templates/lamp-composer/template.json +3 -0
  34. package/src/templates/lemp/CloudronManifest.json +26 -0
  35. package/src/templates/lemp/Dockerfile +27 -0
  36. package/src/templates/lemp/dockerignore +4 -0
  37. package/src/templates/lemp/index.php +18 -0
  38. package/src/templates/lemp/nginx/app.conf +22 -0
  39. package/src/templates/lemp/start.sh +11 -0
  40. package/src/templates/lemp/template.json +3 -0
  41. package/src/templates/nextjs/CloudronManifest.json +25 -0
  42. package/src/templates/nextjs/Dockerfile +14 -0
  43. package/src/templates/nextjs/app/layout.js +12 -0
  44. package/src/templates/nextjs/app/page.js +7 -0
  45. package/src/templates/nextjs/dockerignore +5 -0
  46. package/src/templates/nextjs/next.config.mjs +6 -0
  47. package/src/templates/nextjs/package.json +15 -0
  48. package/src/templates/nextjs/start.sh +9 -0
  49. package/src/templates/nextjs/template.json +3 -0
  50. package/src/templates/nodejs/CloudronManifest.json +25 -0
  51. package/src/templates/nodejs/Dockerfile +10 -0
  52. package/src/templates/nodejs/dockerignore +4 -0
  53. package/src/templates/nodejs/package.json +11 -0
  54. package/src/templates/nodejs/server.js +12 -0
  55. package/src/templates/nodejs/start.sh +9 -0
  56. package/src/templates/nodejs/template.json +3 -0
  57. package/src/templates/nodejs-mongodb/CloudronManifest.json +26 -0
  58. package/src/templates/nodejs-mongodb/Dockerfile +10 -0
  59. package/src/templates/nodejs-mongodb/dockerignore +4 -0
  60. package/src/templates/nodejs-mongodb/package.json +14 -0
  61. package/src/templates/nodejs-mongodb/server.js +24 -0
  62. package/src/templates/nodejs-mongodb/start.sh +9 -0
  63. package/src/templates/nodejs-mongodb/template.json +3 -0
  64. package/src/templates/rails/CloudronManifest.json +26 -0
  65. package/src/templates/rails/Dockerfile +16 -0
  66. package/src/templates/rails/Gemfile +5 -0
  67. package/src/templates/rails/config/database.yml +4 -0
  68. package/src/templates/rails/config/puma.rb +9 -0
  69. package/src/templates/rails/dockerignore +7 -0
  70. package/src/templates/rails/public/index.html +12 -0
  71. package/src/templates/rails/start.sh +14 -0
  72. package/src/templates/rails/supervisor/puma.conf +12 -0
  73. package/src/templates/rails/template.json +3 -0
  74. package/src/templates/static/CloudronManifest.json +25 -0
  75. package/src/templates/static/Dockerfile +17 -0
  76. package/src/templates/static/apache/app.conf +13 -0
  77. package/src/templates/static/apache/mpm_prefork.conf +7 -0
  78. package/src/templates/static/dockerignore +3 -0
  79. package/src/templates/static/public/index.html +11 -0
  80. package/src/templates/static/start.sh +7 -0
  81. package/src/templates/static/template.json +3 -0
  82. package/test/test.js +1 -1
  83. /package/src/templates/{CloudronManifest.appstore.json.ejs → default/CloudronManifest.json.ejs} +0 -0
  84. /package/src/templates/{CloudronManifest.json.ejs → default/CloudronManifest.minimal.json.ejs} +0 -0
  85. /package/src/templates/{Dockerfile.ejs → default/Dockerfile.ejs} +0 -0
  86. /package/src/templates/{dockerignore.ejs → default/dockerignore.ejs} +0 -0
  87. /package/src/templates/{start.sh.ejs → default/start.sh.ejs} +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "description": "Ruby on Rails app with Puma, Supervisor, and PostgreSQL"
3
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "id": "",
3
+ "version": "0.1.0",
4
+ "upstreamVersion": "",
5
+ "minBoxVersion": "9.0.0",
6
+ "title": "",
7
+ "author": "",
8
+ "description": "file://DESCRIPTION.md",
9
+ "tagline": "",
10
+ "website": "",
11
+ "contactEmail": "",
12
+ "iconUrl": "file://logo.png",
13
+ "healthCheckPath": "/",
14
+ "mediaLinks": [],
15
+ "httpPort": 3000,
16
+ "tags": [],
17
+ "changelog": "file://CHANGELOG",
18
+ "postInstallMessage": "file://POSTINSTALL.md",
19
+ "documentationUrl": "",
20
+ "forumUrl": "",
21
+ "addons": {
22
+ "localstorage": {}
23
+ },
24
+ "manifestVersion": 2
25
+ }
@@ -0,0 +1,17 @@
1
+ FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
2
+
3
+ RUN mkdir -p /app/code
4
+ WORKDIR /app/code
5
+
6
+ RUN rm /etc/apache2/sites-enabled/*
7
+ RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
8
+ COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
9
+
10
+ RUN a2disconf other-vhosts-access-log
11
+ COPY apache/app.conf /etc/apache2/sites-enabled/app.conf
12
+ RUN echo "Listen 3000" > /etc/apache2/ports.conf
13
+
14
+ COPY public/ /app/code/public/
15
+ COPY start.sh /app/code/
16
+
17
+ CMD [ "/app/code/start.sh" ]
@@ -0,0 +1,13 @@
1
+ <VirtualHost *:3000>
2
+ DocumentRoot /app/code/public
3
+
4
+ ErrorLog "|/bin/cat"
5
+ CustomLog "|/bin/cat" combined
6
+
7
+ <Directory /app/code/public/>
8
+ Options +FollowSymLinks
9
+ AllowOverride All
10
+ Require all granted
11
+ </Directory>
12
+
13
+ </VirtualHost>
@@ -0,0 +1,7 @@
1
+ <IfModule mpm_prefork_module>
2
+ StartServers 2
3
+ MinSpareServers 2
4
+ MaxSpareServers 3
5
+ MaxRequestWorkers 15
6
+ MaxConnectionsPerChild 100
7
+ </IfModule>
@@ -0,0 +1,3 @@
1
+ .git
2
+ .gitignore
3
+ .dockerignore
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Cloudron App</title>
7
+ </head>
8
+ <body>
9
+ <h1>Hello from Cloudron!</h1>
10
+ </body>
11
+ </html>
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+
3
+ set -eu
4
+
5
+ APACHE_CONFDIR="" source /etc/apache2/envvars
6
+ rm -f "${APACHE_PID_FILE}"
7
+ exec /usr/sbin/apache2 -DFOREGROUND
@@ -0,0 +1,3 @@
1
+ {
2
+ "description": "Static website with Apache"
3
+ }
package/test/test.js CHANGED
@@ -15,7 +15,7 @@ const cloudron = process.env.CLOUDRON;
15
15
  const username = process.env.USERNAME;
16
16
  const password = process.env.PASSWORD;
17
17
 
18
- const applocation = 'test';
18
+ const applocation = 'cli-test';
19
19
  let app;
20
20
 
21
21
  const CLI = path.resolve(import.meta.dirname + '/../bin/cloudron');