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
a11915c8
Commit
a11915c8
authored
8 years ago
by
c24b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INSTALL
parent
a22d37c8
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
0 deletions
+154
-0
.01-setup
install/gargamelle/.01-setup
+70
-0
.02-config
install/gargamelle/.02-config
+0
-0
.03-run
install/gargamelle/.03-run
+0
-0
install
install/install
+70
-0
run
install/run
+14
-0
No files found.
install/01-setup
→
install/
gargamelle/.
01-setup
View file @
a11915c8
...
...
@@ -4,8 +4,46 @@
#git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
# && cd /srv/gargantext \
# && git fetch origin stable \
# && git checkout stable \
echo
"****************SETUP**************************"
;
# && git checkout stable
function
clone_repo
{
echo
"* CLONE"
#echo "/home/"$USER"/ssh_keys/"$USER;
read
-e
-r
-p
"Please provide you ssh keys full directory:"
response
;
ssh-agent bash
-c
'ssh-add '
$response
''
;
git clone ssh://gitolite@delanoe.org:1979/gargantext
-o
/srv/gargantext
;
cd
/srv/gargantext
git fetch origin stable
git pull
git checkout
-b
$USER
'-stable'
;
echo
"Switching to your own branch"
;
}
function
download_lib
{
echo
"* DOWNLOAD additionnal lib"
echo
"(May take a while, be patient or come back later when finished;)"
sudo
wget
-P
install
/ http://dl.gargantext.org/gargantext_lib.tar.bz2
#here gargantext_lib.tar.bz2 inside this directory
}
function
uncompress_lib
{
cd
/srv/gargantext/install/
echo
"* UNCOMPRESSING additionnal lib"
sudo tar
xvjf gargantext_lib.tar.bz2
-o
/srv/gargantext_lib
sudo chown
-R
gargantua:gargantua /srv/gargantext_lib
}
#~ read -r -p "Do you want to clone the project? [y/N] " response
#~ case $response in
#~ [yY][eE][sS]|[yY])
#~ clone_repo
#~ ;;
#~ *)
#~ cd /srv/gargantext/
#~ ;;
#~ esac
echo
"::: SETUP ENV :::"
;
for
dir
in
"/srv/gargantext_lib"
"/srv/gargantext_static"
"/srv/gargantext_media"
;
do
sudo mkdir
-p
$dir
;
sudo chown
gargantua:gargantua
$dir
;
...
...
@@ -16,5 +54,17 @@ done;
#sudo tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
#&& sudo chown -R gargantua:gargantua /srv/gargantext_lib \
#&& echo ":::::::::::::::::Done::::::::::::::::::::::::::";
echo
':::: BUILD ::::'
sudo
docker build
-t
gargamelle:latest ./gargamelle
echo
':::: CONFIGURE ::::'
sudo
docker run
\
-v
/srv/:/srv/
\
-p
8000:8000
\
-p
5432
\
-it
gargamelle:latest
\
/bin/bash
-c
"./psql_configure.sh; ./django_configure.sh ; exit"
sudo
docker
rm
-f
`
docker ps
-a
|
grep
-v
CONTAINER |
awk
'{print $1 }'
`
This diff is collapsed.
Click to expand it.
install/02-config
→
install/
gargamelle/.
02-config
View file @
a11915c8
File moved
This diff is collapsed.
Click to expand it.
install/03-run
→
install/
gargamelle/.
03-run
View file @
a11915c8
File moved
This diff is collapsed.
Click to expand it.
install/install
0 → 100755
View file @
a11915c8
#!/bin/bash
#name:01-setup
#TODO clone the repo into /srv/gargantext/ and reduce the different steps
#git clone ssh://gitolite@delanoe.org:1979/gargantext /srv/gargantext \
# && cd /srv/gargantext \
# && git fetch origin stable \
# && git checkout stable
function
clone_repo
{
echo
"* CLONE"
#echo "/home/"$USER"/ssh_keys/"$USER;
read
-e
-r
-p
"Please provide you ssh keys full directory:"
response
;
ssh-agent bash
-c
'ssh-add '
$response
''
;
git clone ssh://gitolite@delanoe.org:1979/gargantext
-o
/srv/gargantext
;
cd
/srv/gargantext
git fetch origin stable
git pull
git checkout
-b
$USER
'-stable'
;
echo
"Switching to your own branch"
;
}
function
download_lib
{
echo
"* DOWNLOAD additionnal lib"
echo
"(May take a while, be patient or come back later when finished;)"
sudo
wget
-P
install
/ http://dl.gargantext.org/gargantext_lib.tar.bz2
#here gargantext_lib.tar.bz2 inside this directory
}
function
uncompress_lib
{
cd
/srv/gargantext/install/
echo
"* UNCOMPRESSING additionnal lib"
sudo tar
xvjf gargantext_lib.tar.bz2
-o
/srv/gargantext_lib
sudo chown
-R
gargantua:gargantua /srv/gargantext_lib
}
#~ read -r -p "Do you want to clone the project? [y/N] " response
#~ case $response in
#~ [yY][eE][sS]|[yY])
#~ clone_repo
#~ ;;
#~ *)
#~ cd /srv/gargantext/
#~ ;;
#~ esac
echo
"::: SETUP ENV :::"
;
for
dir
in
"/srv/gargantext_lib"
"/srv/gargantext_static"
"/srv/gargantext_media"
;
do
sudo mkdir
-p
$dir
;
sudo chown
gargantua:gargantua
$dir
;
done
;
#here gargantext_lib.tar.bz2 inside this directory
#sudo wget http://dl.gargantext.org/gargantext_lib.tar.bz2 && \
#sudo tar xvjf gargantext_lib.tar.bz2 -o /srv/gargantext_lib \
#&& sudo chown -R gargantua:gargantua /srv/gargantext_lib \
#&& echo ":::::::::::::::::Done::::::::::::::::::::::::::";
echo
':::: BUILD ::::'
sudo
docker build
-t
gargamelle:latest ./gargamelle
echo
':::: CONFIGURE ::::'
sudo
docker run
\
-v
/srv/:/srv/
\
-p
8000:8000
\
-p
5432
\
-it
gargamelle:latest
\
/bin/bash
-c
"./psql_configure.sh; ./django_configure.sh ; exit"
sudo
docker
rm
-f
`
docker ps
-a
|
grep
-v
CONTAINER |
awk
'{print $1 }'
`
This diff is collapsed.
Click to expand it.
install/run
0 → 100755
View file @
a11915c8
#!/bin/bash
sudo
docker run
\
-v
/srv/:/srv/
\
-p
8000:8000
\
-p
5432
\
-it
gargamelle:latest
\
/bin/bash
-c
"service postgresql start; /bin/su gargantua -c 'source /env_3-5/bin/activate && /srv/gargantext/manage.py runserver 0.0.0.0:8000'"
sudo
docker
rm
-f
`
docker ps
-a
|
grep
-v
CONTAINER |
awk
'{print $1 }'
`
This diff is collapsed.
Click to expand it.
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