-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.yaml
45 lines (38 loc) · 1.42 KB
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
appVersion: latest
type: install
id: pgadmin4
name: pgAdmin4
baseUrl: https://raw.githubusercontent.com/jelastic-jps/pgadmin/master
logo: /images/pgadmin-small.png
homepage: https://https://www.pgadmin.org/
categories:
- apps/dev-and-admin-tools
globals:
email: ${user.email}
password: ${fn.password(10)}
description:
text: /texts/description.md
short: pgAdmin is a top management tool for PostgreSQL here utilized as web application.
nodes:
- cloudlets: 16
nodeGroup: cp
image: dpage/pgadmin4:latest
env:
PGADMIN_DEFAULT_EMAIL: ${globals.email}
PGADMIN_DEFAULT_PASSWORD: ${globals.password}
PGADMIN_LISTEN_PORT: 8080
JELASTIC_EXPOSE: 8080
startService: false
onInstall:
- cmd[cp]:
mkdir /home/pgadmin;
chown pgadmin:pgadmin -R /home/pgadmin;
rm -f /usr/bin/launcher;
grep -qE '^\s*PubkeyAuthentication\s*yes' /etc/ssh/sshd_config || sed -i '/^Match/iPubkeyAuthentication yes' /etc/ssh/sshd_config;
grep -qE '^\s*HostKeyAlgorithms\s*ssh-rsa,ssh-dss' /etc/ssh/sshd_config || sed -i '/^Match/iHostKeyAlgorithms ssh-rsa,ssh-dss' /etc/ssh/sshd_config;
grep -qE '^\s*PubkeyAcceptedKeyTypes\s*ssh-rsa,ssh-dss' /etc/ssh/sshd_config || sed -i '/^Match/iPubkeyAcceptedKeyTypes ssh-rsa,ssh-dss' /etc/ssh/sshd_config;
/etc/init.d/devfs restart;
/etc/init.d/sshd restart
- api: env.control.ExecDockerRunCmd
nodeId: ${nodes.cp.master.id}
success: /texts/success.md