Skip to content

Instantly share code, notes, and snippets.

@masnagam
Created July 6, 2020 02:20
Show Gist options
  • Save masnagam/f00b19c3bd495ccefcb5b2eec69a7a13 to your computer and use it in GitHub Desktop.
Save masnagam/f00b19c3bd495ccefcb5b2eec69a7a13 to your computer and use it in GitHub Desktop.
A small script to solve the `std::out_of_range` issue on arm32 hosts
#!/bin/sh
#
# Usage: replace-mirakc-arib your/image:name
#
# Assumed that this script is performed on arm32 hosts in order to solve the `std::out_of_range` issue.
# See https://twitter.com/masnagam/status/1279962595462529025.
cat <<EOF | docker build -t $1 -
FROM masnagam/mirakc:alpine
COPY --from=masnagam/mirakc:master-alpine /usr/local/bin/mirakc-arib /usr/local/bin/
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment