Docker for librime === ###### tags: `rime-engine` OS: macOS Docker OS: Ubuntu [TOC] ## Custom Steps ### 1. Install Docker https://docs.docker.com/docker-for-mac/install/ ### 2. Install Container Steps: https://ithelp.ithome.com.tw/articles/10190921 Ubuntu Container: https://hub.docker.com/_/ubuntu ### 3. Build librime (Linux) #### Build dependencies * compiler with C++11 support * cmake>=2.8 * libboost>=1.48 * libglog (optional) * libleveldb * libmarisa * libopencc>=1.0.2 * libyaml-cpp>=0.5 * libgtest (optional) #### Runtime dependencies * libboost * libglog (optional) * libleveldb * libmarisa * libopencc * libyaml-cpp #### Build and install librime on Linux ``` make sudo make install ``` ## Dockerfile * Docker command https://docs.docker.com/engine/reference/commandline/docker/ https://medium.com/the-code-review/top-10-docker-commands-you-cant-live-without-54fb6377f481 * Dockerfile https://docs.docker.com/engine/reference/builder/ * ithuan Dockerfile https://github.com/i3thuan5/librime/blob/dockerfile_for_build/Dockerfile ### Build steps #### 1. Build with Dockerfile ```shell= cd librime docker build --tag=librime . ``` #### 2. Run container ```shell= docker run librime ``` #### 3. Docker Container shell ```shell= docker run -it librime /bin/bash ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up