-
Notifications
You must be signed in to change notification settings - Fork 436
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (14 loc) · 905 Bytes
/
Dockerfile
File metadata and controls
16 lines (14 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM mysql:8.4@sha256:5367102acfefeaa47eb0eb57c8d4f8b96c8c14004859131eac9bbfaa62f81e34
# TODO(roger2hk): Uncomment the below OS-level packages patch command as this is a temporary workaround to bypass the mysql8 gpg key rotation issue.
# # Patch the OS-level packages and remove unneeded dependencies.
# ENV DEBIAN_FRONTEND=noninteractive
# RUN apt-get update \
# && apt-get install -y procps \
# && apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade \
# && apt-get -y autoremove \
# && rm -rf /var/lib/apt/lists/*
# expects the build context to be: $GOPATH/src/github.com/google/trillian
COPY examples/deployment/docker/db_server/mysql.cnf /etc/mysql/conf.d/trillian.cnf
COPY storage/mysql/schema/storage.sql /docker-entrypoint-initdb.d/storage.sql
RUN chmod -R 775 /docker-entrypoint-initdb.d && \
chmod 644 /etc/mysql/conf.d/trillian.cnf