Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cryosparc Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCITAS
Software stack
Cryosparc Docker
Commits
4f4b88b7
Commit
4f4b88b7
authored
1 year ago
by
Patrick James Pascual
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: changed to initialize mongodb instance with correct CRYOSPARC_BASE_PORT using .
parent
e0099168
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cryosparc.sh
+5
-10
5 additions, 10 deletions
cryosparc.sh
with
5 additions
and
10 deletions
cryosparc.sh
+
5
−
10
View file @
4f4b88b7
...
...
@@ -59,11 +59,7 @@ cryosparcm restart
# ensure that the mongo replset is correct
MONGO_PORT
=
$((
$CRYOSPARC_BASE_PORT
+
1
))
export
CRYOSPARC_MONGO_EXTRA_FLAGS
=
" --unixSocketPrefix
${
LSCRATCH
}
"
mongosh localhost:
$MONGO_PORT
<<
EOF
cfg = rs.conf()
cfg.members[0].host = "localhost:
$MONGO_PORT
"
rs.reconfig(cfg, { force: true } )
EOF
${
CRYOSPARC_MASTER_DIR
}
/bin/cryosparcm fixdbport
# creat cryosparc local accounts
create_account
()
{
...
...
@@ -74,7 +70,7 @@ create_account() {
cryosparcm resetpassword
--email
${
account
}
--password
${
password
}
;
}
export
-f
create_account
# always set the passw
r
od to license
# always set the passwo
r
d to license
create_account
${
ACCOUNT
}
"
${
CRYOSPARC_PASSWORD
:-${
CRYOSPARC_LICENSE_ID
}}
"
"
${
THIS_USER
}
"
# add additional
if
[
-e
"/init.d/accounts"
]
;
then
...
...
@@ -132,7 +128,6 @@ fi
###
export
CRYOSPARC_BASE_PORT
=
$(
cat
$HOME
/cryosparc/config.sh |
awk
'/CRYOSPARC_BASE_PORT/{ split($2,a,"="); print a[2] }'
)
echo
"/usr/bin/firefox http://localhost:
${
CRYOSPARC_BASE_PORT
}
"
>
${
LSCRATCH
}
/cryosparc_launcher.sh
cp
/cryosparc.desktop
${
LSCRATCH
}
/cryosparc.desktop
chmod
+x
${
LSCRATCH
}
/cryosparc.desktop
cd
${
HOME
}
/Desktop
ln
-s
${
LSCRATCH
}
/cryosparc.desktop
"Launch CryoSPARC"
cp
/cryosparc.desktop
${
HOME
}
/Desktop/cryosparc.desktop
chmod
+x
${
HOME
}
/Desktop/cryosparc.desktop
ln
-sfn
${
LSCRATCH
}
/cryosparc_launcher.sh
"
${
HOME
}
/Desktop/cryosparc_launcher.sh"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment