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

Implement topo30 grid as docker data image

parent 0e0e7f24
Pipeline #21096 failed with stages
in 2 minutes and 23 seconds
...@@ -17,16 +17,15 @@ gitlab_deploy: ...@@ -17,16 +17,15 @@ gitlab_deploy:
stage: deploy-image stage: deploy-image
tags: tags:
- group - group
when: manual
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- cd "${CI_PROJECT_DIR}" - cd "${CI_PROJECT_DIR}"
- > - >
if [ -z "${CI_COMMIT_TAG}" ]; then if [ -z "${CI_COMMIT_TAG}" ]; then
TAG="latest" TAG="topo30-latest"
else else
TAG="${CI_COMMIT_TAG}" TAG="topo30-${CI_COMMIT_TAG}"
fi fi
- docker build --tag "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}" . - docker build --tag "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}" .
- docker push "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}" - docker push "${CI_REGISTRY_IMAGE}/${CI_PROJECT_NAME}:${TAG}"
...@@ -13,16 +13,10 @@ COPY Makefile /root/ ...@@ -13,16 +13,10 @@ COPY Makefile /root/
WORKDIR /root WORKDIR /root
RUN wget "ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30" -O topo30 && \ RUN wget "ftp://topex.ucsd.edu/pub/srtm30_plus/topo30/topo30" -O /data/topo30 && \
A=$(md5sum topo30 | cut -d " " -f 1) && \ A=$(md5sum topo30 | cut -d " " -f 1) && \
test "$A" = "3f9d746674747bf2c01d8b05b7cccb42" && \ test "$A" = "3f9d746674747bf2c01d8b05b7cccb42" && \
make && \ make && \
./srtmRead -range 0 360 -90 90 -resample 2 -fmt DSBB && \ cp ./srtmRead /usr/bin
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
VOLUME [ "/data" ] 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