Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qg-dockerfiles
Commits
ff0a7eae
Commit
ff0a7eae
authored
Feb 18, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui run.sh
parent
a436fd4b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
Dockerfile
tke/ui/Dockerfile
+1
-0
docker-entrypoint.sh
tke/ui/docker-entrypoint.sh
+1
-1
run.sh
tke/ui/run.sh
+37
-0
No files found.
tke/ui/Dockerfile
View file @
ff0a7eae
...
@@ -30,5 +30,6 @@ RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
...
@@ -30,5 +30,6 @@ RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
COPY
--from=0 /code/* /home/quant_group/
COPY
--from=0 /code/* /home/quant_group/
COPY
docker-entrypoint.sh .
COPY
docker-entrypoint.sh .
COPY
run.sh .
RUN
chmod
+x ./docker-entrypoint.sh
RUN
chmod
+x ./docker-entrypoint.sh
CMD
./docker-entrypoint.sh
CMD
./docker-entrypoint.sh
\ No newline at end of file
tke/ui/docker-entrypoint.sh
View file @
ff0a7eae
#!/bin/bash
#!/bin/bash
echo
172.30.10.23 git.quantgroup.cn
>>
/etc/hosts
echo
172.30.10.23 git.quantgroup.cn
>>
/etc/hosts
curl
-sSL
http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/ui.sh
-o
run.sh
#
curl -sSL http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/ui.sh -o run.sh
sh run.sh
sh run.sh
tke/ui/run.sh
0 → 100644
View file @
ff0a7eae
#!/bin/bash
echo
"start run ui"
current
=
"/home/quant_group"
echo
"current:
${
current
}
"
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
echo
"NAMESPACE is
$NAMESPACE
"
# 运行qa工具
echo
"SYSTEM_NAME is
$SYSTEM_NAME
"
host
=
`
curl
-s
http://172.30.220.22:3003/proconfig/get_host?system_name
=
${
SYSTEM_NAME
}
`
echo
"host:
${
host
}
"
for
entry
in
./
*
tgz
do
with_ext
=
$(
basename
"
$entry
"
)
echo
${
with_ext
}
fname
=
"
${
with_ext
%.*
}
"
echo
"mkdir -p
${
current
}
/
$fname
"
mkdir
-p
${
current
}
/
$fname
echo
"tar zxf
${
current
}
/
$with_ext
-C
${
current
}
/
$fname
"
tar
zxf
${
current
}
/
$with_ext
-C
${
current
}
/
$fname
# echo "rm -rf ${package_path}/$with_ext"
# rm -rf ${package_path}/$with_ext
done
curl
-sSL
http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace.py
-o
replace.py
curl
-sSL
http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace_config.yaml
-o
replace_config.yaml
python replace.py
$host
;
echo
"/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty
-g
'daemon off;'
\ 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