Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
hive
hivemind
Merge requests
!410
Something went wrong on our end
more small changes, get_discussions_by_blog reusing bridge SQL function
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
more small changes, get_discussions_by_blog reusing bridge SQL function
abw_code_cleanup2
into
develop
Overview
0
Commits
8
Pipelines
0
Changes
2
Merged
Andrzej Lisak
requested to merge
abw_code_cleanup2
into
develop
4 years ago
Overview
0
Commits
8
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
cdcefa75
Prev
Next
Show latest version
2 files
+
99
−
99
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
cdcefa75
[ABW]: CLRF->LF in scripts (was that the reason of CI fail?)
· cdcefa75
Andrzej Lisak
authored
4 years ago
scripts/ci/hive-sync.sh
+
37
−
37
Options
#!/bin/bash
set
-euo
pipefail
# For debug only!
# RUNNER_HIVEMIND_SYNC_MAX_BLOCK=10000
# RUNNER_HIVED_URL='{"default":"http://hived-node:8091"}'
# RUNNER_HIVED_URL='{"default":"http://172.17.0.1:8091"}'
hive_sync
()
{
# Start hive sync process
cat
<<
EOF
Starting hive sync using hived url:
${
RUNNER_HIVED_URL
}
.
Max sync block is:
${
RUNNER_HIVEMIND_SYNC_MAX_BLOCK
}
.
EOF
USER
=
${
RUNNER_POSTGRES_APP_USER
}
:
${
RUNNER_POSTGRES_APP_USER_PASSWORD
}
OPTIONS
=
"host=
${
RUNNER_POSTGRES_HOST
}
&port=
${
RUNNER_POSTGRES_PORT
}
"
DATABASE_URL
=
"postgresql://
${
USER
}
@/
${
HIVEMIND_DB_NAME
}
?
${
OPTIONS
}
"
hive
sync
\
--log-mask-sensitive-data
\
--pid-file
hive_sync.pid
\
--test-max-block
=
${
RUNNER_HIVEMIND_SYNC_MAX_BLOCK
}
\
--exit-after-sync
\
--test-profile
=
False
\
--steemd-url
"
${
RUNNER_HIVED_URL
}
"
\
--prometheus-port
11011
\
--database-url
"
${
DATABASE_URL
}
"
\
--mock-block-data-path
mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json mock_data/block_data/reblog_op/mock_block_data_reblog.json
\
--community-start-block
4999998
\
2>&1 |
tee
-i
hivemind-sync.log
}
hive_sync
#!/bin/bash
set
-euo
pipefail
# For debug only!
# RUNNER_HIVEMIND_SYNC_MAX_BLOCK=10000
# RUNNER_HIVED_URL='{"default":"http://hived-node:8091"}'
# RUNNER_HIVED_URL='{"default":"http://172.17.0.1:8091"}'
hive_sync
()
{
# Start hive sync process
cat
<<
EOF
Starting hive sync using hived url:
${
RUNNER_HIVED_URL
}
.
Max sync block is:
${
RUNNER_HIVEMIND_SYNC_MAX_BLOCK
}
.
EOF
USER
=
${
RUNNER_POSTGRES_APP_USER
}
:
${
RUNNER_POSTGRES_APP_USER_PASSWORD
}
OPTIONS
=
"host=
${
RUNNER_POSTGRES_HOST
}
&port=
${
RUNNER_POSTGRES_PORT
}
"
DATABASE_URL
=
"postgresql://
${
USER
}
@/
${
HIVEMIND_DB_NAME
}
?
${
OPTIONS
}
"
hive
sync
\
--log-mask-sensitive-data
\
--pid-file
hive_sync.pid
\
--test-max-block
=
${
RUNNER_HIVEMIND_SYNC_MAX_BLOCK
}
\
--exit-after-sync
\
--test-profile
=
False
\
--steemd-url
"
${
RUNNER_HIVED_URL
}
"
\
--prometheus-port
11011
\
--database-url
"
${
DATABASE_URL
}
"
\
--mock-block-data-path
mock_data/block_data/follow_op/mock_block_data_follow.json mock_data/block_data/community_op/mock_block_data_community.json mock_data/block_data/reblog_op/mock_block_data_reblog.json
\
--community-start-block
4999998
\
2>&1 |
tee
-i
hivemind-sync.log
}
hive_sync
Loading