roro 0.3.28 → 0.3.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +24 -8
- data/.idea/.gitignore +8 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/roro.iml +116 -0
- data/.idea/vcs.xml +6 -0
- data/CODE_OF_CONDUCT.md +31 -77
- data/lib/roro/cli/generate/generate_containers.rb +0 -5
- data/lib/roro/cli.rb +8 -8
- data/lib/roro/configurators/adventure_chooser.rb +1 -0
- data/lib/roro/configurators/adventure_picker.rb +1 -0
- data/lib/roro/configurators/adventure_writer.rb +4 -1
- data/lib/roro/configurators/configurator.rb +15 -8
- data/lib/roro/configurators/dependency_satisfier.rb +136 -0
- data/lib/roro/configurators/question_asker.rb +3 -3
- data/lib/roro/configurators/structure_builder.rb +2 -0
- data/lib/roro/configurators/validator.rb +2 -0
- data/lib/roro/dependencies/base.yml +90 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/_django.yml +7 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/django.yml +2 -8
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb +1 -1
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/%interpolated_story_name%.yml.tt → languages/python/python.yml} +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/templates/stage_one/%interpolated_stack_path% → languages/python}/templates/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/templates/stage_one/%interpolated_stack_path% → languages/python}/test/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/templates/stage_one/%interpolated_stack_path% → languages/python}/test/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/templates/stage_one/%interpolated_stack_path% → languages/python}/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/python/test/stage_one/stage_test.rb +42 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/ruby.yml +10 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/rails.yml +36 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/{stories/roll_your_own/test/stage_one/dummy → languages/ruby/stories/rails/templates/stage_one}/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/templates/stage_one/Dockerfile.tt +26 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/6_1.yml +44 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/.env +6 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/Dockerfile.tt +28 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/config/database.yml +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/config/initializers/sidekiq.rb +13 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/docker-compose.yml.tt +57 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/{sashimi/stories/django/test/stage_one/dummy → okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/entrypoints}/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/entrypoints/docker-entrypoint.sh +9 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/templates/stage_one/entrypoints/sidekiq-entrypoint.sh +9 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/{sashimi/stories/django/test/stage_two/dummy → okonomi/languages/ruby/stories/rails/versions/6_1/test}/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/{sashimi/stories/rails/templates/stage_one/Gemfile.lock.tt → okonomi/languages/ruby/stories/rails/versions/6_1/test/stage_one/.keep} +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/test/stage_one/stage_dummy/Gemfile +66 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/6_1/test/stage_one/stage_test.rb +38 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/7_0.yml +38 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/.env +6 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/Dockerfile.tt +28 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/config/database.yml +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/config/initializers/sidekiq.rb +13 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/docker-compose.yml.tt +57 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/entrypoints/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/entrypoints/docker-entrypoint.sh +9 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/templates/stage_one/entrypoints/sidekiq-entrypoint.sh +9 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/stage_one/stage_dummy/Gemfile +66 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/stage_one/stage_test.rb +37 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/okonomi.yml +4 -1
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/templates/stage_one/.dockerignore +18 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/templates/stage_one/.env +1 -1
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb +2 -10
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/sashimi.yml +1 -1
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/cert-manager.yml +32 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/echo1.yaml +32 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/echo2.yaml +32 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/echo_ingress.yaml.tt +18 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/prod_issuer.yaml.tt +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_1/staging_issuer.yaml.tt +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_2/echo_ingress.yaml.tt +25 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_3/echo_ingress.yaml.tt +25 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/templates/stage_3/ingress_nginx_svc.yaml.tt +31 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/test/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/test/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/kubernetes/stories/ingress/stories/nginx/stories/cert-manager/test/stage_one/stage_test.rb +32 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/rails.yml +48 -9
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/.env +4 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/.gitignore +55 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/docker-compose.yml.tt +36 -12
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/app-deployment.yaml.tt +72 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/app-service.yaml.tt +20 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/database-deployment.yaml.tt +59 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/database-service.yaml.tt +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/db-data-persistentvolumeclaim.yaml.tt +14 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/env-configmap.yaml.tt +12 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/redis-deployment.yaml.tt +33 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/redis-service.yaml.tt +19 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/secret.yaml.tt +11 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/k8s/sidekiq-deployment.yaml.tt +56 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/test/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/test/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/test/stage_one/stage_test.rb +33 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/{okonomi → sashimi}/stories/roll_your_own/roll_your_own.yml +1 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/%interpolated_story_name%.yml.tt +10 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/templates/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/stage_one/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/stage_one/stage_dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/stage_one/stage_test.rb.tt +41 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/templates/stage_one/.gitignore.tt +55 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roll_your_own/test/stage_one/dummy/.keep +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/{okonomi → sashimi}/stories/roll_your_own/test/stage_one/stage_one_test.rb +2 -1
- data/lib/roro/version.rb +1 -1
- data/lib/roro.rb +4 -10
- data/mise/containers/backend/env/.keep +0 -0
- data/mise/containers/backend/scripts/.keep +0 -0
- data/mise/containers/database/env/.keep +0 -0
- data/mise/containers/database/scripts/.keep +0 -0
- data/mise/containers/frontend/env/.keep +0 -0
- data/mise/containers/frontend/scripts/.keep +0 -0
- data/mise/scripts/.keep +0 -0
- data/roro.gemspec +3 -3
- metadata +115 -72
- data/.ruby-version +0 -1
- data/lib/roro/cli/roll_your_own.rb +0 -12
- data/lib/roro/configurator.rb +0 -15
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/stories/roll_your_own/templates/stage_one/%interpolated_stack_path%/test/stage_one/stage_test.rb.tt +0 -37
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/django.yml +0 -36
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_one/Dockerfile.tt +0 -7
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_one/docker-compose.yml.tt +0 -20
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_one/requirements.txt.tt +0 -2
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/templates/stage_two/settings.py +0 -130
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/django/test/stage_one/stage_one_test.rb +0 -37
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/expressjs/expressjs.yml +0 -7
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/expressjs/templates/stage_one/Dockerfile.tt +0 -14
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/expressjs/templates/stage_one/docker-compose.yml.tt +0 -21
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/Dockerfile.tt +0 -16
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/Gemfile.tt +0 -2
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_one/entrypoint.sh +0 -8
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/rails/templates/stage_two/database.yml.tt +0 -16
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/__MACOSX/scripts/._.DS_Store +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/.DS_Store +0 -0
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/base/bundler.sh +0 -22
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/base/git.sh +0 -21
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/base/rvm.sh +0 -38
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/base/utilities.sh +0 -53
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/base.sh +0 -6
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_idea.sh +0 -14
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh +0 -33
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/install_correct_bundler.sh +0 -21
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/install_rubies.sh +0 -6
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize.sh +0 -18
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/roro.sh +0 -15
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/source.sh +0 -28
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/utility/bundle_all.sh +0 -12
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/utility/git_pull_all.sh +0 -15
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/utility/rvm_install_all.sh +0 -12
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/utility/yarn_install_all.sh +0 -10
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/wordpress/templates/stage_one/docker-compose.yml.tt +0 -31
- data/lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/wordpress/wordpress.yml +0 -16
@@ -1,20 +0,0 @@
|
|
1
|
-
version: "3"
|
2
|
-
|
3
|
-
services:
|
4
|
-
db:
|
5
|
-
image: postgres
|
6
|
-
volumes:
|
7
|
-
- ./data/db:/var/lib/postgresql/data
|
8
|
-
environment:
|
9
|
-
- POSTGRES_DB=<%= @env[:base][:POSTGRES_DB][:value] %>
|
10
|
-
- POSTGRES_USER=<%= @env[:base][:POSTGRES_USER][:value] %>
|
11
|
-
- POSTGRES_PASSWORD=<%= @env[:base][:POSTGRES_PASSWORD][:value] %>
|
12
|
-
web:
|
13
|
-
build: .
|
14
|
-
command: python manage.py runserver 0.0.0.0:8000
|
15
|
-
volumes:
|
16
|
-
- .:/code
|
17
|
-
ports:
|
18
|
-
- "8000:8000"
|
19
|
-
depends_on:
|
20
|
-
- db
|
@@ -1,130 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
Django settings for <%= @env[:base][:POSTGRES_DB][:value] %> project.
|
3
|
-
|
4
|
-
Generated by 'django-admin startproject' using Django 3.2.8.
|
5
|
-
|
6
|
-
For more information on this file, see
|
7
|
-
https://docs.djangoproject.com/en/3.2/topics/settings/
|
8
|
-
|
9
|
-
For the full list of settings and their values, see
|
10
|
-
https://docs.djangoproject.com/en/3.2/ref/settings/
|
11
|
-
"""
|
12
|
-
|
13
|
-
from pathlib import Path
|
14
|
-
|
15
|
-
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
16
|
-
BASE_DIR = Path(__file__).resolve().parent.parent
|
17
|
-
|
18
|
-
|
19
|
-
# Quick-start development settings - unsuitable for production
|
20
|
-
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
|
21
|
-
|
22
|
-
# SECURITY WARNING: keep the secret key used in production secret!
|
23
|
-
SECRET_KEY = 'django-insecure-p!ndt2*mek)30&60gxab$j1s$_j1$p3wedmeq2a)3j4$q+py%r'
|
24
|
-
|
25
|
-
# SECURITY WARNING: don't run with debug turned on in production!
|
26
|
-
DEBUG = True
|
27
|
-
|
28
|
-
ALLOWED_HOSTS = ['0.0.0.0']
|
29
|
-
|
30
|
-
|
31
|
-
# Application definition
|
32
|
-
|
33
|
-
INSTALLED_APPS = [
|
34
|
-
'django.contrib.admin',
|
35
|
-
'django.contrib.auth',
|
36
|
-
'django.contrib.contenttypes',
|
37
|
-
'django.contrib.sessions',
|
38
|
-
'django.contrib.messages',
|
39
|
-
'django.contrib.staticfiles',
|
40
|
-
]
|
41
|
-
|
42
|
-
MIDDLEWARE = [
|
43
|
-
'django.middleware.security.SecurityMiddleware',
|
44
|
-
'django.contrib.sessions.middleware.SessionMiddleware',
|
45
|
-
'django.middleware.common.CommonMiddleware',
|
46
|
-
'django.middleware.csrf.CsrfViewMiddleware',
|
47
|
-
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
48
|
-
'django.contrib.messages.middleware.MessageMiddleware',
|
49
|
-
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
50
|
-
]
|
51
|
-
|
52
|
-
ROOT_URLCONF = '<%= @env[:base][:POSTGRES_DB][:value] %>.urls'
|
53
|
-
|
54
|
-
TEMPLATES = [
|
55
|
-
{
|
56
|
-
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
57
|
-
'DIRS': [],
|
58
|
-
'APP_DIRS': True,
|
59
|
-
'OPTIONS': {
|
60
|
-
'context_processors': [
|
61
|
-
'django.template.context_processors.debug',
|
62
|
-
'django.template.context_processors.request',
|
63
|
-
'django.contrib.auth.context_processors.auth',
|
64
|
-
'django.contrib.messages.context_processors.messages',
|
65
|
-
],
|
66
|
-
},
|
67
|
-
},
|
68
|
-
]
|
69
|
-
|
70
|
-
WSGI_APPLICATION = '<%= @env[:base][:POSTGRES_DB][:value] %>.wsgi.application'
|
71
|
-
|
72
|
-
|
73
|
-
# Database
|
74
|
-
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
|
75
|
-
|
76
|
-
DATABASES = {
|
77
|
-
'default': {
|
78
|
-
'ENGINE': 'django.db.backends.postgresql',
|
79
|
-
'NAME': 'postgres',
|
80
|
-
'USER': 'postgres',
|
81
|
-
'PASSWORD': 'postgres',
|
82
|
-
'HOST': 'db',
|
83
|
-
'PORT': 5432,
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
# Password validation
|
90
|
-
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
|
91
|
-
|
92
|
-
AUTH_PASSWORD_VALIDATORS = [
|
93
|
-
{
|
94
|
-
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
95
|
-
},
|
96
|
-
{
|
97
|
-
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
98
|
-
},
|
99
|
-
{
|
100
|
-
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
101
|
-
},
|
102
|
-
{
|
103
|
-
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
104
|
-
},
|
105
|
-
]
|
106
|
-
|
107
|
-
|
108
|
-
# Internationalization
|
109
|
-
# https://docs.djangoproject.com/en/3.2/topics/i18n/
|
110
|
-
|
111
|
-
LANGUAGE_CODE = 'en-us'
|
112
|
-
|
113
|
-
TIME_ZONE = 'UTC'
|
114
|
-
|
115
|
-
USE_I18N = True
|
116
|
-
|
117
|
-
USE_L10N = True
|
118
|
-
|
119
|
-
USE_TZ = True
|
120
|
-
|
121
|
-
|
122
|
-
# Static files (CSS, JavaScript, Images)
|
123
|
-
# https://docs.djangoproject.com/en/3.2/howto/static-files/
|
124
|
-
|
125
|
-
STATIC_URL = '/static/'
|
126
|
-
|
127
|
-
# Default primary key field type
|
128
|
-
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
|
129
|
-
|
130
|
-
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
@@ -1,37 +0,0 @@
|
|
1
|
-
require "test_helper"
|
2
|
-
|
3
|
-
describe 'Roro::CLI#rollon' do
|
4
|
-
|
5
|
-
# Given(:workbench) { }
|
6
|
-
# Given(:cli) { Roro::CLI.new }
|
7
|
-
# Given(:rollon) {
|
8
|
-
# stub_adventure
|
9
|
-
# stub_overrides
|
10
|
-
# quiet { cli.rollon }
|
11
|
-
# }
|
12
|
-
#
|
13
|
-
# context 'when fatsufodo django' do
|
14
|
-
# Given(:adventures) { %w[fatsufodo django] }
|
15
|
-
# Given(:overrides) { %w[] }
|
16
|
-
#
|
17
|
-
# context 'when default variables' do
|
18
|
-
# Given { rollon }
|
19
|
-
# Then { assert_file 'unstoppable_django/Dockerfile', /python:3/ }
|
20
|
-
# And { assert_file 'unstoppable_django/docker-compose.yml', /=password/ }
|
21
|
-
# end
|
22
|
-
#
|
23
|
-
# context 'when overrides variables' do
|
24
|
-
# When(:overrides) { %w[3.2 y y newpass] }
|
25
|
-
# Given { rollon }
|
26
|
-
# Then { assert_file 'unstoppable_django/Dockerfile', /python:3.2/ }
|
27
|
-
# And { assert_file 'unstoppable_django/docker-compose.yml', /=newpass/ }
|
28
|
-
# end
|
29
|
-
#
|
30
|
-
# context 'stage two' do
|
31
|
-
# When(:overrides) { %w[3.2 y y newpass] }
|
32
|
-
# Given { rollon }
|
33
|
-
# Then { assert_file 'unstoppable_django/Dockerfile', /python:3.2/ }
|
34
|
-
# And { assert_file 'unstoppable_django/docker-compose.yml', /=newpass/ }
|
35
|
-
# end
|
36
|
-
# end
|
37
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
version: '3'
|
2
|
-
services:
|
3
|
-
api:
|
4
|
-
image: sample-express-app
|
5
|
-
build: .
|
6
|
-
networks:
|
7
|
-
- backend
|
8
|
-
ports:
|
9
|
-
- "3000:3000"
|
10
|
-
volumes:
|
11
|
-
- ./:/usr/src/app
|
12
|
-
|
13
|
-
web-cli:
|
14
|
-
image: sample-express-app
|
15
|
-
networks:
|
16
|
-
- backend
|
17
|
-
command: sh
|
18
|
-
|
19
|
-
networks:
|
20
|
-
backend:
|
21
|
-
driver: bridge
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# syntax=docker/dockerfile:1
|
2
|
-
FROM ruby:2.5
|
3
|
-
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
|
4
|
-
WORKDIR /myapp
|
5
|
-
COPY Gemfile /myapp/Gemfile
|
6
|
-
COPY Gemfile.lock /myapp/Gemfile.lock
|
7
|
-
RUN bundle install
|
8
|
-
|
9
|
-
# Add a script to be executed every time the container starts.
|
10
|
-
COPY entrypoint.sh /usr/bin/
|
11
|
-
RUN chmod +x /usr/bin/entrypoint.sh
|
12
|
-
ENTRYPOINT ["entrypoint.sh"]
|
13
|
-
EXPOSE 3000
|
14
|
-
|
15
|
-
# Configure the main process to run when running the image
|
16
|
-
CMD ["rails", "server", "-b", "0.0.0.0"]
|
Binary file
|
Binary file
|
@@ -1,22 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
set -e
|
4
|
-
set -a
|
5
|
-
DEFAULT_BRANCH='development'
|
6
|
-
|
7
|
-
bundle_install () {
|
8
|
-
REPO=${1}
|
9
|
-
BRANCH=${2:-$DEFAULT_BRANCH}
|
10
|
-
|
11
|
-
cd "${WORKBENCH}/${REPO}"
|
12
|
-
rvm_ruby_and_gemset_use "${REPO}"
|
13
|
-
|
14
|
-
pretty_echo "Checking out git branch: " "${BRANCH}..."
|
15
|
-
pretty_echo "Bundling gems in: " "${WORKBENCH}/${REPO}"
|
16
|
-
pretty_echo "Git branch: " "$(git status)"
|
17
|
-
pretty_echo "Bundling with: " "${RORO_RVM_RUBY_AND_GEMSET}"
|
18
|
-
pretty_echo "Current directory: " "${PWD}"
|
19
|
-
pretty_echo "Current directory: " "${REPO}"
|
20
|
-
rvm_ruby_and_gemset_create "${REPO}" gem install bundler
|
21
|
-
bundle install
|
22
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
DEFAULT_BRANCH='development'
|
4
|
-
|
5
|
-
update_repo () {
|
6
|
-
REPO=${1}
|
7
|
-
BRANCH=${2:-$DEFAULT_BRANCH}
|
8
|
-
|
9
|
-
cd $WORKBENCH/$REPO
|
10
|
-
pretty_echo "Updating ${REPO}..."
|
11
|
-
pretty_echo "checking out ${BRANCH}..." " "
|
12
|
-
git checkout ${BRANCH}
|
13
|
-
pretty_echo "fetching origin..."
|
14
|
-
git fetch origin
|
15
|
-
pretty_echo "pulling latest ${BRANCH} for ${REPO} from origin..."
|
16
|
-
git pull origin $BRANCH
|
17
|
-
git submodule init .
|
18
|
-
|
19
|
-
SUCCESS+=("Successfully updated ${green}$REPO${default}, branch: ${BRANCH}")
|
20
|
-
}
|
21
|
-
|
@@ -1,38 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
set -e
|
4
|
-
set -a
|
5
|
-
|
6
|
-
rvm_ruby_and_gemset_set() {
|
7
|
-
case $1 in
|
8
|
-
api)
|
9
|
-
RORO_RVM_RUBY="jruby-9.2.9.0"
|
10
|
-
RORO_RVM_GEMSET="api"
|
11
|
-
;;
|
12
|
-
client-api)
|
13
|
-
RORO_RVM_RUBY="ruby-3.0.1"
|
14
|
-
RORO_RVM_GEMSET="client-api"
|
15
|
-
;;
|
16
|
-
public-api)
|
17
|
-
RORO_RVM_RUBY="2.7.2"
|
18
|
-
RORO_RVM_GEMSET="public-api"
|
19
|
-
;;
|
20
|
-
tokenizer-rails)
|
21
|
-
RORO_RVM_RUBY="2.6.5"
|
22
|
-
RORO_RVM_GEMSET="tokenizer-rails"
|
23
|
-
;;
|
24
|
-
esac
|
25
|
-
|
26
|
-
RORO_RVM_RUBY_AND_GEMSET="${RORO_RVM_RUBY}@${RORO_RVM_GEMSET}"
|
27
|
-
}
|
28
|
-
|
29
|
-
rvm_ruby_and_gemset_use() {
|
30
|
-
rvm_ruby_and_gemset_set $1
|
31
|
-
rvm use "${RORO_RVM_RUBY_AND_GEMSET}" --create
|
32
|
-
}
|
33
|
-
|
34
|
-
rvm_ruby_and_gemset_create() {
|
35
|
-
rvm_ruby_and_gemset_set $1
|
36
|
-
rvm install "${RORO_RVM_RUBY}"
|
37
|
-
rvm use "${RORO_RVM_RUBY_AND_GEMSET}" --create
|
38
|
-
}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
#!/bin/zsh
|
2
|
-
|
3
|
-
echo $DEV_ENV
|
4
|
-
source_environment() {
|
5
|
-
if [ -n "$DEV_ENV" ]; then
|
6
|
-
ENV_SOURCED_FROM=RubyMine
|
7
|
-
else
|
8
|
-
ENV_SOURCED_FROM=${ENVDIR}/current.env
|
9
|
-
. "${ENV_SOURCED_FROM}"
|
10
|
-
fi
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
pretty_echo() {
|
15
|
-
echo " ${DEFAULT_COLOR}${1}"
|
16
|
-
echo "\t${GREEN}${2}${DEFAULT_COLOR}"
|
17
|
-
}
|
18
|
-
|
19
|
-
include() {
|
20
|
-
FILE="${RORODIR}/${1}"
|
21
|
-
if [ -f $FILE ]; then
|
22
|
-
pretty_echo "Sourcing:" "${GREEN}${FILE}" >&2
|
23
|
-
source $FILE
|
24
|
-
else
|
25
|
-
pretty_echo "No override at:" "${YELLOW}${FILE}" >&2
|
26
|
-
fi
|
27
|
-
}
|
28
|
-
|
29
|
-
confirm_if_overwrite () {
|
30
|
-
DIRECTORY="${PWD}/${1}"
|
31
|
-
if test -d "${DIRECTORY}"; then
|
32
|
-
echo "${DIRECTORY} exists."
|
33
|
-
read -p "Copy over existing ${DIRECTORY} directory? " answer
|
34
|
-
case ${answer:0:1} in y|Y )
|
35
|
-
mkdir -p backup
|
36
|
-
mv ${DIRECTORY} ./backup/
|
37
|
-
;;
|
38
|
-
* )
|
39
|
-
;;
|
40
|
-
esac
|
41
|
-
fi
|
42
|
-
}
|
43
|
-
|
44
|
-
yarn_install() {
|
45
|
-
REPO=${1}
|
46
|
-
|
47
|
-
cd "${WORKBENCH}/${REPO}"
|
48
|
-
pretty_echo "Initializing any git submodules..."
|
49
|
-
git submodule init .
|
50
|
-
pretty_echo "Running yarn install in:" "${PWD}"
|
51
|
-
yarn install
|
52
|
-
cd ..
|
53
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/bin/zsh
|
2
|
-
|
3
|
-
DEFAULT_IDEA_FILE=bench
|
4
|
-
|
5
|
-
IDEA_FILE=${1:-$DEFAULT_IDEA_FILE}
|
6
|
-
|
7
|
-
pretty_echo "Copying RubyMine .idea file: " "${IDEA_FILE}"
|
8
|
-
|
9
|
-
confirm_if_overwrite .idea
|
10
|
-
|
11
|
-
mkdir -p .idea
|
12
|
-
|
13
|
-
cp -r ./roro/ideas/${IDEA_FILE}/runConfigurations .idea/
|
14
|
-
|
@@ -1,33 +0,0 @@
|
|
1
|
-
#!/bin/zsh
|
2
|
-
|
3
|
-
DEFAULT_BRANCH='development'
|
4
|
-
|
5
|
-
clone_repo () {
|
6
|
-
REPO=${1}
|
7
|
-
BRANCH=${2:-$DEFAULT_BRANCH}
|
8
|
-
|
9
|
-
echo "Cloning ${REPO} into ${PWD}..."
|
10
|
-
|
11
|
-
confirm_if_overwrite ${REPO}
|
12
|
-
|
13
|
-
{
|
14
|
-
git clone git@bitbucket.org:corptools/${REPO}.git
|
15
|
-
} || {
|
16
|
-
git clone https://${LOGNAME}@bitbucket.org/corptools/roro.git
|
17
|
-
}
|
18
|
-
|
19
|
-
SUCCESS+=("Successfully cloned ${green}$REPO${default}")
|
20
|
-
}
|
21
|
-
|
22
|
-
clone_repo api
|
23
|
-
clone_repo client-api
|
24
|
-
clone_repo ct-frontend
|
25
|
-
clone_repo frontend
|
26
|
-
clone_repo internal-docs master
|
27
|
-
clone_repo affiliate-api-docs master
|
28
|
-
clone_repo public-api
|
29
|
-
clone_repo tokenizer-rails
|
30
|
-
|
31
|
-
for MESSAGE in "${SUCCESS[@]}"; do
|
32
|
-
echo $MESSAGE
|
33
|
-
done
|
@@ -1,21 +0,0 @@
|
|
1
|
-
|
2
|
-
nipbin/zsh
|
3
|
-
|
4
|
-
specify_bundler () {
|
5
|
-
|
6
|
-
GEMSET=$2
|
7
|
-
echo Using ${1}@${2}
|
8
|
-
rvm use ${1}@${2}
|
9
|
-
echo Uninstalling bundler
|
10
|
-
gem uninstall bundler --force
|
11
|
-
echo Installing company bundler
|
12
|
-
gem install bundler -v 1.9.9
|
13
|
-
bundle
|
14
|
-
|
15
|
-
}
|
16
|
-
|
17
|
-
specify_bundler 2.5.5 api
|
18
|
-
specify_bundler jruby-9.1.17 api
|
19
|
-
specify_bundler 2.6.5 tokenizer-rails
|
20
|
-
specify_bundler 2.7.2 public-api
|
21
|
-
specify_bundler 3.0 client-api
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
set -a
|
4
|
-
set -e
|
5
|
-
|
6
|
-
WORKBENCH="${PWD}"
|
7
|
-
cp ./roro/templates/roro.env.template ./roro/env/roro.env
|
8
|
-
|
9
|
-
source ${WORKBENCH}/roro/scripts/roro.sh
|
10
|
-
|
11
|
-
cp "${TEMPLATEDIR}/Caddyfile.template" "${WORKBENCH}/Caddyfile"
|
12
|
-
cp "${TEMPLATEDIR}/current.env.template" "${RORODIR}/env/current.env"
|
13
|
-
|
14
|
-
|
15
|
-
source "${SCRIPTDIR}"/initialize/clone_idea.sh
|
16
|
-
source "${SCRIPTDIR}"/initialize/clone_repos.sh
|
17
|
-
source "${SCRIPTDIR}"/initialize/install_rubies.sh
|
18
|
-
source "${SCRIPTDIR}"/utility/bundle_all.sh
|
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
set -a
|
4
|
-
set -e
|
5
|
-
|
6
|
-
BENCH_APP="${PWD##*/}"
|
7
|
-
WORKBENCH="$(dirname ${PWD})"
|
8
|
-
echo ${BENCH_APP}
|
9
|
-
echo ${WORKBENCH}
|
10
|
-
|
11
|
-
source ${WORKBENCH}/roro/scripts/roro.sh
|
12
|
-
source "${SCRIPTDIR}"/base.sh
|
13
|
-
|
14
|
-
source_environment
|
15
|
-
|
16
|
-
include "env/base.env"
|
17
|
-
include "containers/database/env/base.env"
|
18
|
-
include "containers/database/env/${DEV_ENV}.env"
|
19
|
-
include "containers/${BENCH_APP}/env/base.env"
|
20
|
-
include "containers/${BENCH_APP}/env/${DEV_ENV}.env"
|
21
|
-
|
22
|
-
pretty_echo "Dev environment sourced from: " "${ENV_SOURCED_FROM}"
|
23
|
-
pretty_echo "DEV_ENV: " "${DEV_ENV}"
|
24
|
-
pretty_echo "Bench app: " "${BENCH_APP}"
|
25
|
-
pretty_echo "Ruby and Gemset: " "${RORO_RVM_RUBY_AND_GEMSET}"
|
26
|
-
pretty_echo "Database host: " "${DB_HOST}"
|
27
|
-
pretty_echo "Database password: " "${DB_PASSWORD}"
|
28
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/bin/zsh --login
|
2
|
-
|
3
|
-
set -e
|
4
|
-
set -a
|
5
|
-
|
6
|
-
WORKBENCH="${PWD}"
|
7
|
-
source ${WORKBENCH}/roro/scripts/roro.sh
|
8
|
-
|
9
|
-
update_repo api
|
10
|
-
update_repo client-api
|
11
|
-
update_repo ct-frontend
|
12
|
-
update_repo frontend
|
13
|
-
update_repo internal-docs master
|
14
|
-
update_repo affiliate-api-docs master
|
15
|
-
update_repo public-api
|
@@ -1,31 +0,0 @@
|
|
1
|
-
version: "3"
|
2
|
-
|
3
|
-
services:
|
4
|
-
db:
|
5
|
-
image: mysql:5.7
|
6
|
-
volumes:
|
7
|
-
- db_data:/var/lib/mysql
|
8
|
-
restart: always
|
9
|
-
environment:
|
10
|
-
MYSQL_ROOT_PASSWORD: somewordpress
|
11
|
-
MYSQL_DATABASE: wordpress
|
12
|
-
MYSQL_USER: wordpress
|
13
|
-
MYSQL_PASSWORD: wordpress
|
14
|
-
|
15
|
-
wordpress:
|
16
|
-
depends_on:
|
17
|
-
- db
|
18
|
-
image: wordpress:latest
|
19
|
-
volumes:
|
20
|
-
- wordpress_data:/var/www/html
|
21
|
-
ports:
|
22
|
-
- "8000:80"
|
23
|
-
restart: always
|
24
|
-
environment:
|
25
|
-
WORDPRESS_DB_HOST: db:3306
|
26
|
-
WORDPRESS_DB_USER: wordpress
|
27
|
-
WORDPRESS_DB_PASSWORD: wordpress
|
28
|
-
WORDPRESS_DB_NAME: wordpress
|
29
|
-
volumes:
|
30
|
-
db_data: {}
|
31
|
-
wordpress_data: {}
|