Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: Multiarch support #38

Closed
theniwo opened this issue Feb 20, 2021 · 9 comments
Closed

REQUEST: Multiarch support #38

theniwo opened this issue Feb 20, 2021 · 9 comments

Comments

@theniwo
Copy link

theniwo commented Feb 20, 2021

Hi, could there be multiarch support for arm cpus?

@fradelg
Copy link
Owner

fradelg commented Mar 6, 2021

@theniwo
Copy link
Author

theniwo commented Mar 6, 2021

I get
/usr/local/bin/dockerize: line 1: syntax error: unexpected word (expecting ")")
using yobasystems/alpine-mariadb

@fradelg
Copy link
Owner

fradelg commented Mar 6, 2021

It seems like dockerize does not support arm in Alpine:

jwilder/dockerize#154

@theniwo
Copy link
Author

theniwo commented Mar 6, 2021

I can try using
jc21/mariadb-aria:10.4

@fradelg
Copy link
Owner

fradelg commented Mar 7, 2021

The problem is with this docker image for backup, not with the database server.

I have tried to recompile dockerize instead of downloading the official release from the author. Can you try again with the tag buildx:

fradelg/mysql-cron-backup:buildx

@theniwo
Copy link
Author

theniwo commented Mar 7, 2021

Ok, it starts and does a backup, but

docker container exec nginx-proxy-manager_db_backup_1 /restore.sh /backup/latest.npm.sql.gz
=> Restore database from /backup/latest.npm.sql.gz
ERROR 1046 (3D000) at line 22: No database selected
=> Restore failed

@fradelg
Copy link
Owner

fradelg commented Mar 7, 2021

Some users complained about including the USE statement in the backup so you have to create and use the database before restoring.

I have added a new argument to the mysql restore command to use the database in MYSQL_DATABASE but the database still have to be created before running the restore.sh script

You can use use the MariaDB container to restore a previous backup as the README explains:

- ${VOLUME_PATH}/backup/latest.${DATABASE_NAME}.sql.gz:/docker-entrypoint-initdb.d/database.sql.gz

@fradelg
Copy link
Owner

fradelg commented Mar 13, 2021

Hi, can I close the issue and release a new version?

@theniwo
Copy link
Author

theniwo commented Mar 13, 2021

Hi,
Yes, it works now. Thank you

@fradelg fradelg closed this as completed Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants