Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:trusty

SHELL ["/bin/bash", "-c"]
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /keyplus

# Install setup script dependencies
RUN apt-get update && apt-get install -y wget git unzip python3 python3-pip
RUN pip3 install --user -U setuptools
RUN ln -s /usr/bin/python3 /usr/bin/python
# Add files that the setup script expects without invalidating the entire cache
# Trick setup script into not installing submodules yet
RUN git init .
ADD env/ubuntu-14.04-setup.sh /keyplus/env/ubuntu-14.04-setup.sh
ADD host-software/keyplus/version.py /keyplus/host-software/keyplus/version.py
# Install keyplus environment
RUN cd /keyplus/env && bash ubuntu-14.04-setup.sh
RUN echo "source /keyplus/env/enter_env.sh" >> ~/.bashrc
# Remove dummy git repo
RUN rm -rf .git

ADD . /keyplus
RUN git submodule update --init --recursive
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ In the drop down box at the top of the window, select "Layout". Click the "Brows

TODO

### Docker
Clone this repository and run
```
docker build -t keyplus .
docker run -it keyplus bash
```

## Building

Currently building of the firmware has been tested on Linux.
Expand Down