diff options
author | Yibo Cai <yibo.cai@arm.com> | 2018-01-18 11:24:19 +0800 |
---|---|---|
committer | Yibo Cai <yibo.cai@arm.com> | 2018-01-19 11:36:16 +0800 |
commit | 8e4c3c0e8e6c82b84501ef577e4fd069e9c05b02 (patch) | |
tree | 72ba1971fc85a95f3a0980fc7c02e10dc67b156e /compass-db/Dockerfile-arm64 | |
parent | 8ec10f60d0fc9bfc43fcea57d6c809646bd4a48a (diff) |
compass-db: support arm64
Differences from x86_64:
- Dockerfile: don't quit if apt-get update failed
- Dockerfile: add volume /var/lib/msql
- entrypoint.sh: create user and db only if not exists
Change-Id: Ic9aa757b1943c8340eb5b2429683bb12e034a29b
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
Diffstat (limited to 'compass-db/Dockerfile-arm64')
-rw-r--r-- | compass-db/Dockerfile-arm64 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compass-db/Dockerfile-arm64 b/compass-db/Dockerfile-arm64 new file mode 100644 index 0000000..7b5755c --- /dev/null +++ b/compass-db/Dockerfile-arm64 @@ -0,0 +1,15 @@ +FROM ubuntu:trusty + +EXPOSE 3306 +ARG BRANCH=master + +RUN (apt-get update || true) && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server && \ + rm -rf /var/lib/apt/lists/* + +COPY entrypoint-arm64.sh /sbin/entrypoint.sh +RUN chmod 755 /sbin/entrypoint.sh + +VOLUME ["/var/lib/mysql"] + +CMD ["/sbin/entrypoint.sh"] |