Skip to content

Instantly share code, notes, and snippets.

@ironhouzi
Created October 10, 2018 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ironhouzi/56ec93c35147c440cf4fb9c08f92449a to your computer and use it in GitHub Desktop.
Save ironhouzi/56ec93c35147c440cf4fb9c08f92449a to your computer and use it in GitHub Desktop.
FROM alpine:3.8
ARG SEN2COR_VERSION_URL=2.5.5
ARG SEN2COR_VERSION_FILENAME=02.05.05
# sen2cor install relies on file command
RUN apk add --no-cache file \
&& wget http://step.esa.int/thirdparties/sen2cor/${SEN2COR_VERSION_URL}/Sen2Cor-${SEN2COR_VERSION_FILENAME}-Linux64.run \
&& chmod +x Sen2Cor-${SEN2COR_VERSION_FILENAME}-Linux64.run \
&& ./Sen2Cor-${SEN2COR_VERSION_FILENAME}-Linux64.run \
&& rm Sen2Cor-${SEN2COR_VERSION_FILENAME}-Linux64.run \
&& apk del file \
&& ln -s /Sen2Cor-${SEN2COR_VERSION_FILENAME}-Linux64/bin/L2A_Process /usr/bin/L2A_Process
WORKDIR /workdir
ENTRYPOINT ["L2A_Process"]
@ironhouzi
Copy link
Author

ironhouzi commented Oct 10, 2018

podman error debug:

INFO[0000] running as rootless
DEBU[0000] Not configuring container store
INFO[0000] Found CNI network podman (type=bridge) at /etc/cni/net.d/87-podman-bridge.conflist
DEBU[0000] Initializing boltdb state at /home/user/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Set libpod namespace to ""
ERRO[0000] error creating libpod runtime: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment