From 12073ac7d8265fa481f01c1ae5dae8299b34467c Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 22 Nov 2021 21:53:18 +0100 Subject: [PATCH] Simplify cloud-init code --- README.md | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index c6e1c81..2b482e2 100644 --- a/README.md +++ b/README.md @@ -99,45 +99,29 @@ One-click deployment: * Heroku: * Google Cloud: -Providers supporting `cloud-init`, based on Ubuntu: +Providers supporting `cloud-init` (AWS, Oracle Cloud Infrastructure), based on Ubuntu: ``` yml #cloud-config packages: - - docker.io - - docker-compose + - python-pip + - python-lxml + - python-wheels - git - ca-certificates -groups: - - docker - -system_info: - default_user: - groups: [docker] - write_files: - - path: /docker-compose.yml - permissions: "0644" + - path: /etc/environment content: | - version: '3.7' - services: - app: - build: 'https://git.pictuga.com/pictuga/morss.git#master' - image: morss - ports: - - 80:8000 - environment: - - DEBUG=1 - - CACHE=diskcache - - CACHE_SIZE=1073741824 - restart: always + DEBUG=1 + CACHE=diskcache + CACHE_SIZE=1073741824 runcmd: - update-ca-certificates - - docker-compose -f /docker-compose.yml build --no-cache - - docker-compose -f /docker-compose.yml up -dV + - pip install git+https://git.pictuga.com/pictuga/morss.git#[full] gunicorn + - gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss ``` ## Run