Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdk8s-zelda committed Aug 27, 2019
1 parent d5c4750 commit 6c9109e
Show file tree
Hide file tree
Showing 105 changed files with 6,172 additions and 1 deletion.
52 changes: 52 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 4
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 300

[*.{groovy,java,kt,kts}]
indent_style = tab
continuation_indent_size = 8

[*.{xml,xsd}]
indent_style = tab

[Makefile]
indent_style = tab

[*.py]
indent_size = 4

[*.js]
indent_size = 4

[*.ts]
indent_size = 4

[*.html]
indent_size = 4

[*.{less,css}]
indent_size = 2

[*.json]
indent_size = 2

[*.{tsx,jsx}]
indent_size = 2

[*.yml]
indent_size = 2

[*.sql]
indent_size = 2

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
187 changes: 187 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# This file is inspired by https://github.com/alexkaratarakis/gitattributes
#
# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto

# The above will handle all files NOT found below
# These files are text and should be normalized (Convert crlf => lf)

# Java sources
*.java text diff=java
*.gradle text diff=java
*.gradle.kts text diff=java


*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.xhtml text diff=html
*.coffee text
*.cql text
*.df text
*.ejs text
*.js text
*.jsx text
*.json text
*.less text
*.properties text
*.sass text
*.scss text diff=css
*.sh text eol=lf
*.sql text
*.txt text
*.ts text
*.tsx text
*.xml text
*.yaml text
*.yml text
*.jsp text
*.jspf text
*.jspx text
*.tld text
*.tag text
*.tagx text
*.inc text
*.ini text

# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.markdown text
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary

# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.class binary
*.jar binary
*.war binary
*.dll binary
*.ear binary
*.so binary
*.exe binary
*.pyc binary

## LINTERS
.csslintrc text
.eslintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text

## CONFIGS
*.conf text
*.config text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
*.npmignore text

## HEROKU
Procfile text
.slugignore text

## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.swc binary
*.swf binary
*.webm binary

## ARCHIVES
*.7z binary
*.7z binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary

## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary


*.bash text eol=lf
*.bat text eol=crlf
*.cmd text eol=crlf


*.php text diff=php
*.py text diff=python
*.rb text diff=ruby

# Docker
*.dockerignore text
Dockerfile text


114 changes: 114 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
out/
target/
node_modules/
classes/
.deploy*/
.gradle
*.log.*
*.log

# ======================================================

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

# ======================================================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

# ======================================================

# OSX
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# ======================================================

npm-debug.log*
yarn-error.log
.idea/
.ipr
.iws
*~
~*
*.diff
*.patch
*.bak
.*proj
.svn/
*.swp
*.swo
*.json.gzip
.buildpath
nohup.out
dist
*.tmp

# ======================================================

.DS_STORE
*.pyc
remote-repo/
coverage/
.module-cache
*.log*
chrome-user-data
*.sublime-project
*.sublime-workspace
.vscode

15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER cdk8s [email protected]

VOLUME /tmp

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD ./target/tkey-sso-server-1.0.0.jar /app.jar
RUN bash -c 'touch /app.jar'

EXPOSE 9091
EXPOSE 19091
ENTRYPOINT ["java", "-jar", "-Xms1024m", "-Xmx1024m", "-XX:MetaspaceSize=124m", "-XX:MaxMetaspaceSize=224M" ,"/app.jar"]
Loading

0 comments on commit 6c9109e

Please sign in to comment.