Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁杰芳
slm-fileview
Commits
a78f1e5f
Commit
a78f1e5f
authored
Jun 19, 2019
by
陈精华
Committed by
kl
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docker构建
parent
440b8030
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
32 deletions
+3
-32
Dockerfile
Dockerfile
+3
-2
docker-startup.sh
jodconverter-web/src/main/bin/docker-startup.sh
+0
-30
No files found.
Dockerfile
View file @
a78f1e5f
...
...
@@ -27,4 +27,5 @@ RUN yum install -y kde-l10n-Chinese &&\
mkfontdir
&&
\
fc-cache
-fv
ENV
LC_ALL zh_CN.UTF-8
CMD
sh /opt/kkFileView-2.1.0-SNAPSHOT/bin/docker-startup.sh
\ No newline at end of file
ENV
KKFILEVIEW_BIN_FOLDER /opt/kkFileView-2.1.0-SNAPSHOT/bin
ENTRYPOINT
["java","-Dfile.encoding=UTF-8","-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider","-Dspring.config.location=/opt/kkFileView-2.1.0-SNAPSHOT/conf/application.properties","-jar","/opt/kkFileView-2.1.0-SNAPSHOT/bin/kkFileView-2.1.0-SNAPSHOT.jar"]
\ No newline at end of file
jodconverter-web/src/main/bin/docker-startup.sh
deleted
100644 → 0
View file @
440b8030
#!/bin/bash
DIR_HOME
=(
"/opt/openoffice.org3"
"/opt/libreoffice"
"/opt/openoffice4"
"/usr/lib/openoffice"
"/usr/lib/libreoffice"
)
FLAG
=
OFFICE_HOME
=
KKFILEVIEW_BIN_FOLDER
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
export
KKFILEVIEW_BIN_FOLDER
=
$KKFILEVIEW_BIN_FOLDER
cd
$KKFILEVIEW_BIN_FOLDER
echo
"Using KKFILEVIEW_BIN_FOLDER
$KKFILEVIEW_BIN_FOLDER
"
grep
'office\.home'
../conf/application.properties |
grep
'!^#'
if
[
$?
-eq
0
]
;
then
echo
"Using customized office.home"
else
for
i
in
${
DIR_HOME
[@]
}
do
if
[
-f
$i
"/program/soffice.bin"
]
;
then
FLAG
=
true
OFFICE_HOME
=
${
i
}
break
fi
done
if
[
!
-n
"
${
FLAG
}
"
]
;
then
echo
"Installing OpenOffice"
sh ../script/install.sh
else
echo
"Detected office component has been installed in
$OFFICE_HOME
"
fi
fi
echo
"Starting kkFileView..."
java
-Dsun
.java2d.cmm
=
sun.java2d.cmm.kcms.KcmsServiceProvider
-Dspring
.config.location
=
../conf/application.properties
-jar
kkFileView-2.1.0-SNAPSHOT.jar
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment