Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-enote-installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-enote-installer
Commits
2507339f
Commit
2507339f
authored
Jul 8, 2018
by
Iain Bryson
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' of
https://github.com/dtu-compute/dtu-enote-installer
into devel
parents
c66cb217
54fc12e7
Branches
2018
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
installer.sh
+11
-5
11 additions, 5 deletions
installer.sh
valid_config.sh
+2
-8
2 additions, 8 deletions
valid_config.sh
with
13 additions
and
13 deletions
installer.sh
+
11
−
5
View file @
2507339f
...
...
@@ -56,6 +56,7 @@ iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables
-A
INPUT
-p
tcp
--dport
80
-j
ACCEPT
iptables
-A
INPUT
-p
udp
--dport
123
-j
ACCEPT
iptables
-A
INPUT
-p
tcp
--dport
443
-j
ACCEPT
iptables
-A
INPUT
-p
udp
--dport
60000
-j
ACCEPT
#-------------------------------------------------------------------------------
yum
-y
install
ntp
timedatectl set-timezone Europe/Copenhagen
...
...
@@ -78,6 +79,10 @@ yum -y update
# Dependencies for ruby scripts in dtu-enote run.sh
yum
-y
install
ruby ruby-devel rubygem-bundler
\
make gcc gcc-c++ zlib-devel rpm-build git
yum
-y
install
yum-utils epel-release
yum-config-manager
--disable
epel
yum
--enablerepo
=
epel
install
-y
mosh
#-------------------------------------------------------------------------------
docker stop
$(
docker ps
-a
-q
)
systemctl stop docker
...
...
@@ -95,7 +100,7 @@ yum -y install docker-engine
systemctl start docker
systemctl
enable
docker
curl
-L
https://github.com/docker/compose/releases/download/1.
19.0-rc3
/docker-compose-
`
uname
-s
`
-
`
uname
-m
`
-o
/usr/local/bin/docker-compose
curl
-L
https://github.com/docker/compose/releases/download/1.
21.2
/docker-compose-
`
uname
-s
`
-
`
uname
-m
`
-o
/usr/local/bin/docker-compose
chmod
+x /usr/local/bin/docker-compose
ln
-s
/usr/local/bin/docker-compose /usr/bin/Docker
docker-compose
>
/dev/null 2>&1
...
...
@@ -140,6 +145,7 @@ pull_or_clone dtu-enote-sharelatex dtu-enote-sharelatex $branch
pull_or_clone dtu-enote-website dtu-enote-website
$branch
pull_or_clone dtu-enote-chat dtu-enote-chat
$branch
pull_or_clone dtu-quiz dtu-quiz
$branch
pull_or_clone dtu-enote-chat dtu-quiz
$branch
popd
#-------------------------------------------------------------------------------
docker build src/dtu-enote-cndumper
-t
cndumper
...
...
This diff is collapsed.
Click to expand it.
valid_config.sh
+
2
−
8
View file @
2507339f
...
...
@@ -16,11 +16,6 @@ if ! [[ -f ${CONFIG_ROOT}/config/cn-dumper.yaml ]]; then
exit
0
fi
if
!
[[
-f
${
CONFIG_ROOT
}
/config/cn-dumper-dups.yaml
]]
;
then
echo
"
${
CONFIG_ROOT
}
/config/cn-dumper-dups.yaml does not exist"
exit
0
fi
if
!
[[
-f
${
CONFIG_ROOT
}
/config/courses.yaml
]]
;
then
echo
"
${
CONFIG_ROOT
}
/config/courses.yaml does not exist"
exit
0
...
...
@@ -43,11 +38,10 @@ do
done
coursewebs
=
$(
for
i
in
${
courses
[*]
}
;
do
printf
"
${
i
}
-enote
${
url_suffix
}
"
;
done
)
coursesharelatexes
=
$(
for
i
in
${
courses
[*]
}
;
do
printf
"sharelatex-
${
i
}
-enote
${
url_suffix
}
"
;
done
)
domains
=(
"
stackedit
$url_suffix
"
"enote
$url_suffix
"
"quiz
$url_suffix
"
"letsencrypt
$url_suffix
"
)
domains
=(
"
enote
$url_suffix
"
"quiz
$url_suffix
"
)
alldomains
=(
"
${
domains
[@]
}
"
"
${
coursewebs
[@]
}
"
"
${
coursesharelatexes
[@]
}
"
)
alldomains
=(
"
${
domains
[@]
}
"
"
${
coursewebs
[@]
}
"
)
echo
"Verifying the existence of domains with suffix
${
url_suffix
}
domains
${
alldomains
[@]
}
"
...
...
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