Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prod_build_cellframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
cellframe
prod_build_cellframe-node
Commits
e96f27aa
Commit
e96f27aa
authored
3 years ago
by
Aleksandr Vodianov
Browse files
Options
Downloads
Plain Diff
Merge branch 'support-5413' into develop
parents
3fc45e58
b2a6737a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
linux/debian/essentials/config
+6
-0
6 additions, 0 deletions
linux/debian/essentials/config
linux/debian/essentials/templates
+18
-0
18 additions, 0 deletions
linux/debian/essentials/templates
linux/debian/scripts/deploy.sh
+21
-22
21 additions, 22 deletions
linux/debian/scripts/deploy.sh
with
45 additions
and
22 deletions
linux/debian/essentials/config
+
6
−
0
View file @
e96f27aa
...
...
@@ -30,6 +30,12 @@ reconfigure|configure)
db_go
||
true
db_input critical cellframe-node/kelvin_testnet_node_type
||
true
db_go
||
true
db_input critical cellframe-node/subzero_enabled
||
true
db_go
||
true
db_input critical cellframe-node/subzero_node_type
||
true
db_go
||
true
;;
...
...
This diff is collapsed.
Click to expand it.
linux/debian/essentials/templates
+
18
−
0
View file @
e96f27aa
...
...
@@ -71,3 +71,21 @@ Description: Kelvin Testnet: Node role
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
Template: cellframe-node/subzero_enabled
Default: true
Choices: true, false
Type: select
Description: SubZero: Enable network
Kelvin Testnet: Enable network auto load on start
Template: cellframe-node/subzero_node_type
Type: select
Default: full
Choices: full, light, master, archive, root
Description: SubZero: Node role
Select node role:.
Light - syncronize only local wallets
full - sync all its cell
master - allow to store values in chains and take comission, sync all shards that will need to be synced
archive - Sync all the network
root - Special predefined root nodes, usualy produces zerochain and act like archive as well
This diff is collapsed.
Click to expand it.
linux/debian/scripts/deploy.sh
+
21
−
22
View file @
e96f27aa
...
...
@@ -7,48 +7,47 @@ CELLFRAME_REPO_CREDS="admin@debian.pub.demlabs.net"
CELLFRAME_REPO_KEY
=
"~/.ssh/demlabs_publish"
CELLFRAME_REPO_PATH
=
"~/web/debian.pub.demlabs.net/public_html"
REPO_PORT
=
34768
CELLFRAME_FILESERVER_CREDS
=
"admin@pub.cellframe.net"
CELLFRAME_FILESERVER_PATH
=
"~/web/pub.cellframe.net/public_html/linux"
CELLFRAME_PUB_CREDS
=
"admin@pub.cellframe.net"
CELLFRAME_PUB_PATH
=
"~/web/pub.cellframe.net/public_html/linux"
CELLFRAME_PVT_CREDS
=
"admin@pvt.demlabs.net"
CELLFRAME_PVT_PATH
=
"~/web/public"
pwd
cd
packages
PKGFILES
=
$(
ls
.
|
grep
.deb
)
MOD
=
$(
echo
$MOD
|
sed
's/-\?static-\?//'
)
&&
[
!
$MOD
=
""
]
&&
MOD
=
"-
$MOD
"
#cd ..
[[
-v
CI_COMMIT_REF_NAME
]]
&&
[[
$CI_COMMIT_REF_NAME
!=
"master"
]]
&&
SUBDIR
=
"
${
CI_COMMIT_REF_NAME
}
"
||
SUBDIR
=
""
#echo "We have $DISTR_CODENAME there"
#echo "On path $REPO_DIR_SRC we have debian files."
for
pkgfile
in
$PKGFILES
;
do
if
[[
$(
echo
$pkgfile
|
grep
"pgsql"
)
==
""
]]
;
then
CELLFRAME_FILESERVER_CREDS
=
$CELLFRAME_PUB_CREDS
CELLFRAME_FILESERVER_PATH
=
$CELLFRAME_PUB_PATH
else
CELLFRAME_FILESERVER_CREDS
=
$CELLFRAME_PVT_CREDS
CELLFRAME_FILESERVER_PATH
=
$CELLFRAME_PVT_PATH
fi
pkgname
=
$(
echo
$pkgfile
|
sed
's/.deb$//'
)
pkgname_public
=
$(
echo
$pkgname
|
cut
-d
'-'
-f1-4
,7-
)
#cutting away Debian-9.12
pkgname_weblink
=
"
$(
echo
$pkgname
|
cut
-d
'-'
-f2
,8
)
-latest"
#leaving only necessary entries
echo
"Package name for public is
$pkgname_public
"
mv
$pkgfile
$wd
/
$PACKAGE_PATH
/
$pkgname
$MOD
.deb
||
{
echo
"[ERR] Something went wrong in publishing the package. Now aborting."
;
exit
-4
;
}
mv
$pkgfile
$wd
/
$PACKAGE_PATH
/
$pkgname
.deb
||
{
echo
"[ERR] Something went wrong in publishing the package. Now aborting."
;
exit
-4
;
}
CODENAME
=
$(
echo
$pkgname
| rev |
cut
-d
'-'
-f1
| rev
)
cp
-r
../prod_build/general/essentials/weblink-latest ../prod_build/general/essentials/
$pkgname_weblink
sed
-i
"/document/s/cellframe.*deb/
$pkgname_public$MOD
.deb/"
../prod_build/general/essentials/
$pkgname_weblink
/index.html
# if [[ $(echo $CI_COMMIT_REF_NAME | grep "master\|^release\|^pubtest") != "" ]]; then
echo
"REF_NAME is
$CI_COMMIT_REF_NAME
"
ssh
-i
$CELLFRAME_REPO_KEY
"
$CELLFRAME_FILESERVER_CREDS
"
"mkdir -p
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
"
scp
-i
$CELLFRAME_REPO_KEY
$wd
/
$PACKAGE_PATH
/
$pkgname$MOD
.deb
"
$CELLFRAME_FILESERVER_CREDS
:
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
/
$pkgname_public$MOD
.deb"
if
[[
$(
echo
$pkgname
|
grep
"pgsql
\|
dbg"
)
==
""
]]
;
then
scp
-r
-i
$CELLFRAME_REPO_KEY
../prod_build/general/essentials/
$pkgname_weblink
"
$CELLFRAME_FILESERVER_CREDS
:
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
/"
if
[[
$CI_COMMIT_REF_NAME
==
"master"
]]
;
then
set
-x
scp
-P
$REPO_PORT
-i
$CELLFRAME_REPO_KEY
$wd
/
$PACKAGE_PATH
/
$pkgname$MOD
.deb
"
$CELLFRAME_REPO_CREDS
:~/aptly/repo_update/
$pkgname_public$MOD
.deb"
ssh
-p
$REPO_PORT
-i
$CELLFRAME_REPO_KEY
"
$CELLFRAME_REPO_CREDS
"
--
"~/aptly/repo_update.sh"
set
+x
fi
fi
# ssh -i $CELLFRAME_REPO_KEY "$CELLFRAME_FILESERVER_CREDS" "ln -sf $CELLFRAME_FILESERVER_PATH/$pkgname$MOD.deb $CELLFRAME_FILESERVER_PATH/$pkgname$MOD-latest.deb"
sed
-i
"/document/s/cellframe.*deb/
$pkgname_public
.deb/"
../prod_build/general/essentials/
$pkgname_weblink
/index.html
echo
"REF_NAME is
$CI_COMMIT_REF_NAME
"
ssh
-i
$CELLFRAME_REPO_KEY
"
$CELLFRAME_FILESERVER_CREDS
"
"mkdir -p
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
"
scp
-i
$CELLFRAME_REPO_KEY
$wd
/
$PACKAGE_PATH
/
$pkgname
.deb
"
$CELLFRAME_FILESERVER_CREDS
:
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
/
$pkgname_public
.deb"
if
[[
$CI_COMMIT_REF_NAME
==
"master"
&&
$(
echo
$pkgname
|
grep
"dbg"
)
==
""
]]
;
then
scp
-r
-i
$CELLFRAME_REPO_KEY
../prod_build/general/essentials/
$pkgname_weblink
"
$CELLFRAME_FILESERVER_CREDS
:
$CELLFRAME_FILESERVER_PATH
/
$SUBDIR
/"
scp
-P
$REPO_PORT
-i
$CELLFRAME_REPO_KEY
$wd
/
$PACKAGE_PATH
/
$pkgname
.deb
"
$CELLFRAME_REPO_CREDS
:~/aptly/repo_update/
$pkgname_public
.deb"
ssh
-p
$REPO_PORT
-i
$CELLFRAME_REPO_KEY
"
$CELLFRAME_REPO_CREDS
"
--
"~/aptly/repo_update.sh"
fi
# fi
rm
-r
../prod_build/general/essentials/
$pkgname_weblink
done
# export -n "UPDVER"
cd
..
exit
0
#symlink name-actual to the latest version.
...
...
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