kowl 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
- data/lib/kowl/actions.rb +1 -1
- data/lib/kowl/docker.rb +2 -2
- data/lib/kowl/generators/overrides/app_generator.rb +0 -2
- data/lib/kowl/helpers.rb +1 -1
- data/lib/kowl/templates/Gemfile.erb.tt +1 -4
- data/lib/kowl/templates/docker/Dockerfile.alpine.tt +1 -0
- data/lib/kowl/templates/docker/Dockerfile.debian.tt +5 -4
- data/lib/kowl/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7248af24fc08fcb09941da41ff850d26831b0e1d23027fa4d1a02a95ae7a481b
|
4
|
+
data.tar.gz: d197406884eeb5dcff024c40a7d429b576872f03d4a1b19ad47a592fcbe0ec77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc609538f6862c79ca505e45aec46147d91adb4dbb982ed99cebdb9cc05bb00cb35f42172303698fe513bb400695c7bf076b9eba7699092d628ca9d2bd3cea14
|
7
|
+
data.tar.gz: 05d4cdb5e5e065e3000cf8b566b6ad8c2ca01ebe9117e2c9158e5dfe672f65970a51ace72f995e27bb22a10e1e0fed0a4b440491124c02ca4186f0430eedcfec
|
data/lib/kowl/actions.rb
CHANGED
@@ -135,7 +135,7 @@ module Kowl
|
|
135
135
|
end
|
136
136
|
|
137
137
|
# Add PgHero engine mount to the routes if the database iss postgresql
|
138
|
-
# @param database [String] A string containing the applications defined database
|
138
|
+
# @param database [String] A string containing the applications defined database adapter
|
139
139
|
# @return [String] the pghero dashboard mount path, if postgresql will be used
|
140
140
|
def database_route(database = 'sqlite3')
|
141
141
|
return '' unless database.to_s == 'postgresql'
|
data/lib/kowl/docker.rb
CHANGED
@@ -389,7 +389,7 @@ module Kowl
|
|
389
389
|
# @return [String] an apk string for installing dependencies in the dockerfile
|
390
390
|
def alpine_docker_dependencies(options = {})
|
391
391
|
# core dependencies
|
392
|
-
dependencies = %w[brotli dumb-init git sqlite sqlite-dev tzdata vips vips-dev yarn]
|
392
|
+
dependencies = %w[brotli dumb-init git python3 sqlite sqlite-dev tzdata vips vips-dev yarn]
|
393
393
|
# optional dependencies
|
394
394
|
dependencies << 'graphviz' unless options[:skip_erd]
|
395
395
|
dependencies << 'libsodium-dev' if options[:encrypt]
|
@@ -413,7 +413,7 @@ module Kowl
|
|
413
413
|
# @param options [Hash] a list of the applictions specific options to determine what all dependencies are required
|
414
414
|
# @return [String] an `apt-get install` with a list of all the applications dependencies listed
|
415
415
|
def debian_docker_dependencies(options = {})
|
416
|
-
dependencies = %w[brotli curl git libjemalloc-dev libsqlite3-dev libvips sqlite3 wget]
|
416
|
+
dependencies = %w[brotli curl git libjemalloc-dev libsqlite3-dev libvips python sqlite3 wget]
|
417
417
|
|
418
418
|
# optional dependencies
|
419
419
|
dependencies << 'graphviz' unless options[:skip_erd]
|
@@ -191,8 +191,6 @@ module Kowl
|
|
191
191
|
extract_css: true
|
192
192
|
# Cache manifest.json for performance
|
193
193
|
cache_manifest: true
|
194
|
-
# Compile staging packs to a separate directory
|
195
|
-
public_output_path: packs-staging
|
196
194
|
STAGING
|
197
195
|
append_to_file('config/webpacker.yml', "\n#{webpacker_str}")
|
198
196
|
end
|
data/lib/kowl/helpers.rb
CHANGED
@@ -113,7 +113,7 @@ def dh(str = '')
|
|
113
113
|
end
|
114
114
|
|
115
115
|
# Used to create and return the .env file database configuration for the specific environment
|
116
|
-
# @param database [String] the database
|
116
|
+
# @param database [String] the database adapter in which the application will be connecting to
|
117
117
|
# @param env [String] the environment which the env file is bring created for
|
118
118
|
# @return [String] a list of database parameters for the specific database connection
|
119
119
|
def dotfile_databases(database, env)
|
@@ -5,10 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
5
|
|
6
6
|
# ruby '<%= RUBY_VERSION %>'
|
7
7
|
gem 'rails', '<%= Kowl::RAILS_VERSION %>'
|
8
|
-
gem 'puma', '
|
9
|
-
# gem 'iodine', '~> 0.7' # An extremely fast and concurrent Application Server (works well with websockets)
|
10
|
-
# gem 'falcon' # A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS
|
11
|
-
# Falon => https://www.codeotaku.com/journal/2019-02/falcon-early-hints/index
|
8
|
+
gem 'puma', '>= 4.3' # Use Puma as the applications web server
|
12
9
|
gem 'rack', '~> 2.2'
|
13
10
|
|
14
11
|
# Gems required for running rails with RUBY_VERSION >= 2.7
|
@@ -29,6 +29,7 @@ ENV APP_USER='app' \
|
|
29
29
|
RUN apk update && apk -U upgrade >/dev/null 2>&1 && \
|
30
30
|
apk add build-base ca-certificates libffi-dev linux-headers openssl >/dev/null 2>&1 && \
|
31
31
|
<%= alpine_docker_dependencies(options) -%>
|
32
|
+
ln -sf python3 /usr/bin/python && \
|
32
33
|
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* && \
|
33
34
|
truncate -s 0 /var/log/*log
|
34
35
|
|
@@ -81,10 +81,11 @@ RUN mkdir -p $INSTANT_CLIENT_PATH && \
|
|
81
81
|
alien -i $INSTANT_CLIENT_SQLPLUS_PATH 2>/dev/null && \
|
82
82
|
ldconfig
|
83
83
|
<%- elsif options[:database] == 'sqlserver' -%>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
ENV FREETDS_VERSION='1.2.5'
|
85
|
+
RUN wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz >/dev/null 2>&1 && \
|
86
|
+
tar -xzf freetds-$FREETDS_VERSION.tar.gz && \
|
87
|
+
rm -rf freetds-$FREETDS_VERSION.tar.gz && \
|
88
|
+
cd freetds-$FREETDS_VERSION && \
|
88
89
|
./configure --prefix=/usr/local --with-tdsver=7.3 --silent >/dev/null 2>&1 && \
|
89
90
|
make -j "$(nproc)" >/dev/null 2>&1 && \
|
90
91
|
make install >/dev/null 2>&1 && \
|
data/lib/kowl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kowl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hicks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
402
402
|
- !ruby/object:Gem::Version
|
403
403
|
version: '0'
|
404
404
|
requirements: []
|
405
|
-
rubygems_version: 3.
|
405
|
+
rubygems_version: 3.1.4
|
406
406
|
signing_key:
|
407
407
|
specification_version: 4
|
408
408
|
summary: A rails application generator to get you out the door and started without
|