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

Fixes #66 : Clean up docker helper for loading #68

Open
wants to merge 1 commit into
base: main
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
11 changes: 0 additions & 11 deletions Dockerfile

This file was deleted.

25 changes: 25 additions & 0 deletions bin/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1
# Built by script called build-dataloader.sh
# Run with the help of scripts in bin/ such as load-data-container.sh

# Dase image for the Docker image
FROM alpine

# Install the PostgreSQL client
RUN apk add && apk add postgresql-client

# Copy the entry point script to the root directory
COPY bin/docker-entrypoint.sh /entrypoint.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tested that it builds? because this relative reference is not updated.

any changes should come with testing, manual or automated


# Set environment variables
ENV LOUIS_DSN=
ENV LOUIS_SCHEMA=
ENV LOAD_DATA_ONLY=
ENV DISABLE_TRIGGER_ALL=
ENV DROP_SCHEMA=

# Create a volume for data storage
VOLUME /data

# Set the entry point for the container
ENTRYPOINT ["sh", "-c", "/entrypoint.sh"]