FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
InstallScripts/installmachinelearningunitypoint.sh at master · HealthCatalyst/InstallScripts · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HealthCatalyst
/
InstallScripts
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
4
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
InstallScripts
/
installmachinelearningunitypoint.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
48 lines (37 loc) · 1.58 KB
Breadcrumbs
InstallScripts
/
installmachinelearningunitypoint.sh
Copy path
File metadata and controls
48 lines (37 loc) · 1.58 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!
/bin/sh
set
-e
#
#
This script is meant for quick & easy install via:
#
curl -sSL https://healthcatalyst.github.io/InstallScripts/installmachinelearningunitypoint.txt | sh -s <username> <domain> <password>
u=
"
$(
whoami
)
"
echo
"
Running version 1.09 as:
$u
"
username=
"
$1
"
domain=
"
$2
"
password=
"
$3
"
echo
"
User name:
$username
"
if
[
!
-z
"
$username
"
]
;
then
if
[
-z
"
$password
"
]
;
then
echo
"
Please enter password for
$username
@
$domain
:
"
read
-e password
<
/dev/tty
fi
fi
echo
"
stopping existing docker container
"
docker stop fabric.machinelearning.unitypoint
||
echo
'
no container to stop
'
echo
"
removing docker container
"
docker rm fabric.machinelearning.unitypoint
||
echo
'
no container to remove
'
echo
"
removing docker image
"
docker rmi healthcatalyst/fabric.machinelearning.unitypoint
||
echo
'
no image to remove
'
echo
"
pulling latest docker image from repo
"
docker pull healthcatalyst/fabric.machinelearning.unitypoint
echo
"
starting docker container with new image.
"
docker run -d --privileged=true --restart=unless-stopped -p 8080:8080 --name fabric.machinelearning.unitypoint healthcatalyst/fabric.machinelearning.unitypoint
echo
"
sleeping until docker container is up
"
#
until [ "`/usr/bin/docker inspect -f {{.State.Running}} fabric.machinelearning.unitypoint`"=="true" ]; do
#
sleep 1s;
#
done;
sleep 5s
;
#
if username was passed then create a keytab file in docker container
if
[
!
-z
"
$username
"
]
;
then
echo
"
creating keytab file for username & password
"
docker
exec
fabric.machinelearning.unitypoint opt/install/setupkeytab.sh
$username
$domain
$password
fi
Back
|
FazBrowse Home
|
New Git URL