Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
035f3ea0
Commit
035f3ea0
authored
Apr 26, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CLEAN] Install steps (all cleaned). Do it manually until script work please.
parent
02f86ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
34 deletions
+33
-34
install.sh
install/docker/dev/install.sh
+33
-34
No files found.
install/docker/dev/install.sh
View file @
035f3ea0
...
...
@@ -12,7 +12,7 @@
#
######################################################################
#
sudo docker build -t gargantext .
sudo
docker build
-t
gargantext
.
# OR
# cd /tmp
# wget http://dl.gargantext.org/gargantext_docker_image.tar \
...
...
@@ -48,7 +48,8 @@ function create_folders {
"/srv/env_3-5"
;
do
\
sudo mkdir
-p
$dir
;
\
sudo chown
gargantua:gargantua
$dir
;
\
done
done
\
sudo chown
-R
postgres:postgres /srv/gargantext_data/
}
#do_cker "create_folders"
...
...
@@ -72,23 +73,20 @@ function git_config {
## |_| \___/|___/\__\__, |_| \___||___/
## |___/
#######################################################################
#
#
sudo chown
-R
postgres:postgres /srv/gargantext_data/
function
postgres_config
{
/usr/lib/postgresql/9.5/bin/initdb
-D
/srv/gargantext_data/
}
#do_cker "su postgres -c postgres_config"
do_cker
"su postgres -c postgres_config"
function
postgres_create_db
{
sudo
/etc/init.d/postgresql start
\
&&
psql
-c
"CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'"
\
&&
createdb
-O
gargantua gargandb
\
&&
echo
"Root: END of the installation of Gargantexts Database by postgres."
}
#do_cker postgres_create_db
## sudo /etc/init.d/postgresql start \
## && psql -c "CREATE user gargantua WITH PASSWORD 'C8kdcUrAQy66U'" \
## && createdb -O gargantua gargandb \
## && echo "Root: END of the installation of Gargantexts Database by postgres."
##
#
#
#######################################################################
## _ _ _ _ _
## | | (_) |__ _ __ __ _(_)_ __(_) ___ ___
...
...
@@ -98,35 +96,36 @@ do_cker "su postgres -c postgres_config"
##
#######################################################################
#
#
#######################################################################
### INSTALL MAIN DEPENDENCIES
#######################################################################
##USER gargantua
###
###
#### Installing pip version of python libs
#
#
function install_python_env {
#
/usr/bin/virtualenv --py=/usr/bin/python3.5 /srv/env_3-52 \
#
&& /bin/bash -c 'source /srv/env_3-52/bin/activate' \
#
&& /bin/bash -c '/srv/env_3-52/bin/pip install git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1' \
#
&& /bin/bash -c '/srv/env_3-52/bin/pip install -r /srv/gargantext/install/python/requirements.txt'
#
}
#
function
install_python_env
{
/usr/bin/virtualenv
--py
=
/usr/bin/python3.5 /srv/env_3-52
\
&&
/bin/bash
-c
'source /srv/env_3-52/bin/activate'
\
&&
/bin/bash
-c
'/srv/env_3-52/bin/pip install git+https://github.com/zzzeek/sqlalchemy.git@rel_1_1'
\
&&
/bin/bash
-c
'/srv/env_3-52/bin/pip install -r /srv/gargantext/install/python/requirements.txt'
}
#do_cker "su gargantua -c install_python_env"
#
#######################################################################
#
function init_gargantext {
#
echo "TODO script pour peupler la base"
#
}
#
function
init_gargantext
{
echo
"TODO script pour peupler la base"
}
#do_cker "su gargantua -c init_gargantext"
#######################################################################
#
### GET CONFIG FILES
##wget http://dl.gargantext.org/gargantext_lib.tar.bz2 \
## && tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
## && sudo chown -R gargantua:gargantua /srv/gargantext_lib \
## && echo "Libs installed"
#
function
get_libs
{
wget http://dl.gargantext.org/gargantext_lib.tar.bz2
\
&&
tar
xvjf gargantext_lib.tar.bz2
-o
/srv/gargantext_lib
\
&&
sudo chown
-R
gargantua:gargantua /srv/gargantext_lib
\
&&
echo
"Libs installed"
}
#do_cker get_libs
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