reactioncommerce / mongo-s3-backup

A Docker container to backup a MongoDB deployment to S3 and list or restore those backups.
5 stars 9 forks source link

Unsatisfiable constraints (python) and AWS CLI v2 #2

Open ghost opened 3 years ago

ghost commented 3 years ago

This repo uses alpine:latest and, as a result, those without a cached image will grab the latest version fo Alpine Linux. However, upon running the included Dockerfile fails on the latest version of Alpine with:

ERROR: unsatisfiable constraints:
  python (missing):
    required by: world[python]

Replacing python with python3 and symlinking the binary may be a possible. But it seems this becomes a slippery slope as one soon learns AWS CLI no longer uses py-pip for installation: neither CLI v1 or the newer v2.

Attempting to install AWS CLI v2 using the new documented method (after adding curl and sudo dependencies) leads to an unintelligible error ostensibly as a result of a missing glibc installation:

./aws/install: line 78: /aws/dist/aws2: not found

A related issue was opened against the CLI in which a contributor suggests Alpine isn't supported nor is support of alpine likely. The contributor does suggest using Ubuntu instead of Alpine but this Dockerfile was written to use APK and a micro-container approach and so it's not clear what the best course of action is for backing up Reaction Commerce's MongoDB.