Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
7ddedcb4
Commit
7ddedcb4
authored
May 21, 2018
by
Maël Kervella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utilise des fichiers de requirements
parent
afbcb751
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
22 deletions
+27
-22
apt_requirements.txt
apt_requirements.txt
+16
-0
install_re2o.sh
install_re2o.sh
+10
-20
pip_requirements.txt
pip_requirements.txt
+1
-2
No files found.
apt_requirements.txt
0 → 100644
View file @
7ddedcb4
python3-django
python3-dateutil
texlive-latex-base
texlive-fonts-recommended
python3-djangorestframework
python3-django-reversion
python3-pip
libsasl2-dev
libldap2-dev
libssl-dev
python3-crypto
python3-git
javascript-common
libjs-jquery
libjs-jquery-ui
libjs-jquery-timepicker
libjs-bootstrap
install_re2o.sh
View file @
7ddedcb4
...
...
@@ -3,6 +3,12 @@
SETTINGS_LOCAL_FILE
=
're2o/settings_local.py'
SETTINGS_EXAMPLE_FILE
=
're2o/settings_local.example.py'
APT_REQ_FILE
=
"apt_requirements.txt"
PIP_REQ_FILE
=
"pip_requirements.txt"
LDIF_DB_FILE
=
"install_utils/db.ldiff"
LDIF_SCHEMA_FILE
=
"install_utils/schema.ldiff"
VALUE
=
# global value used to return values by some functions
...
...
@@ -61,24 +67,8 @@ install_requirements() {
###
echo
"Setting up the required packages ..."
apt-get
-y
install
\
python3-django
\
python3-dateutil
\
texlive-latex-base
\
texlive-fonts-recommended
\
python3-djangorestframework
\
python3-django-reversion
\
python3-pip
\
libsasl2-dev libldap2-dev
\
libssl-dev
\
python3-crypto
\
python3-git
\
javascript-common
\
libjs-jquery
\
libjs-jquery-ui
\
libjs-jquery-timepicker
\
libjs-bootstrap
pip3
install
django-bootstrap3 django-ldapdb
==
0.9.0 django-macaddress
cat
$APT_REQ_FILE
| xargs apt-get
-y
install
pip3
install
-r
$PIP_REQ_FILE
echo
"Setting up the required packages: Done"
}
...
...
@@ -194,8 +184,8 @@ install_ldap() {
echo
"Hash of the password:
$hashed_ldap_passwd
"
echo
"Building the LDAP config files ..."
sed
's|dc=example,dc=net|'
"
$domain
"
'|g'
install_utils/db.ldiff
|
sed
's|FILL_IT|'
"
$hashed_ldap_passwd
"
'|g'
>
/tmp/db
sed
's|dc=example,dc=net|'
"
$domain
"
'|g'
install_utils/schema.ldiff
|
sed
's|FILL_IT|'
"
$hashed_ldap_passwd
"
'|g'
>
/tmp/schema
sed
's|dc=example,dc=net|'
"
$domain
"
'|g'
$LDIF_DB_FILE
|
sed
's|FILL_IT|'
"
$hashed_ldap_passwd
"
'|g'
>
/tmp/db
sed
's|dc=example,dc=net|'
"
$domain
"
'|g'
$LDIF_SCHEMA_FILE
|
sed
's|FILL_IT|'
"
$hashed_ldap_passwd
"
'|g'
>
/tmp/schema
echo
"Building the LDAP config files: Done"
echo
"Stopping slapd service ..."
...
...
requirements.txt
→
pip_
requirements.txt
View file @
7ddedcb4
django-bootstrap3
django-ldapdb
==0.9.0
django-macaddress
python-dateutil
pycrypto
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