Skip to content

Commit

Permalink
Default to x86_64 for mongotools
Browse files Browse the repository at this point in the history
A recent change made to support arm64 has broken mongodb
backups for users on amd64 architecture.

This is because mongotools has no file named 
[...]-ubuntu2004-amd64-100.6.1.deb.
This file is actually called 
[...]-ubuntu2004-x86_64-100.6.1.deb.

This change will make x86_64 the default architecture, 
and will only switch to arm64 (which does exist) if 
umode -m returns arm64 or aarch64.
  • Loading branch information
lemonsaurus authored Mar 2, 2023
1 parent 37768f1 commit cfcc111
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ ENV PATH="${PATH}:/root/.poetry/bin"

# Install mongotools, used for getting mongo backups
RUN <<-EOF
architecture=""
architecture="x86_64"
case $(uname -m) in
x86_64) architecture="amd64" ;;
x86_64) architecture="amd64" ;;
arm64) architecture="arm64" ;;
aarch64) architecture="arm64" ;;
esac
Expand Down

0 comments on commit cfcc111

Please sign in to comment.