Compare commits
7 Commits
6550a8b4f8
...
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| fd2ebc4ad3 | |||
|
c86480e72b
|
|||
|
5933c387b6
|
|||
| e855e3cf61 | |||
|
91c3f8da2d
|
|||
|
8bd69b2adb
|
|||
|
8493dfcf9b
|
25
.drone.yml
25
.drone.yml
@@ -3,12 +3,35 @@ type: docker
|
|||||||
name: CI build
|
name: CI build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- vendor
|
||||||
- name: rspec
|
- name: rspec
|
||||||
image: guildeducation/rails:2.7.1-12.19.0
|
image: guildeducation/rails:2.7.1-12.19.0
|
||||||
commands:
|
commands:
|
||||||
- bundle install --jobs=3 --retry=3
|
- bundle install --jobs=3 --retry=3 --deployment
|
||||||
- yarn install
|
- yarn install
|
||||||
- bundle exec rspec
|
- bundle exec rspec
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- vendor
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/tmp
|
||||||
|
|||||||
8
Gemfile
8
Gemfile
@@ -3,8 +3,6 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
|
gem 'rails', '~> 6.0.3', '>= 6.0.3.4'
|
||||||
# Use sqlite3 as the database for Active Record
|
|
||||||
gem 'sqlite3', '~> 1.4'
|
|
||||||
# Use Puma as the app server
|
# Use Puma as the app server
|
||||||
gem 'puma', '~> 4.1'
|
gem 'puma', '~> 4.1'
|
||||||
# Use SCSS for stylesheets
|
# Use SCSS for stylesheets
|
||||||
@@ -31,6 +29,8 @@ gem 'devise_ldap_authenticatable'
|
|||||||
gem 'net-ldap'
|
gem 'net-ldap'
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
|
# Use sqlite3 as the database for Active Record
|
||||||
|
gem 'sqlite3', '~> 1.4'
|
||||||
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
||||||
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
|
||||||
end
|
end
|
||||||
@@ -53,5 +53,9 @@ group :test do
|
|||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :production do
|
||||||
|
# Use postgresql as the database for Active Record
|
||||||
|
gem 'pg', '~> 1.2.3'
|
||||||
|
end
|
||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ GEM
|
|||||||
nokogiri (1.10.10)
|
nokogiri (1.10.10)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
|
pg (1.2.3)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
puma (4.3.6)
|
puma (4.3.6)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
@@ -255,6 +256,7 @@ DEPENDENCIES
|
|||||||
letter_opener_web
|
letter_opener_web
|
||||||
listen (~> 3.2)
|
listen (~> 3.2)
|
||||||
net-ldap
|
net-ldap
|
||||||
|
pg (~> 1.2.3)
|
||||||
puma (~> 4.1)
|
puma (~> 4.1)
|
||||||
rails (~> 6.0.3, >= 6.0.3.4)
|
rails (~> 6.0.3, >= 6.0.3.4)
|
||||||
rspec-rails
|
rspec-rails
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ production:
|
|||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
database: akkounts
|
database: akkounts
|
||||||
port: 5432
|
port: 5432
|
||||||
host: <%= Rails.application.credentials.postgres[:host] %>
|
host: <%= Rails.application.credentials.postgres[:host] rescue nil %>
|
||||||
username: <%= Rails.application.credentials.postgres[:username] %>
|
username: <%= Rails.application.credentials.postgres[:username] rescue nil %>
|
||||||
password: <%= Rails.application.credentials.postgres[:password] %>
|
password: <%= Rails.application.credentials.postgres[:password] rescue nil %>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ Rails.application.configure do
|
|||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: "mail.gandi.net",
|
address: "mail.gandi.net",
|
||||||
port: "587",
|
port: "587",
|
||||||
authentication: plain,
|
authentication: "plain",
|
||||||
enable_starttls_auto: true,
|
enable_starttls_auto: true,
|
||||||
user_name: Rails.application.credentials.smtp[:username],
|
user_name: Rails.application.credentials.smtp[:username],
|
||||||
password: Rails.application.credentials.smtp[:password]
|
password: Rails.application.credentials.smtp[:password]
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Devise.setup do |config|
|
|||||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
# Configure the e-mail address which will be shown in Devise::Mailer,
|
||||||
# note that it will be overwritten if you use your own mailer class
|
# note that it will be overwritten if you use your own mailer class
|
||||||
# with default "from" parameter.
|
# with default "from" parameter.
|
||||||
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
config.mailer_sender = 'accounts@kosmos.org'
|
||||||
|
|
||||||
# Configure the class responsible to send e-mails.
|
# Configure the class responsible to send e-mails.
|
||||||
# config.mailer = 'Devise::Mailer'
|
# config.mailer = 'Devise::Mailer'
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ production:
|
|||||||
port: 636
|
port: 636
|
||||||
attribute: cn
|
attribute: cn
|
||||||
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
|
base: ou=kosmos.org,cn=users,dc=kosmos,dc=org
|
||||||
admin_user: <%= Rails.application.credentials.ldap[:username] %>
|
admin_user: <%= Rails.application.credentials.ldap[:username] rescue nil %>
|
||||||
admin_password: <%= Rails.application.credentials.ldap[:password] %>
|
admin_password: <%= Rails.application.credentials.ldap[:password] rescue nil %>
|
||||||
ssl: simple_tls
|
ssl: simple_tls
|
||||||
# <<: *AUTHORIZATIONS
|
# <<: *AUTHORIZATIONS
|
||||||
|
|||||||
Reference in New Issue
Block a user