Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
f4cc54a5
Commit
f4cc54a5
authored
Jul 24, 2017
by
bmedx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for devstack sqlite segfaults PLAT-1637
parent
2d9eb570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
playbooks/roles/edxapp/files/edx/app/edxapp/upgrade_sqlite.sh
+18
-0
playbooks/roles/edxapp/tasks/deploy.yml
+24
-0
No files found.
playbooks/roles/edxapp/files/edx/app/edxapp/upgrade_sqlite.sh
0 → 100755
View file @
f4cc54a5
#!/usr/bin/env bash
#
# Script to update sqlite3 to a version which will not segfault
# in out Django unit tests.
#
curl https://codeload.github.com/ghaering/pysqlite/tar.gz/2.8.3
>
pysqlite-2.8.3.tar.gz
curl https://www.sqlite.org/2016/sqlite-autoconf-3140100.tar.gz
>
sqlite-autoconf-3140100.tar.gz
tar
-xzvf
sqlite-autoconf-3140100.tar.gz
tar
-xzvf
pysqlite-2.8.3.tar.gz
cp
-av
sqlite-autoconf-3140100/. pysqlite-2.8.3/
cd
./pysqlite-2.8.3
&&
python setup.py build_static install
cd
..
rm
-rf
pysqlite-2.8.3
*
rm
-rf
sqlite-autoconf-3140100
*
rm upgrade_sqlite.sh
playbooks/roles/edxapp/tasks/deploy.yml
View file @
f4cc54a5
...
...
@@ -178,6 +178,30 @@
-
install
-
install:app-requirements
# Copy the sqlite upgrade script to { edx_app_dir }
-
name
:
copy the sqlite script to the desired location
copy
:
src
:
'
edx/app/edxapp/upgrade_sqlite.sh'
dest
:
'
{{
edxapp_app_dir
}}/upgrade_sqlite.sh'
owner
:
'
{{
edxapp_user
}}'
group
:
'
{{
edxapp_user
}}'
mode
:
'
0750'
when
:
devstack is defined and devstack
tags
:
-
install
-
install:app-requirements
# Fix up sqlite3 on devstacks to prevent segfaults when running tests
-
name
:
install upgraded sqlite
shell
:
"
{{
edxapp_app_dir
}}/upgrade_sqlite.sh"
args
:
chdir
:
"
{{
edxapp_app_dir
}}"
become_user
:
"
{{
edxapp_user
}}"
when
:
devstack is defined and devstack
tags
:
-
install
-
install:app-requirements
# If using CAS and you have a function for mapping attributes, install
# the module here. The next few tasks set up the python code sandbox
-
name
:
install CAS attribute module
...
...
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