Skip to content

Instantly share code, notes, and snippets.

@srl295
Created August 23, 2022 16:53
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 srl295/08ecb5e61ecc3351bd43296c501e9ad0 to your computer and use it in GitHub Desktop.
Save srl295/08ecb5e61ecc3351bd43296c501e9ad0 to your computer and use it in GitHub Desktop.
Build keyman core on linux via docker
FROM --platform=amd64 ubuntu:latest
USER root
ENV HOME /home/build
ENV DEBIAN_FRONTEND noninteractive
RUN useradd -c "Build user" -d $HOME -m build
RUN apt-get -q -y update && apt-get -q -y upgrade
RUN apt-get -q -y install devscripts equivs
# TODO: assume that linux/debian/control was copied into the same directory
COPY control /tmp/control
RUN (yes | mk-build-deps --install /tmp/control) || true
RUN apt-get -q -y install meson
RUN apt-get -q -y install python3 python3-setuptools
VOLUME /home/build
WORKDIR /home/build
USER build
# To use:
# $ docker build -t keyman-linux-build .
# $ cd keyman/core
# $ mkdir -p build/linux
# $ docker run -it --rm -v $(pwd)/..:/home/build -v $(pwd)/build/linux:/home/build/core/build keyman-linux-builder:latest bash -c 'cd core; bash build.sh
@srl295
Copy link
Author

srl295 commented Aug 26, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment