Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
6162dfc1
Commit
6162dfc1
authored
Oct 20, 2022
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Update README and add a check in download_cmix_binaries.sh
parent
a5bd1142
No related branches found
No related tags found
1 merge request
!68
Master merge
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
download_cmix_binaries.sh
+7
-0
7 additions, 0 deletions
download_cmix_binaries.sh
with
10 additions
and
3 deletions
README.md
+
3
−
3
View file @
6162dfc1
...
@@ -103,8 +103,8 @@ using these utility scripts can speed up the process.
...
@@ -103,8 +103,8 @@ using these utility scripts can speed up the process.
### Additional Set Up
### Additional Set Up
You will need to add a personal access token to your environment vars to download binaries via the
You will need to add a personal access token to your environment vars to download binaries via the
`download_cmix_binaries.sh`
. You can generate one
[
here
](
https://git
lab.com
/-/profile/personal_access_tokens
)
,
`download_cmix_binaries.sh`
. You can generate one
[
here
](
https://git
.xx.network
/-/profile/personal_access_tokens
)
,
giving it the "api" scope.
giving it the "api"
and "read_repository"
scope.
Please add the following to your
`~/.zshrc`
or
`~/.bash_profile`
depending on your shell
Please add the following to your
`~/.zshrc`
or
`~/.bash_profile`
depending on your shell
(You could most likely find out what shell you're using by running
`echo $0`
in the terminal).
(You could most likely find out what shell you're using by running
`echo $0`
in the terminal).
...
...
This diff is collapsed.
Click to expand it.
download_cmix_binaries.sh
+
7
−
0
View file @
6162dfc1
...
@@ -50,6 +50,12 @@ fi
...
@@ -50,6 +50,12 @@ fi
DEFAULTBRANCH
=
${
DEFAULTBRANCH
:
=
"release"
}
DEFAULTBRANCH
=
${
DEFAULTBRANCH
:
=
"release"
}
if
[[
$USEREPO
==
"d"
]]
;
then
if
[[
$USEREPO
==
"d"
]]
;
then
REPOS_API
=
${
REPOS_API
:
=
"https://git.xx.network/api/v4/projects/elixxir%2F"
}
REPOS_API
=
${
REPOS_API
:
=
"https://git.xx.network/api/v4/projects/elixxir%2F"
}
BRANCH_URL
=
${
BRANCH_URL
:
=
"jobs/artifacts/master/raw/release"
}
curl
-f
-L
-H
"PRIVATE-TOKEN:
$GITLAB_ACCESS_TOKEN
"
-o
/dev/null
"
${
REPOS_API
}
user-discovery-bot/
$BRANCH_URL
/udb
$BIN
"
if
[[
$?
!=
0
]]
;
then
echo
"Bad GITLAB_ACCESS_TOKEN. You need a https://git.xx.network/-/profile/personal_access_tokens with api and read_repository access."
exit
-1
fi
else
else
REPOS_API
=
${
REPOS_API
:
=
"https://elixxir-bins.s3-us-west-1.amazonaws.com"
}
REPOS_API
=
${
REPOS_API
:
=
"https://elixxir-bins.s3-us-west-1.amazonaws.com"
}
fi
fi
...
@@ -72,6 +78,7 @@ FBRANCH2=$(echo $FBRANCH | sed 's/feature\///g')
...
@@ -72,6 +78,7 @@ FBRANCH2=$(echo $FBRANCH | sed 's/feature\///g')
echo
"Checking for binaries at
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
..."
echo
"Checking for binaries at
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
..."
echo
"(Note: if you forced a branch, that is checked first!)"
echo
"(Note: if you forced a branch, that is checked first!)"
for
BRANCH
in
$(
echo
"forcedbranch"
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
)
;
do
for
BRANCH
in
$(
echo
"forcedbranch"
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
)
;
do
echo
"Attempting downloads from:
$BRANCH
"
echo
"Attempting downloads from:
$BRANCH
"
if
[[
$USEREPO
==
"d"
]]
;
then
if
[[
$USEREPO
==
"d"
]]
;
then
...
...
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