Start work on project
This commit is contained in:
commit
432dca4c65
5 changed files with 92 additions and 0 deletions
6
.docker/docker-compose.yml
Normal file
6
.docker/docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
runner:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: .docker/runner/Dockerfile
|
||||
image: dockermc
|
5
.docker/runner/Dockerfile
Normal file
5
.docker/runner/Dockerfile
Normal file
|
@ -0,0 +1,5 @@
|
|||
FROM eclipse-temurin:17-jre-focal
|
||||
|
||||
COPY target/DockerMC*.jar DockerMC.jar
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "DockerMC.jar"]
|
40
.gitignore
vendored
Normal file
40
.gitignore
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
# No IDEA files
|
||||
.idea
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
34
pom.xml
Normal file
34
pom.xml
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.github.tbmcplugins</groupId>
|
||||
<artifactId>DockerMC</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>DockerMC</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
7
src/main/java/DockerMC.java
Normal file
7
src/main/java/DockerMC.java
Normal file
|
@ -0,0 +1,7 @@
|
|||
public class DockerMC {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Docker MC");
|
||||
System.out.println("Will start 1 server and BungeeCord");
|
||||
System.out.println("Then on plugin JAR change start another server and stop the first one");
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue