Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallServer
Commits
de3a9397
Commit
de3a9397
authored
5 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Start on docker image
parent
6898d240
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env
+2
-0
2 additions, 0 deletions
.env
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
Dockerfile
+8
-0
8 additions, 0 deletions
Dockerfile
docker-compose.yaml
+31
-0
31 additions, 0 deletions
docker-compose.yaml
pom.xml
+74
-19
74 additions, 19 deletions
pom.xml
with
118 additions
and
19 deletions
.env
0 → 100644
+
2
−
0
View file @
de3a9397
API_ROOT=ewngu43gbipbowboi
WORKING_DIR=/Users/tobias/Documents/Programmieren/Projects/PlayWall/PlayWallServer
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitignore
+
3
−
0
View file @
de3a9397
...
...
@@ -3,3 +3,6 @@
/settings.properties
/target
/deploy
/build/
/deploy_docker/
/storage/
This diff is collapsed.
Click to expand it.
Dockerfile
+
8
−
0
View file @
de3a9397
FROM
openjdk:8
USER
root
COPY
build/1.0-SNAPSHOT/playwall-server.jar /root/playwall-server.jar
WORKDIR
/root
CMD
["java", "-jar", "playwall-server.jar"]
This diff is collapsed.
Click to expand it.
docker-compose.yaml
0 → 100644
+
31
−
0
View file @
de3a9397
version
:
'
3.3'
services
:
mysql
:
image
:
mysql:8
restart
:
always
environment
:
MYSQL_ROOT_PASSWORD
:
${API_ROOT}
MYSQL_DATABASE
:
api
MYSQL_ROOT_HOST
:
'
%'
volumes
:
-
"
${WORKING_DIR}/storage/mysql:/var/lib/mysql"
networks
:
-
netMySQL
ports
:
-
"
3306:3306"
playwall
:
image
:
jtobisan/playwall-server:latest
restart
:
always
volumes
:
-
"
${WORKING_DIR}/deploy_docker:/root/deploy"
expose
:
-
"
8090"
ports
:
-
"
8080:8080"
networks
:
-
netMySQL
depends_on
:
-
mysql
networks
:
netMySQL
:
driver
:
bridge
This diff is collapsed.
Click to expand it.
pom.xml
+
74
−
19
View file @
de3a9397
...
...
@@ -9,8 +9,14 @@
<version>
1.0-SNAPSHOT
</version>
<properties>
<java-version>
1.8
</java-version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<project.main>
de.tobias.playpad.server.PlayPadServer
</project.main>
<java.version>
1.8
</java.version>
<maven-compiler-plugin.version>
3.8.0
</maven-compiler-plugin.version>
<scala-maven-plugin.version>
3.4.4
</scala-maven-plugin.version>
<maven-jar-plugin.version>
2.3.1
</maven-jar-plugin.version>
<scala-library.version>
[2.13.0,)
</scala-library.version>
...
...
@@ -86,22 +92,50 @@
</dependencies>
<build>
<!-- <finalName>PlayWallServer</finalName>-->
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.1
</version>
<version>
${maven-compiler-plugin.version}
</version>
<configuration>
<source>
${java
-
version}
</source>
<target>
${java
-
version}
</target>
<source>
${java
.
version}
</source>
<target>
${java
.
version}
</target>
</configuration>
</plugin>
<plugin>
<groupId>
net.alchim31.maven
</groupId>
<artifactId>
scala-maven-plugin
</artifactId>
<version>
${scala-maven-plugin.version}
</version>
<executions>
<execution>
<id>
scala-compile-first
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
add-source
</goal>
<goal>
compile
</goal>
</goals>
</execution>
<execution>
<id>
scala-test-compile
</id>
<phase>
process-test-resources
</phase>
<goals>
<goal>
testCompile
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-assembly-plugin
</artifactId>
<configuration>
<outputDirectory>
build/${project.version}
</outputDirectory>
<finalName>
${project.artifactId}
</finalName>
<appendAssemblyId>
false
</appendAssemblyId>
<archive>
<manifest>
<mainClass>
de.tobias.playpad.server.PlayPadServer
</mainClass>
<mainClass>
${project.main}
</mainClass>
</manifest>
</archive>
<descriptorRefs>
...
...
@@ -118,22 +152,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.scala-tools
</groupId>
<artifactId>
maven-scala-plugin
</artifactId>
<version>
2.15.2
</version>
<executions>
<execution>
<goals>
<goal>
compile
</goal>
<goal>
testCompile
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>
release
</id>
<name>
TheCodeLabs-releases
</name>
<url>
https://maven.thecodelabs.de/artifactory/TheCodeLabs-release
</url>
</repository>
<snapshotRepository>
<id>
snapshots
</id>
<name>
TheCodeLabs-snapshots
</name>
<url>
https://maven.thecodelabs.de/artifactory/TheCodeLabs-snapshots
</url>
</snapshotRepository>
</distributionManagement>
<pluginRepositories>
<pluginRepository>
<id>
scala
</id>
...
...
@@ -146,8 +180,29 @@
<enabled>
false
</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>
release
</id>
<url>
https://maven.thecodelabs.de/artifactory/TheCodeLabs-plugins-release
</url>
<releases>
<enabled>
true
</enabled>
</releases>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>
snapshots
</id>
<url>
https://maven.thecodelabs.de/artifactory/TheCodeLabs-plugins-snapshots
</url>
<releases>
<enabled>
false
</enabled>
</releases>
<snapshots>
<enabled>
true
</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>
scala
</id>
...
...
@@ -163,7 +218,7 @@
<repository>
<id>
release
</id>
<url>
https://maven.thecodelabs.de/artifactory/
TheCodeLabs-release
</url>
<url>
https://maven.thecodelabs.de/artifactory/
Releases
</url>
<releases>
<enabled>
true
</enabled>
</releases>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment