Skip to content

Commit bf55daf

Browse files
authored
Merge pull request #52 from udzuki/feat-51-copy-setup-script
feat: Superset DBの初期化スクリプトをコンテナイメージに組み込み
2 parents ced31a2 + f7cf839 commit bf55daf

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ services:
126126
- LRW_DB_PASSWORD=caliper
127127
- LRW_COLLECTION=mongoEvent
128128
volumes:
129-
- ./superset-db/init:/docker-entrypoint-initdb.d
130129
- superset-db:/var/lib/postgresql/data
131130
jupyterhub:
132131
build: jupyterhub

superset-db/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM postgres:12-bullseye
22

3-
LABEL version="3.0.0"
3+
LABEL version="3.1.0"
44

55
# Install dependencies
6-
RUN apt update && \
7-
apt install -y \
6+
RUN apt-get update && \
7+
apt-get install -y \
88
git \
99
postgresql-12-python3-multicorn \
1010
python3-setuptools
@@ -14,3 +14,5 @@ WORKDIR /usr/local/src
1414
RUN git clone https://github.com/udzuki/yam_fdw.git && \
1515
cd yam_fdw && \
1616
python3 setup.py install
17+
18+
COPY setup.sh /docker-entrypoint-initdb.d/

0 commit comments

Comments
 (0)