Skip to content

Commit 0e6ded0

Browse files
committed
Add .gitignore file, update Dockerfile for PostgreSQL cleanup, and modify SSL certificate subject in configuration script
1 parent b0309d2 commit 0e6ded0

4 files changed

Lines changed: 35 additions & 7 deletions

File tree

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Windows thumbnail cache files
2+
Thumbs.db
3+
ehthumbs.db
4+
ehthumbs_vista.db
5+
6+
# Folder config file
7+
Desktop.ini
8+
9+
# Recycle Bin used on file shares
10+
$RECYCLE.BIN/
11+
12+
# Windows Installer files
13+
*.cab
14+
*.msi
15+
*.msm
16+
*.msp
17+
18+
# Windows shortcuts
19+
*.lnk
20+
21+
# Python Cache
22+
__pycache__
23+
24+
# Operating System Files
25+
.DS_Store
26+
.idea
27+
*.log
28+
*.pyc
29+
*.tgz
30+
*.gz
31+
*.db

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ ADD --chmod=755 scripts/002_initialization.sh /docker-entrypoint-initdb.d/002_in
1616

1717
USER root
1818

19-
RUN rm -rf /usr/lib/postgresql/12 /usr/lib/postgresql/13 \
19+
RUN rm -rf /usr/lib/postgresql/12 /usr/lib/postgresql/13 \
2020
&& mkdir -p /var/lib/postgresql/data /var/lib/postgresql/ts/data \
21-
&& chown -R postgres /var/lib/postgresql/data /var/lib/postgresql/ts/data \
21+
&& chown -R postgres /var/lib/postgresql/data /var/lib/postgresql/ts/data
2222

2323
USER postgres

scripts/001_configuration.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# All rights reserved.
44

55
# Create SSL cert
6-
openssl req -x509 -newkey rsa:4096 -nodes -subj "/C=US/ST=CA/L=Seattle/O=OpenBMP/CN=localhost" \
6+
openssl req -x509 -newkey rsa:4096 -nodes -subj "/C=US/ST=CA/L=Seattle/O=BGPDATA/CN=localhost" \
77
-keyout $PGDATA/psql_server.key -out $PGDATA/psql_server.crt -days 2048 \
88

99
# Init timeseries location

scripts/002_initialization.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
# Copyright (c) 2021-2022 Cisco Systems, Inc. and others.
33
# All rights reserved.
44

5-
# Required: Execute 004_obmp_psql_cfg.sh for preload configuration before adding extensions
6-
75
# Add extensions
86
psql -U $POSTGRES_USER -c "CREATE EXTENSION IF NOT EXISTS postgis CASCADE;" $POSTGRES_DB
97
psql -U $POSTGRES_USER -c "CREATE EXTENSION IF NOT EXISTS pgrouting CASCADE;" $POSTGRES_DB
108

119
# Add cron extension and config
1210
psql -U $POSTGRES_USER -c "CREATE EXTENSION IF NOT EXISTS pg_cron;" $POSTGRES_DB
13-
psql -U $POSTGRES_USER -c "GRANT USAGE ON SCHEMA cron TO $POSTGRES_USER;" $POSTGRES_DB
14-
11+
psql -U $POSTGRES_USER -c "GRANT USAGE ON SCHEMA cron TO $POSTGRES_USER;" $POSTGRES_DB

0 commit comments

Comments
 (0)