Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
gargantext
haskell-gargantext
Commits
0901a1a0
Commit
0901a1a0
authored
Sep 14, 2020
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Install] fix debian & openStack adding ubuntu file for tests
parent
93e1c3ab
Pipeline
#1058
canceled with stage
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
215 additions
and
23 deletions
+215
-23
install
devops/debian/install
+6
-21
install
devops/openStack/install
+20
-0
install
devops/ubuntu/install
+189
-0
Machine.hs
src/Gargantext/Prelude/Crypto/Pass/Machine.hs
+0
-2
No files found.
devops/debian/install
View file @
0901a1a0
...
...
@@ -21,20 +21,6 @@ sudo apt upgrade
sudo
apt
install
tmux htop
########################################################################
tmux
########################################################################
# Open Stack only: attach volumes
# attach the volume created (OS interface or API)
sudo
fdisk
-l
sudo
fdisk /dev/vdb
(
n,p,t,83,w
)
sudo
mkfs.ext4 /dev/vdb1
sudo
blkid
# copy UUID in fstab (same parameters)
sudo
vim /etc/fstab
########################################################################
sudo sed
-i
"s/stretch/buster/g"
/etc/apt/sources.list
sudo
apt update
sudo
apt dist-upgrade
...
...
@@ -44,22 +30,21 @@ sudo apt dist-upgrade
sudo
apt update
sudo
apt
install
liblzma-dev libpcre3-dev libblas-dev liblapack-dev pkg-config libgsl-dev libbz2-dev postgresql postgresql-server-dev-11 nginx libigraph0-dev libgfortran-8-dev
sudo
apt
install
git
git config
--global
user.email
"contact@gargantext.org"
git config
--global
user.name
"Gargantua"
#
git config --global user.email "contact@gargantext.org"
#
git config --global user.name "Gargantua"
########################################################################
echo
"Which user?"
read
USER
USER
=
"gargantua"
sudo
adduser
--disabled-password
--gecos
""
$USER
cd
/home
sudo mv
-if
/home/
$USER
/srv/
sudo ln
-s
/srv/
$USER
########################################################################
#cd /home
#sudo mv -if /home/$USER /srv/
#sudo ln -s /srv/$USER
curl
-sSL
https://get.haskellstack.org/ | sh
...
...
devops/openStack/install
0 → 100755
View file @
0901a1a0
#!/bin/bash
########################################################################
# Open Stack only: attach volumes
# attach the volume created (OS interface or API)
sudo
fdisk
-l
sudo
fdisk /dev/vdb
(
n,p,t,83,w
)
sudo
mkfs.ext4 /dev/vdb1
sudo
blkid
# copy UUID in fstab (same parameters)
sudo
vim /etc/fstab
########################################################################
sudo sed
-i
"s/stretch/buster/g"
/etc/apt/sources.list
sudo
apt update
sudo
apt dist-upgrade
# sudo reboot #recommended
########################################################################
devops/ubuntu/install
0 → 100755
View file @
0901a1a0
This diff is collapsed.
Click to expand it.
src/Gargantext/Prelude/Crypto/Pass/Machine.hs
View file @
0901a1a0
...
...
@@ -21,14 +21,12 @@ module Gargantext.Prelude.Crypto.Pass.Machine
import
Data.List
(
nub
)
-- import System.Environment (getArgs)
-- import System.IO (hSetEcho)
import
Data.Text
(
Text
)
import
Control.Monad.State
import
Crypto.Random
(
cprgGenerate
)
import
Crypto.Random.AESCtr
import
Data.Binary
(
decode
)
import
Prelude
import
qualified
Data.ByteString.Lazy
as
B
import
Gargantext.Prelude
(
cs
)
import
Data.ByteString
as
S
(
ByteString
,
unpack
)
import
Data.ByteString.Char8
as
C8
(
pack
)
import
Data.Char
(
chr
)
...
...
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