Lawrence
2020-11-07 621518e84ad75f819f8171f143be3fc7668e81d3
增加dockfile
2个文件已修改
1个文件已添加
43 ■■■■ 已修改文件
DOCKERFILE 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pom.xml 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DOCKERFILE
New file
@@ -0,0 +1,32 @@
FROM ubuntu:19.10
EXPOSE 18080/tcp
EXPOSE 5060/tcp
# 使用了自己的settings.xml作为maven的源,加快打包速度
RUN apt-get update && \
         apt-get install -y --no-install-recommends openjdk-11-jre git maven nodejs npm && \
         cd /home && \
         git clone https://github.com/648540858/wiki.git && \
         cp wiki/config/settings.xml /usr/share/maven/conf/ && \
         git clone https://github.com/648540858/wvp-GB28181.git && \
         cd /home/wvp-GB28181/web_src && \
         npm install npm -g && \
         npm install nrm -g && \
         nrm use taobao && \
         npm install && \
         npm run build && \
         mkdir -p /opt/wvp/config && \
         cd /home/wvp-GB28181 && \
         mvn compile && \
         mvn package && \
         cp /home/wvp-GB28181/target/wvp-1.5.10.RELEASE.jar /opt/wvp/ && \
         rm -rf /home/wiki && \
         rm -rf /home/wvp-GB28181 && \
         apt-get autoremove -y git maven nodejs npm && \
         apt-get clean -y && \
         rm -rf /var/lib/apt/lists/*dic
WORKDIR /opt/wvp
CMD java -jar wvp-1.5.10.RELEASE.jar --spring.config.location=/opt/wvp/config/application.yml
README.md
@@ -34,7 +34,7 @@
7. 支持通道子目录查询;  
8. 支持udp/tcp国标流传输模式;  
9. 支持直接输出RTSP、RTMP、HTTP-FLV、Websocket-FLV、HLS多种协议流地址  
10. 支持国标网络校时
10. 支持国标网络校时
# 待实现: 
上级级联  
pom.xml
@@ -163,7 +163,6 @@
    
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
@@ -177,7 +176,8 @@
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <!-- <webResources>
<<<<<<< HEAD
                    <webResources>
                        <resource>
                            <directory>${project.basedir}/libs</directory>
                            <targetPath>WEB-INF/lib</targetPath>
@@ -186,7 +186,9 @@
                                <include>**/*.jar</include>
                            </includes>
                        </resource>
                    </webResources> -->
                    </webResources>
=======
>>>>>>> upstream/master
                </configuration>
            </plugin>
@@ -194,7 +196,6 @@
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>