From c69686d3100f7be1e53f465a85656755ebad4b00 Mon Sep 17 00:00:00 2001 From: "Ruben L. Mendoza" Date: Fri, 4 Oct 2024 20:07:37 -0500 Subject: [PATCH] Update osm-processor docker base image for containers (#344) * Test osm-processor * Update osm-processor base image for replication job and others * Update replication job container --- chartpress.yaml | 2 +- images/full-history/Dockerfile | 2 +- images/planet-dump/Dockerfile | 2 +- images/populate-apidb/Dockerfile | 2 +- images/replication-job/Dockerfile | 16 ++++++++++------ 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/chartpress.yaml b/chartpress.yaml index 388d0d44..dcda4e83 100644 --- a/chartpress.yaml +++ b/chartpress.yaml @@ -4,7 +4,7 @@ charts: repo: git: developmentseed/osm-seed-chart published: https://devseed.com/osm-seed-chart - + images: web: valuesPath: web.image diff --git a/images/full-history/Dockerfile b/images/full-history/Dockerfile index 056f4ba0..3f40d16a 100644 --- a/images/full-history/Dockerfile +++ b/images/full-history/Dockerfile @@ -1,4 +1,4 @@ -FROM developmentseed/osmseed-osm-processor:v3 +FROM developmentseed/osmseed-osm-processor:0.1.0-n795.h1c8d32f VOLUME /mnt/data COPY ./start.sh / diff --git a/images/planet-dump/Dockerfile b/images/planet-dump/Dockerfile index 056f4ba0..3f40d16a 100644 --- a/images/planet-dump/Dockerfile +++ b/images/planet-dump/Dockerfile @@ -1,4 +1,4 @@ -FROM developmentseed/osmseed-osm-processor:v3 +FROM developmentseed/osmseed-osm-processor:0.1.0-n795.h1c8d32f VOLUME /mnt/data COPY ./start.sh / diff --git a/images/populate-apidb/Dockerfile b/images/populate-apidb/Dockerfile index 935e51cc..68f0fd56 100644 --- a/images/populate-apidb/Dockerfile +++ b/images/populate-apidb/Dockerfile @@ -1,4 +1,4 @@ -FROM developmentseed/osmseed-osm-processor:v3 +FROM developmentseed/osmseed-osm-processor:0.1.0-n795.h1c8d32f VOLUME /mnt/data COPY ./start.sh / diff --git a/images/replication-job/Dockerfile b/images/replication-job/Dockerfile index aa7e6fdd..5594a3f7 100644 --- a/images/replication-job/Dockerfile +++ b/images/replication-job/Dockerfile @@ -1,12 +1,16 @@ -FROM developmentseed/osmseed-osm-processor:v3 +FROM developmentseed/osmseed-osm-processor:0.1.0-n795.h1c8d32f -# Install Nginx RUN apt-get update && \ - apt-get install -y nginx && \ + apt-get install -y nginx python3-pip python3-venv && \ rm -rf /var/lib/apt/lists/* - -RUN pip3 install boto3 + +RUN python3 -m venv /opt/venv +ENV PATH="/opt/venv/bin:$PATH" +RUN pip install --no-cache-dir boto3 + COPY ./*.sh / COPY monitoring.py / + WORKDIR /mnt/data -CMD /start.sh + +CMD /start.sh \ No newline at end of file