database-migrator | export grafana.db to MySQL-compatible SQL file | SQL Database library
kandi X-RAY | database-migrator Summary
kandi X-RAY | database-migrator Summary
Code to export grafana.db (sqlite) to MySQL-compatible SQL file, to assist in migration of Grafana data to MySQL-compatible DB.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of database-migrator
database-migrator Key Features
database-migrator Examples and Code Snippets
Community Discussions
Trending Discussions on database-migrator
QUESTION
I am attempting to create a container with my Go binary in for use as a database migrator. If I run the binary it works perfectly, however, I am struggling to put it into a container and run it in my docker-compose stack.
Below is my Dockerfile.
...ANSWER
Answered 2019-Apr-21 at 21:34Check if this is similar to containers/buildah
issue 475 :
I think it is because the system does not know how to execute the file.
FYI: What's the appropriate Go shebang line?Also be aware of the difference between the shell form and exec form of CMD/ENTRYPOINT in Dockerfile.
just adding
#!/bin/bash
to my entry point file fixed the issue.
Or:
Turns out the
#!/bin/bash
was in my entry point file, but since I did a copy and paste into that file, the first line was a newline, not the#!/bin/bash
, effectively ignoring it.
If this helps anyone as well: Deleted the empty line and all worked fine.
Or:
In case anyone finds this useful, you can get this issue if your shell script uses CRLF for line endings and/or UTF-8 with BOM (e.g. if you created a shell script file in Visual Studio).
Changing to LF only and straight UTF-8 fixed it for me.
Or (probably not your case, but to be complete):
For anyone who got a
standard_init_linux.go:190: exec user process caused "no such file or directory"
error after applying this fix, you're probably on an alpine base image which does not come with bash.Replacing
#!/bin/bash
with#!/bin/sh
will do the trick!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install database-migrator
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page