Installation with docker fails - mysql dies
$ docker --version
dockerDocker version 19.03.13, build 4484c46d9d
$ docker-compose --version
docker-compose version 1.27.4, build 40524192
$ uname -a
Linux vm0 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"
I installed docker and docker compose as per the official installation instructions, pulled production
, set the environment variables in docker-compose.yml
, built with docker-compose build
with no issues, but if I run docker-compose up mysql
I get the following:
$ docker-compose up mysql
Starting tripwire_mysql_1 ... done
Attaching to tripwire_mysql_1
mysql_1 | Eve SDE doesn't exist...Redownloading
mysql_1 | 2020-09-24 23:58:47 URL:https://www.fuzzwork.co.uk/dump/mysql-latest.tar.bz2 [65590348/65590348] -> "mysql-latest.tar.bz2" [1]
mysql_1 | Download and import succeeded
mysql_1 | starting mysql...
mysql_1 | mkdir: cannot create directory '': No such file or directory
tripwire_mysql_1 exited with code 1
What is it that I'm doing wrong here?
(I set the priority as "blocker" 'cause it's blocking me from self-hosting, but I have no idea whether that's appropriate).
Comments (6)
-
-
I think
$DATADIR
isn’t being set in the entrypoint script for some reason, causing the issue. -
I am also getting this error and it is most definitely impeding me from hosting a new Tripwire environment on docker. Please assist us with this fix, thank you.
-
Adam, this is the answer we were looking for to resolve the issue. Just wanted to leave that there for you.
https://bitbucket.org/daimian/tripwire/pull-requests/175/fix-_get_config-awk-filter-for-datadir/diff
-
Beast. I’ll check it out when I care about wormholes again.
-
- changed status to resolved
- Log in to comment
“Former user” is me. Didn’t notice you could create issues without signing in and just assumed I was signed in.