Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Building C Enterprise Applications R

Slide 3

Slide 3 text

@brodock blog.gabrielmazetto.eti.br Gabriel Mazetto

Slide 4

Slide 4 text

Everyone can contribute

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

But the majority of our clients are on-premise...

Slide 7

Slide 7 text

The Enterprise market is all about supporting ...

Slide 8

Slide 8 text

Forget the simplicity of spinning up a VM at will

Slide 9

Slide 9 text

The Enterprise is all about the baseline

Slide 10

Slide 10 text

Physical machines + Physical disks

Slide 11

Slide 11 text

Your major stakeholder is the IT department

Slide 12

Slide 12 text

Make their lives better and you win big

Slide 13

Slide 13 text

How do I do that?

Slide 14

Slide 14 text

You will probably have to support multiple L D

Slide 15

Slide 15 text

Forget OAuth2! The hot protocols are LDAP and AD

Slide 16

Slide 16 text

B E !

Slide 17

Slide 17 text

Do you really need Ruby 2.4.X or can it be >= 2.2.X ?

Slide 18

Slide 18 text

Do you really need that optional PG extension?

Slide 19

Slide 19 text

Think about progressive enhancement...

Slide 20

Slide 20 text

Re-evaluate your

Slide 21

Slide 21 text

You may not have

Slide 22

Slide 22 text

You may not even have

Slide 23

Slide 23 text

Few strategies...

Slide 24

Slide 24 text

Provide source installation

Slide 25

Slide 25 text

Provide Virtual Machine Images

Slide 26

Slide 26 text

Make every external dependency configurable

Slide 27

Slide 27 text

production: adapter: postgresql encoding: unicode database: gitlabhq_production pool: 10 # username: git # password: # host: localhost # port: 5432

Slide 28

Slide 28 text

development: url: redis://localhost:6379/10 # # url: redis://localhost:6380 # sentinels: # - # host: localhost # port: 26380 # point to sentinel, not to redis port # - # host: slave2 # port: 26380 # point to sentinel, not to redis port

Slide 29

Slide 29 text

Make your application behavior configurable

Slide 30

Slide 30 text

gitlab: ## Web server settings (note: host is the FQDN, do not include http://) host: localhost port: 3000 https: false user: brodock ## Default project features settings default_projects_features: issues: true merge_requests: true wiki: true snippets: true builds: true container_registry: true

Slide 31

Slide 31 text

When your code expects S3 endpoint

Slide 32

Slide 32 text

Rewrite to use fog, or use minio

Slide 33

Slide 33 text

How to protect your source-code?

Slide 34

Slide 34 text

Compile and pack with JRuby

Slide 35

Slide 35 text

Use Ruby-Encoder

Slide 36

Slide 36 text

But the best DRM is a good Contract

Slide 37

Slide 37 text

How we ship?

Slide 38

Slide 38 text

packages.gitlab.com Multiple Distros, Multiple Versions

Slide 39

Slide 39 text

All dependencies in a single package

Slide 40

Slide 40 text

Major release every 22nd

Slide 41

Slide 41 text

Omnibus Chef https://github.com/chef/omnibus

Slide 42

Slide 42 text

name 'ruby' default_version '2.3.5' dependency 'zlib' dependency 'openssl' dependency 'libffi' dependency 'libyaml' dependency 'libiconv' version('2.3.5') { source sha256: '5462f7bbb28beff5da7441968471ed922f964db1abdce82b8860608acc23ddcc' } source url: "https://cache.ruby-lang.org/pub/ruby/#{version.match(/^(\d+\.\d+)/)[0]}/ruby-#{ version}.tar.gz" build do command "./configure" command "make" command "make install" end

Slide 43

Slide 43 text

You can still plug external managed dependencies

Slide 44

Slide 44 text

/etc/gitlab/gitlab.rb

Slide 45

Slide 45 text

Is ruby viable for enterprise? Y , !

Slide 46

Slide 46 text

Q ?