Skip to content

Commit 048168a

Browse files
committed
commit tenant auto-gen snippet
1 parent 8664fae commit 048168a

File tree

18 files changed

+1335
-0
lines changed

18 files changed

+1335
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: "3.3"
2+
3+
services:
4+
db:
5+
image: postgres
6+
restart: always
7+
environment:
8+
POSTGRES_USER: camunda
9+
POSTGRES_PASSWORD: camunda
10+
11+
camunda_tenant_1:
12+
build:
13+
context: ./dynamo
14+
ports:
15+
- "8080:8080"
16+
environment:
17+
PROCESS_ENGINE_NAME: tenant-1
18+
DATABASE_URL: jdbc:postgresql://db:5432/camunda?user=camunda&password=camunda&characterEncoding=UTF-8
19+
20+
camunda_tenant_2:
21+
build:
22+
context: ./dynamo
23+
ports:
24+
- "9090:8080"
25+
environment:
26+
PROCESS_ENGINE_NAME: tenant-2
27+
DATABASE_URL: jdbc:postgresql://db:5432/camunda?user=camunda&password=camunda&characterEncoding=UTF-8
28+
Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
2+
.metadata
3+
bin/
4+
tmp/
5+
*.tmp
6+
*.bak
7+
*.swp
8+
*~.nib
9+
local.properties
10+
.settings/
11+
.loadpath
12+
.recommenders
13+
14+
15+
*.class
16+
*.db
17+
bundle.js
18+
package-lock.json
19+
20+
# Mobile Tools for Java (J2ME)
21+
.mtj.tmp/
22+
23+
# Package Files #
24+
*.jar
25+
*.war
26+
*.ear
27+
28+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
29+
hs_err_pid*
30+
31+
/.settings/
32+
.project
33+
/target/
34+
.classpath
35+
/.bpmn/
36+
/node_modules/
37+
application-dev.properties
38+
/local-test/
39+
/.idea/
40+
*.iml
41+
42+
43+
# Eclipse Core
44+
.project
45+
46+
# External tool builders
47+
.externalToolBuilders/
48+
49+
# Locally stored "Eclipse launch configurations"
50+
*.launch
51+
52+
# PyDev specific (Python IDE for Eclipse)
53+
*.pydevproject
54+
55+
# CDT-specific (C/C++ Development Tooling)
56+
.cproject
57+
58+
# JDT-specific (Eclipse Java Development Tools)
59+
.classpath
60+
61+
# Java annotation processor (APT)
62+
.factorypath
63+
64+
# PDT-specific (PHP Development Tools)
65+
.buildpath
66+
67+
# sbteclipse plugin
68+
.target
69+
70+
# Tern plugin
71+
.tern-project
72+
73+
# TeXlipse plugin
74+
.texlipse
75+
76+
# STS (Spring Tool Suite)
77+
.springBeans
78+
79+
# Code Recommenders
80+
.recommenders/
81+
target/
82+
pom.xml.tag
83+
pom.xml.releaseBackup
84+
pom.xml.versionsBackup
85+
pom.xml.next
86+
release.properties
87+
dependency-reduced-pom.xml
88+
buildNumber.properties
89+
.mvn/timing.properties
90+
*.class
91+
92+
# Mobile Tools for Java (J2ME)
93+
.mtj.tmp/
94+
95+
# Package Files #
96+
*.jar
97+
*.war
98+
*.ear
99+
100+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
101+
hs_err_pid*
102+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
103+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
104+
105+
# User-specific stuff:
106+
.idea/workspace.xml
107+
.idea/tasks.xml
108+
.idea/dictionaries
109+
.idea/vcs.xml
110+
.idea/jsLibraryMappings.xml
111+
112+
# Sensitive or high-churn files:
113+
.idea/dataSources.ids
114+
.idea/dataSources.xml
115+
.idea/dataSources.local.xml
116+
.idea/sqlDataSources.xml
117+
.idea/dynamic.xml
118+
.idea/uiDesigner.xml
119+
120+
# Gradle:
121+
.idea/gradle.xml
122+
.idea/libraries
123+
124+
# Mongo Explorer plugin:
125+
.idea/mongoSettings.xml
126+
127+
## File-based project format:
128+
*.iws
129+
130+
## Plugin-specific files:
131+
132+
# IntelliJ
133+
/out/
134+
135+
# mpeltonen/sbt-idea plugin
136+
.idea_modules/
137+
138+
# JIRA plugin
139+
atlassian-ide-plugin.xml
140+
141+
# Crashlytics plugin (for Android Studio and IntelliJ)
142+
com_crashlytics_export_strings.xml
143+
crashlytics.properties
144+
crashlytics-build.properties
145+
fabric.properties
146+
nbproject/private/
147+
build/
148+
nbbuild/
149+
dist/
150+
nbdist/
151+
nbactions.xml
152+
.nb-gradle/
153+
*.tmp
154+
155+
# Word temporary
156+
~$*.doc*
157+
158+
# Excel temporary
159+
~$*.xls*
160+
161+
# Excel Backup File
162+
*.xlk
163+
164+
# PowerPoint temporary
165+
~$*.ppt*
166+
167+
# Visio autosave temporary files
168+
*.~vsdx
169+
# LibreOffice locks
170+
.~lock.*#
171+
# Windows image file caches
172+
Thumbs.db
173+
ehthumbs.db
174+
175+
# Folder config file
176+
Desktop.ini
177+
178+
# Recycle Bin used on file shares
179+
$RECYCLE.BIN/
180+
181+
# Windows Installer files
182+
*.cab
183+
*.msi
184+
*.msm
185+
*.msp
186+
187+
# Windows shortcuts
188+
*.lnk
189+
*~
190+
191+
# temporary files which can be created if a process still has a handle open of a deleted file
192+
.fuse_hidden*
193+
194+
# KDE directory preferences
195+
.directory
196+
197+
# Linux trash folder which might appear on any partition or disk
198+
.Trash-*
199+
# Swap Files #
200+
.*.kate-swp
201+
.swp.*
202+
# cache files for sublime text
203+
*.tmlanguage.cache
204+
*.tmPreferences.cache
205+
*.stTheme.cache
206+
207+
# workspace files are user-specific
208+
*.sublime-workspace
209+
210+
# project files should be checked into the repository, unless a significant
211+
# proportion of contributors will probably not be using SublimeText
212+
# *.sublime-project
213+
214+
# sftp configuration file
215+
sftp-config.json
216+
217+
# Package control specific files
218+
Package Control.last-run
219+
Package Control.ca-list
220+
Package Control.ca-bundle
221+
Package Control.system-ca-bundle
222+
Package Control.cache/
223+
Package Control.ca-certs/
224+
bh_unicode_properties.cache
225+
226+
# Sublime-github package stores a github token in this file
227+
# https://packagecontrol.io/packages/sublime-github
228+
GitHub.sublime-settings
229+
# swap
230+
[._]*.s[a-w][a-z]
231+
[._]s[a-w][a-z]
232+
# session
233+
Session.vim
234+
# temporary
235+
.netrwhist
236+
*~
237+
# auto-generated tag files
238+
tags
239+
240+
# H2 database file
241+
camunda-db.mv.db
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM openjdk:8-jdk-alpine
2+
3+
# Create app directory
4+
WORKDIR /usr/src/app
5+
6+
#TODO: run maven build in docker image
7+
#RUN mvn clean install -DskipTests
8+
9+
COPY target/dynamic-tenants.jar ${WORKDIR}
10+
11+
ENTRYPOINT ["java","-Dserver.port=8080","-Djava.security.egd=file:/dev/./urandom","-jar","/usr/src/app/dynamic-tenants.jar"]

0 commit comments

Comments
 (0)