Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dockerfile for prepopulated postgres container image for chapter 3 #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Chapter 3: Time Series Analysis/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM postgres:15.5-alpine

ENV POSTGRES_PASSWORD postgres

COPY us_retail_sales.csv /docker-entrypoint-initdb.d/
COPY create_retail_sales_table.sql /docker-entrypoint-initdb.d/
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ sales_month date
-- populate the table with data from the csv file. Download the file locally before completing this step
COPY retail_sales
FROM '/localpath/us_retail_sales.csv' -- change to the location you saved the csv file
-- FROM '/docker-entrypoint-initdb.d/us_retail_sales.csv' -- for docker comment out the line above and uncomment this one
DELIMITER ','
CSV HEADER
;