This repository has been archived by the owner on Dec 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 753
Remove NetBeans project files in favor of gradle files + updated docker #488
Open
kolakcc
wants to merge
1
commit into
ronancpl:master
Choose a base branch
from
kolakcc:gradle
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/logs/** | ||
.idea/ | ||
/.gradle | ||
|
||
# build files | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Docker support, thanks to xinyifly | ||
|
||
FROM openjdk:7-alpine | ||
FROM openjdk:8-alpine | ||
RUN apk -U add tini | ||
WORKDIR /mnt | ||
COPY ./ ./ | ||
RUN sh ./posix-compile.sh | ||
ADD wz ./wz | ||
ADD docker-launch.sh configuration.ini world.ini ./ | ||
ADD build/libs/HeavenMS.jar HeavenMS.jar | ||
EXPOSE 8484 7575 7576 7577 | ||
CMD exec tini -- sh ./docker-launch.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
plugins { | ||
id 'java' | ||
id 'application' | ||
} | ||
|
||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation group: 'com.zaxxer', name: 'HikariCP-java7', version: '2.4.13' | ||
implementation group: 'org.apache.mina', name: 'mina-core', version: '2.0.19' | ||
implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.6' | ||
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21' | ||
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.5' | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs 'src' | ||
} | ||
} | ||
} | ||
|
||
mainClassName = "net.server.Server" | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Main-Class': mainClassName | ||
) | ||
} | ||
from { | ||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: '3.3' | ||
services: | ||
db: | ||
image: mysql:5.7 | ||
environment: | ||
MYSQL_DATABASE: 'heavenms' | ||
MYSQL_ROOT_PASSWORD: '' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'true' | ||
ports: | ||
- '3306:3306' | ||
expose: | ||
- '3306' | ||
volumes: | ||
- my-db:/var/lib/mysql | ||
- ./sql:/docker-entrypoint-initdb.d | ||
|
||
heavenms: | ||
build: . | ||
environment: | ||
HOST: '127.0.0.1' | ||
URL: 'jdbc:mysql://db:3306/heavenms' | ||
DB_USER: 'root' | ||
DB_PASS: '' | ||
JAVA8: 'true' | ||
SHUTDOWNHOOK: 'true' | ||
volumes: | ||
- ./scripts:/mnt/scripts | ||
ports: | ||
- '8484:8484' | ||
- '7575:7575' | ||
- '7576:7576' | ||
- '7577:7577' | ||
expose: | ||
- '8484' | ||
- '7575' | ||
- '7576' | ||
- '7577' | ||
|
||
volumes: | ||
my-db: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kotlin.code.style=official |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break the build from a clean clone:
build/libs/HeavenMS.jar: no such file or directory
(Maybe you forgot to include
./gradlew build
in a multi-stage build?)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./gradlew build
shouldn't be included in the image, as it will increase the image size and never cause containers to cache due to non-deterministic gradle builds and cache files. The project should be built out of docker for this reason.