Skip to content
Merged
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: 1 addition & 5 deletions R/flow.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ if(FALSE) {
original_wd <- getwd()
if(!grepl("api$", getwd()))
setwd("api")
source("config/globals.R")
source("utils/helpers.R")
source("utils/symbolize_raster_data.R")
source("utils/save_json_palette.R")
source("utils/range_rescale.R")
# source() commands removed - outdated paths from old repo
setwd(original_wd)

# Set example arguments values as R objects
Expand Down
6 changes: 6 additions & 0 deletions data_pipeline/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dataenv/

src/__pycache__
__pycache__/

.vscode/
33 changes: 33 additions & 0 deletions data_pipeline/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM python:3.11-slim

# Install system dependencies for web scraping and Chromium
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
unzip \
curl \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the pipeline code
COPY . .

# Set environment variables for headless Chromium
ENV CHROMEDRIVER_PATH=/usr/bin/chromedriver
ENV HEADLESS=true

# Make the pipeline scripts executable
RUN chmod +x run_pipeline.sh run_container.sh

# Create necessary directories
RUN mkdir -p data/scraped_data data/processed_data

# Default command - use container-friendly runner
CMD ["./run_container.sh"]
Loading