mirror of
https://gitee.com/lijiahangmax/orion-ops.git
synced 2026-09-24 15:30:00 +08:00
update build script.
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ services:
|
||||
- orion-ops-db
|
||||
- orion-ops-redis
|
||||
orion-ops-db:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-mysql:latest
|
||||
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-mysql:1.2.3
|
||||
privileged: true
|
||||
environment:
|
||||
- MYSQL_DATABASE=orion-ops
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM mysql:8.0.28
|
||||
COPY sql/init-data.sql /tmp
|
||||
COPY sql/init-schema.sql /tmp
|
||||
COPY docker/mysql/my.cnf /etc/mysql/conf.d/my.cnf
|
||||
COPY ./init-data.sql /tmp
|
||||
COPY ./init-schema.sql /tmp
|
||||
COPY ./my.cnf /etc/mysql/conf.d/my.cnf
|
||||
RUN cat /tmp/init-schema.sql >> /tmp/orion.sql && \
|
||||
cat /tmp/init-data.sql >> /tmp/orion.sql && \
|
||||
cp /tmp/orion.sql /docker-entrypoint-initdb.d
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
mv ../../sql/init-schema.sql ./
|
||||
mv ../../sql/init-data.sql ./
|
||||
docker build -t orion-ops-mysql:1.2.3 .
|
||||
rm -f ./init-schema.sql
|
||||
rm -f ./init-data.sql
|
||||
@@ -13,9 +13,9 @@ RUN sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config &&
|
||||
ssh-keygen -t ed25519 -P '' -f /etc/ssh/ssh_host_ed25519_key && \
|
||||
echo 'root:orionadmin' | chpasswd
|
||||
WORKDIR /app
|
||||
COPY orion-ops-api/orion-ops-web/target/orion-ops-web-1.2.3.jar /app/app.jar
|
||||
COPY orion-ops-vue/dist/index.html /usr/share/nginx/html/
|
||||
COPY orion-ops-vue/dist /usr/share/nginx/html/ops
|
||||
ADD docker/orion-ops/entrypoint.sh /app/entrypoint.sh
|
||||
ADD docker/orion-ops/nginx.conf /etc/nginx/conf.d
|
||||
COPY ./orion-ops-web-1.2.3.jar /app/app.jar
|
||||
COPY ./dist/index.html /usr/share/nginx/html/
|
||||
COPY ./dist /usr/share/nginx/html/ops
|
||||
ADD ./entrypoint.sh /app/entrypoint.sh
|
||||
ADD ./nginx.conf /etc/nginx/conf.d
|
||||
ENTRYPOINT [ "sh", "/app/entrypoint.sh" ]
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
mv ../../orion-ops-api/orion-ops-web/target/orion-ops-web-1.2.3.jar ./
|
||||
mv ../../orion-ops-vue/dist ./
|
||||
docker build -t orion-ops:1.2.3 .
|
||||
rm -f ./orion-ops-web-1.2.3.jar
|
||||
rm -f ../../orion-ops-vue/dist ./dist
|
||||
Reference in New Issue
Block a user