Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
0366682a
Commit
0366682a
authored
Nov 25, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: fixup
parent
818f087f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
18 deletions
+17
-18
component/postgresql/buildout.cfg
component/postgresql/buildout.cfg
+1
-0
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+2
-2
software/peertube/instance-peertube-output-schema.json
software/peertube/instance-peertube-output-schema.json
+4
-0
software/peertube/instance-peertube.cfg.in
software/peertube/instance-peertube.cfg.in
+5
-6
software/peertube/instance.cfg.in
software/peertube/instance.cfg.in
+4
-4
software/peertube/software.cfg
software/peertube/software.cfg
+0
-2
software/theia/test/project_tests.py
software/theia/test/project_tests.py
+1
-4
No files found.
component/postgresql/buildout.cfg
View file @
0366682a
...
@@ -29,6 +29,7 @@ configure-options =
...
@@ -29,6 +29,7 @@ configure-options =
--without-libxml
--without-libxml
--without-libxslt
--without-libxslt
# build core PostgreSQL + pg_trgm contrib extension for GitLab
# build core PostgreSQL + pg_trgm contrib extension for GitLab
# unaccent contrib extension is for peertube
make-targets = install && make -C contrib/pg_trgm/ install && make -C contrib/unaccent/ install
make-targets = install && make -C contrib/pg_trgm/ install && make -C contrib/unaccent/ install
environment =
environment =
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${openssl:location}/include -I${ncurses:location}/lib
CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${openssl:location}/include -I${ncurses:location}/lib
...
...
software/peertube/buildout.hash.cfg
View file @
0366682a
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
# not need these here).
# not need these here).
[instance-profile]
[instance-profile]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
b67bad9012a8f79c66779d4c660828e2
md5sum =
35690065ba18dc49d0108fc1f0a07b9e
[instance-peertube]
[instance-peertube]
_update_hash_filename_ = instance-peertube.cfg.in
_update_hash_filename_ = instance-peertube.cfg.in
md5sum =
3096a4d3e117752b4827925129d61331
md5sum =
0bc5a5fbf922fc884f00038f19faa147
[template-nginx-service]
[template-nginx-service]
filename = template-nginx-service.sh.in
filename = template-nginx-service.sh.in
...
...
software/peertube/instance-peertube-output-schema.json
View file @
0366682a
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"description"
:
"Values returned by Peertube instanciation"
,
"description"
:
"Values returned by Peertube instanciation"
,
"properties"
:
{
"properties"
:
{
"frontend-url"
:
{
"description"
:
"Peertube Frontend URL"
,
"type"
:
"string"
},
"backend-url"
:
{
"backend-url"
:
{
"description"
:
"Peertube Backend URL"
,
"description"
:
"Peertube Backend URL"
,
"type"
:
"string"
"type"
:
"string"
...
...
software/peertube/instance-peertube.cfg.in
View file @
0366682a
...
@@ -77,7 +77,7 @@ link-binary = ${postgresql:bin}/postgres ${postgresql:bin}/psql
...
@@ -77,7 +77,7 @@ link-binary = ${postgresql:bin}/postgres ${postgresql:bin}/psql
[nginx-service]
[nginx-service]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = {{ temp
al
te_nginx_service }}
url = {{ temp
la
te_nginx_service }}
output = ${directory:services}/nginx
output = ${directory:services}/nginx
virtual-depends =
virtual-depends =
${nginx-configuration:ip}
${nginx-configuration:ip}
...
@@ -162,7 +162,7 @@ config-url = ${peertube-parameters:frontend-url}
...
@@ -162,7 +162,7 @@ config-url = ${peertube-parameters:frontend-url}
[peertube-service]
[peertube-service]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_service }}
url = {{ temp
la
te_peertube_service }}
output = ${directory:services}/peertube
output = ${directory:services}/peertube
[peertube-database-resiliency-exclude-file]
[peertube-database-resiliency-exclude-file]
...
@@ -172,7 +172,7 @@ output = ${directory:srv}/exporter.exclude
...
@@ -172,7 +172,7 @@ output = ${directory:srv}/exporter.exclude
[peertube-database-resiliency-after-import-script]
[peertube-database-resiliency-after-import-script]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_restore }}
url = {{ temp
la
te_peertube_restore }}
output = ${directory:srv}/runner-import-restore
output = ${directory:srv}/runner-import-restore
mode = 755
mode = 755
...
@@ -187,7 +187,7 @@ logfile = ${directory:log}/crond.log
...
@@ -187,7 +187,7 @@ logfile = ${directory:log}/crond.log
[peertube-backup-script]
[peertube-backup-script]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = {{ temp
al
te_peertube_backup }}
url = {{ temp
la
te_peertube_backup }}
output = ${directory:etc}/${:_buildout_section_name_}
output = ${directory:etc}/${:_buildout_section_name_}
mode = 0744
mode = 0744
...
@@ -272,8 +272,7 @@ init =
...
@@ -272,8 +272,7 @@ init =
[publish-connection-parameter]
[publish-connection-parameter]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
frontend-hostname = ${frontend:connection-domain}
backend-url = ${frontend:config-url}
backend-url = ${frontend:config-url}
frontend-url = ${peertube-parameters:frontend-url}
frontend-url = ${peertube-parameters:frontend-url}
password = ${peertube-passwd:passwd}
password = ${peertube-passwd:passwd}
username =
root
username =
${peertube-passwd:username}
software/peertube/instance.cfg.in
View file @
0366682a
...
@@ -19,13 +19,13 @@ context =
...
@@ -19,13 +19,13 @@ context =
raw ipv4_random $${slap-configuration:ipv4-random}
raw ipv4_random $${slap-configuration:ipv4-random}
raw template_peertube_yaml ${template-peertube-yaml:output}
raw template_peertube_yaml ${template-peertube-yaml:output}
raw template_nginx_configration ${template-nginx-configuration:output}
raw template_nginx_configration ${template-nginx-configuration:output}
raw temp
al
te_peertube_service ${template-peertube-service:output}
raw temp
la
te_peertube_service ${template-peertube-service:output}
raw temp
al
te_peertube_restore ${template-peertube-restore-script:output}
raw temp
la
te_peertube_restore ${template-peertube-restore-script:output}
raw postgresql10_location ${postgresql10:location}
raw postgresql10_location ${postgresql10:location}
raw temp
al
te_nginx_service ${template-nginx-service:output}
raw temp
la
te_nginx_service ${template-nginx-service:output}
raw redis_binprefix ${redis28:location}/bin
raw redis_binprefix ${redis28:location}/bin
raw template_dcron_service ${template-dcron-service:output}
raw template_dcron_service ${template-dcron-service:output}
raw temp
al
te_peertube_backup ${template-peertube-backup-script:output}
raw temp
la
te_peertube_backup ${template-peertube-backup-script:output}
raw template_crontab_line ${template-crontab-line:output}
raw template_crontab_line ${template-crontab-line:output}
raw coreutils_cat ${coreutils-output:cat}
raw coreutils_cat ${coreutils-output:cat}
raw template_crontab ${template-crontab:output}
raw template_crontab ${template-crontab:output}
...
...
software/peertube/software.cfg
View file @
0366682a
...
@@ -43,7 +43,6 @@ parts =
...
@@ -43,7 +43,6 @@ parts =
gcc
gcc
unzip
unzip
curl
curl
vim
nodejs
nodejs
yarn
yarn
openssl
openssl
...
@@ -52,7 +51,6 @@ parts =
...
@@ -52,7 +51,6 @@ parts =
ffmpeg
ffmpeg
postgresql
postgresql
redis
redis
git
wget
wget
# peetube sections
# peetube sections
peertube
peertube
...
...
software/theia/test/project_tests.py
View file @
0366682a
...
@@ -119,7 +119,7 @@ class ERP5Mixin(object):
...
@@ -119,7 +119,7 @@ class ERP5Mixin(object):
instance_type
,
'srv'
,
'runner'
,
'instance'
,
partition
,
*
paths
)
instance_type
,
'srv'
,
'runner'
,
'instance'
,
partition
,
*
paths
)
class
Test
ERP5
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
class
Test
Theia
ResilienceERP5
(
ERP5Mixin
,
test_resiliency
.
TestTheiaResilience
):
test_instance_max_retries
=
12
test_instance_max_retries
=
12
backup_max_tries
=
480
backup_max_tries
=
480
backup_wait_interval
=
60
backup_wait_interval
=
60
...
@@ -267,9 +267,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
...
@@ -267,9 +267,6 @@ class TestTheiaResiliencePeertube(test_resiliency.TestTheiaResilience):
peertube_conenction_info
=
self
.
_getPeertubeConnexionParameters
()
peertube_conenction_info
=
self
.
_getPeertubeConnexionParameters
()
frontend_url
=
peertube_conenction_info
[
'frontend-url'
]
frontend_url
=
peertube_conenction_info
[
'frontend-url'
]
# frontend_url: https://[2001:67c:1254:fd::9ee2]:9443
# self.connection_parameters
# {'backend-url': 'https://[2001:67c:1254:fd::9ee2]:9443', 'frontend-hostname': '[2001:67c:1254:fd::9ee2]:9443', 'frontend-url': 'https://[2001:67c:1254:fd::9ee2]:9443', 'password': '8ydTfRpv', 'username': 'root'}
response
=
requests
.
get
(
frontend_url
+
'/api/v1/oauth-clients/local'
,
verify
=
False
)
response
=
requests
.
get
(
frontend_url
+
'/api/v1/oauth-clients/local'
,
verify
=
False
)
self
.
assertEqual
(
requests
.
codes
[
'OK'
],
response
.
status_code
)
self
.
assertEqual
(
requests
.
codes
[
'OK'
],
response
.
status_code
)
try
:
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment