Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Created June 3, 2019 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoku0825/4a32faada7cedfa914c85b277c3f6c2b to your computer and use it in GitHub Desktop.
Save yoku0825/4a32faada7cedfa914c85b277c3f6c2b to your computer and use it in GitHub Desktop.
[MySQL Ripple](https://github.com/google/mysql-ripple) のDockerfile
FROM ubuntu
WORKDIR /root
RUN apt update -y && apt clean
RUN apt install -y git curl sudo pkg-config zip g++ zlib1g-dev unzip python \
libssl-dev default-jdk-headless libmariadbclient-dev && \
apt clean -y
RUN echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
RUN curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
RUN apt update -y
RUN apt install -y bazel && apt clean -y
RUN git clone https://github.com/google/mysql-ripple.git
WORKDIR /root/mysql-ripple
RUN bazel build :all && bazel test :all && bazel shutdown
ENTRYPOINT ["/root/mysql-ripple/bazel-bin/rippled"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment