Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPS Backend single server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS setup
VIPS Backend single server
Commits
d627c486
Commit
d627c486
authored
5 years ago
by
Tor-Einar Skog
Browse files
Options
Downloads
Patches
Plain Diff
Saving sketches
parent
d3770462
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vips-backend-single-server.sh
+74
-0
74 additions, 0 deletions
vips-backend-single-server.sh
with
74 additions
and
0 deletions
vips-backend-single-server.sh
0 → 100755
+
74
−
0
View file @
d627c486
#!/bin/bash
# INSTALLS VIPSLogic, VIPSCoreManager and VIPSCore on a vanilla Ubuntu 18 server
# (c) 2019 NIBIO
# Author Tor-Einar Skog <tor-einar.skog@nibio.no>
# Locale update
# We want the server to user UTF-8 as standard
locale-gen en_US.UTF-8
#sudo dpkg-reconfigure locales
# Database install and setup
# If you have a separate data disk for the database,
# then you need to perform some manual steps after installing
# postgresql. They are not described here.
sudo
apt-get
install
postgresql postgis
# Initialize the VIPSLogic database
printf
"
\n\n
Initializing the VIPSLogic database"
printf
"We need some input from you before doing that"
printf
"Required fields are marked with [*]"
printf
"
\n
DATABASE USER INFORMATION"
printf
"We will create a postgresql user 'vipslogic' which will own the 'vipslogic' database"
while
[
"
$vipslogic_password
"
==
""
]
do
read
-sp
"Password for vipslogic [*]: "
vipslogic_password
done
sudo
-H
-u
postgres bash
-c
"psql -v vipslogic_password=
\"
'
$vipslogic_password
'
\"
-f db/vipslogic_init_1.sql"
printf
"Done with database initialization part 1 (of 3)"
# Download, compile and deploy VIPSLogic
# We need a deploy key for that
printf
"
\n\n
DOWNLOADING VIPSLOGIC SOURCE CODE"
printf
"
\n
You need access to the VIPSLogic GitLab repository before you can proceed
\n
"
read
-p
"GitLab deploy token [*]: "
deploy_token
read
-p
"GitLab deploy password [*]: "
deploy_password
git clone https://
$deploy_token
:
$deploy_password
@gitlab.nibio.no/VIPS/VIPSLogic.git
printf
"
\n
VIPSLogic source code downloaded. Installing OpenJDK11 and build tool Maven
\n
"
apt-get
install
openjdk-11-jdk maven
printf
"
\n
ORGANIZATION INFO
\n
"
while
[
"
$organization_name
"
==
""
]
do
read
-p
"Organization name [*] (e.g. NIBIO): "
organization_name
done
read
-p
"Address 1: "
address_1
read
-p
"Address 2: "
address_2
read
-p
"ZIP/Postal code: "
postal_code
read
-p
"City: "
city
while
[
"
$country_code
"
==
""
]
do
read
-p
"Country code [*] (Two letters, see https://www.worldatlas.com/aatlas/ctycodes.htm): "
country_code
done
read
-p
"Default language and locale [*] (See https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html): "
default_language
read
-p
"Web map default center longitude (WGS84):"
longitude
read
-p
"Web map default center latitude (WGS84):"
latitude
read
-p
"Default timezone (See https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html): "
timezone
printf
"
\n
INITIAL ADMIN USER INFO"
while
[
"
$user_email
"
==
""
]
do
read
-p
"Email [*]: "
user_email
done
read
-p
"First name: "
first_name
while
[
"
$last_name
"
==
""
]
do
read
-p
"Last name [*]: "
last_name
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment