Commit 439d57bd authored by R.K.Garcia's avatar R.K.Garcia
Browse files

Fix image size and wrapper

parent c328b4bc
Pipeline #36563 passed with stage
in 7 minutes and 14 seconds
...@@ -15,7 +15,9 @@ FROM centos:7 as shell ...@@ -15,7 +15,9 @@ FROM centos:7 as shell
RUN yum -y install libXext libXt RUN yum -y install libXext libXt
ENV RU_HOME=/opt/RU ENV RU_HOME=/opt/RU
ENV MCRROOT=/opt/mcr/v84 ENV MCRROOT=/opt/mcr/v84
COPY --from=matlab /opt /opt COPY --from=matlab /opt/mcr /opt/mcr
COPY --from=matlab /opt/RU /opt/RU
RUN ln -s /opt/RU/cris-l1b-ru /usr/local/bin/ RUN ln -s /opt/RU/cris-l1b-ru /usr/local/bin/
ENTRYPOINT ["/opt/RU/cris-l1b-ru"] # default command, so we get help
CMD ["/opt/RU/cris-l1b-ru"]
...@@ -14,14 +14,15 @@ abspath() { ...@@ -14,14 +14,15 @@ abspath() {
test -d "$RU_HOME" || echo >&2 "${Oops:?RU_HOME is not set}" test -d "$RU_HOME" || echo >&2 "${Oops:?RU_HOME is not set}"
test -d "$MCRROOT" || echo >&2 "${Oops:?MCRROOT must point to Matlab runtime}" test -d "$MCRROOT" || echo >&2 "${Oops:?MCRROOT must point to Matlab runtime}"
SAT="$1" SAT="$1"
INPUT_FILE="$(abspath "$2")" #INPUT_FILE="$(abspath "$2")"
INPUT_FILE="$2"
OUTPUT_FILE="$3" OUTPUT_FILE="$3"
test -n "$SAT" || usagexit test -n "$SAT" || usagexit
test -f "$INPUT_FILE" || usagexit test -f "$INPUT_FILE" || echo >&2 "${Oops:?${INPUT_FILE} is not a file"
test -n "$OUTPUT_FILE" || usagexit test -n "$OUTPUT_FILE" || echo >&2 "${Oops:?please specify an output filename}"
export MATLABPATH="$RU_HOME" export MATLABPATH="$RU_HOME"
# always limit the blast radius of LD_LIBRARY_PATH to as small a space as possible # always limit the blast radius of LD_LIBRARY_PATH to as small a space as possible
export LD_LIBRARY_PATH="$MCRROOT/runtime/glnxa64:$MCRROOT/bin/glnxa64:$MCRROOT/sys/os/glnxa64" export LD_LIBRARY_PATH="$MCRROOT/runtime/glnxa64:$MCRROOT/bin/glnxa64:$MCRROOT/sys/os/glnxa64"
exec "$RU_HOME/run_cris_gran_RU_ncparam_wrapper.sh" "$MCRROOT" "$SAT" "$INPUT_FILE" "1" "$OUTPUT_FILE" exec "$RU_HOME/run_cris_gran_RU_ncparam.sh" "$MCRROOT" "$SAT" "$INPUT_FILE" "1" "$OUTPUT_FILE"
Supports Markdown
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