Skip to content

Commit 3948a19

Browse files
vulnerablility review and addess if possible; build-push-geoproc for cwbi-dev branch
1 parent 705bd8e commit 3948a19

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

.github/workflows/cwbi-dev-build-push-geoproc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
ECR_REPOSITORY: cumulus-geoprocess
4545
IMAGE_TAG: latest
4646
run: |
47-
docker build --build-arg GEOPROC_PACKAGE=cwbi-dev:geoproc async_geoprocess \
47+
docker build --build-arg GEOPROC_PACKAGE=main:geoproc async_geoprocess \
4848
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
4949
--tag $ECR_REGISTRY/$ECR_REPOSITORY:dev
5050
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

async_geoprocess/Dockerfile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@ ENV GEOPROC_VENV=${GEOPROC}/venv
2020

2121
ENV PATH=${GEOPROC_VENV}/bin:$PATH
2222

23-
# RUN apt-get update -y && apt-get install -y \
24-
# git \
25-
# python3-pip \
26-
# python3-venv \
27-
# python3-dev \
28-
# postgresql-server-dev-all \
29-
# libhdf5-dev \
30-
# zlib1g-dev \
31-
# libnetcdf-dev \
32-
# && rm -rf /var/lib/apt/lists/*
33-
34-
35-
RUN apt-get -y update \
23+
# solving possible issue of ATP behind a proxy
24+
RUN cat <<EOF > /etc/apt/apt.conf.d/99proxy
25+
Acquire::http::Pipeline-Depth 0;
26+
Acquire::http::No-Cache true;
27+
Acquire::BrokenProxy true;
28+
EOF
29+
30+
RUN apt-get update \
31+
&& apt-get -y upgrade \
3632
&& apt-get install python3.12-venv -y \
3733
&& apt-get remove python3-pil -y \
3834
&& apt clean

async_geoprocess_init/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~
32
# builder
43
# *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

async_geoprocess_init/products.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
CUMULUS_STATIC_HOST = os.getenv("CUMULUS_STATIC_HOST")
1515
CUMULUS_ACQUIRABLE_FILES = os.getenv("CUMULUS_ACQUIRABLE_FILES")
16+
CUMULUS_ACQUIRABLES = os.getenv("CUMULUS_ACQUIRABLES")
1617
CUMULUS_APPLICATION_KEY = os.getenv("CUMULUS_APPLICATION_KEY")
1718

1819
S3_ACQUIRABLE_PREFIX = os.getenv("S3_ACQUIRABLE_PREFIX")
@@ -27,7 +28,7 @@
2728

2829

2930
def get_acquirables():
30-
url = f"{CUMULUS_STATIC_HOST}/api/acquirables"
31+
url = f"{CUMULUS_STATIC_HOST}{CUMULUS_ACQUIRABLES}"
3132
max_retries = 5
3233
wait_time = 5
3334
for attempt in range(max_retries):

docker-compose.geoinit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: async_geoprocess_init
99
args:
1010
TEST_DATA_TAG: '2025-01-31'
11-
entrypoint: sleep infinity # override the Dockerfile entrypoint
11+
# entrypoint: sleep infinity # override the Dockerfile entrypoint
1212
environment:
1313
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
1414
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
@@ -21,6 +21,6 @@ services:
2121
- CUMULUS_ACQUIRABLES=/api/acquirables
2222
- CUMULUS_APPLICATION_KEY=appkey
2323
- GEOPROC_TEST_DATA=/opt/geoproc/fixtures
24-
depends_on:
25-
api:
26-
condition: service_started
24+
# depends_on:
25+
# api:
26+
# condition: service_started

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ services:
4848
context: async_geoprocess
4949
args:
5050
- GDAL_TAG=ubuntu-full-3.9.1
51-
- GEOPROC_PACKAGE=refactor/dockerfile-vulnerabilities:geoproc
51+
- GEOPROC_PACKAGE=develop:geoproc
5252
# entrypoint: sleep infinity # override the Dockerfile entrypoint
5353
environment:
5454
- AWS_SQS_ENDPOINT=elasticmq:9324

0 commit comments

Comments
 (0)