Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: optimize the project structure and add docker-compose deployment #2236

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@

*.iml
*.zip

frontend/node
lib
logs
files
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:8
FROM amazoncorretto:8-alpine-jre
LABEL "author"="tl"
RUN mkdir /datart
COPY ./bin/ /datart/bin/
Expand Down
32 changes: 32 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '3.7'
services:
datart:
image: eoi/datart
container_name: eoi-datart
restart: always
volumes:
- datart-config-data:/datart/config
ports:
- 8765:8080
depends_on:
- selenium
networks:
datart_network:

selenium:
image: selenium/standalone-chrome
container_name: eoi-selenium
restart: always
ports:
- 4444
shm_size: 2147483648
networks:
datart_network:

networks:
datart_network:

volumes:
datart-config-data:
name: datart-config-data
driver: local
82 changes: 44 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,43 +74,49 @@
</dependencies>
</dependencyManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>static</directory>
<includes>
<include>**</include>
</includes>
</fileset>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>datart-server-*-install.zip</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>lib</directory>
<includes>
<include>**</include>
</includes>
</fileset>
<fileset>
<directory>static</directory>
<includes>
<include>**</include>
</includes>
</fileset>
<fileset>
<directory>${project.basedir}</directory>
<includes>
<include>datart-server-*-install.zip</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>

</project>
Loading