Commit f816f1e3 authored by Matthias Rüster's avatar Matthias Rüster
Browse files

Implement topo30 grid as docker data image

parent 0e0e7f24
Pipeline #21098 passed with stages
in 4 minutes and 50 seconds
......@@ -17,16 +17,15 @@ gitlab_deploy:
stage: deploy-image
tags:
- group
when: manual
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- cd "${CI_PROJECT_DIR}"
- >
if [ -z "${CI_COMMIT_TAG}" ]; then
TAG="latest"
TAG="topo30-latest"
else
TAG="${CI_COMMIT_TAG}"
TAG="topo30-${CI_COMMIT_TAG}"
fi
- docker build --tag "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}" .
- docker push "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}"
......@@ -13,16 +13,10 @@ COPY Makefile /root/
WORKDIR /root
RUN wget "ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30" -O topo30 && \
A=$(md5sum topo30 | cut -d " " -f 1) && \
RUN wget "ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30" -O /data/topo30 && \
A=$(md5sum /data/topo30 | cut -d " " -f 1) && \
test "$A" = "3f9d746674747bf2c01d8b05b7cccb42" && \
make && \
./srtmRead -range 0 360 -90 90 -resample 2 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_60.grd && \
./srtmRead -range 0 360 -90 90 -resample 4 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_120.grd && \
./srtmRead -range 0 360 -90 90 -resample 8 -fmt DSBB && \
mv srtmRead.out.grd /data/grid_240.grd && \
rm topo30
cp ./srtmRead /usr/bin
VOLUME [ "/data" ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment