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
2407a270
Commit
2407a270
authored
Oct 05, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[REPO] Changing repo name
parent
8542d674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
70 deletions
+0
-70
.01-setup
install/gargamelle/.01-setup
+0
-70
No files found.
install/gargamelle/.01-setup
deleted
100755 → 0
View file @
8542d674
#!/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 }'
`
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