chore: removed Docker
This commit is contained in:
parent
53c6d33c2f
commit
a2f0eb323a
32
Dockerfile
32
Dockerfile
@ -1,32 +0,0 @@
|
||||
FROM gcc:11.5.0-bullseye
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
make \
|
||||
python3 python3-venv python3-pip \
|
||||
swig \
|
||||
libpcsclite-dev pcscd \
|
||||
pkg-config \
|
||||
libffi-dev \
|
||||
xterm \
|
||||
autoconf automake libtool m4
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN git clone --depth 1 --recursive \
|
||||
https://github.com/Coldcard/firmware.git
|
||||
|
||||
WORKDIR /build/firmware/unix
|
||||
|
||||
# Build mpy-cross
|
||||
RUN make -C ../external/micropython/mpy-cross
|
||||
|
||||
# Build simulator & tools
|
||||
RUN make setup
|
||||
RUN make ngu-setup
|
||||
RUN make
|
||||
|
||||
# remove unnecessary git files
|
||||
RUN find /build/firmware -name ".git" -type d -prune -exec rm -rf '{}' +
|
||||
21
README.md
21
README.md
@ -91,25 +91,6 @@ so at the top level, do this command:
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### Using Docker to build simulator
|
||||
Install [Docker Desktop or Docker Engine](https://docs.docker.com/desktop/) (don't forget to add your user to the docker group `sudo usermod -aG docker $USER` than logout and login again)
|
||||
|
||||
```
|
||||
# Build simulator
|
||||
docker build -t coldcard-simulator .
|
||||
docker create --name cc coldcard-simulator
|
||||
docker cp cc:/build/firmware ./firmware
|
||||
docker rm cc
|
||||
|
||||
# Install specific libffi7 (as new Ubuntu versions ship with libffi8 only)
|
||||
wget http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi7_3.3-4_amd64.deb
|
||||
sudo dpkg -i libffi7_3.3-4_amd64.deb
|
||||
|
||||
# Run simulator (remember to follow the OS specific instructions detailed below to install python and its dependencies)
|
||||
cd firmware/unix
|
||||
./simulator.py
|
||||
```
|
||||
|
||||
### macOS
|
||||
|
||||
[Python 3.5 or higher](https://www.python.org) and [Homebrew](https://brew.sh) is required.
|
||||
@ -200,7 +181,7 @@ apt install build-essential git python3 python3-pip libudev-dev gcc-arm-none-eab
|
||||
# Get sources, this takes a long time (because of external libraries), then open
|
||||
|
||||
# Recommended (fast, minimal download; sufficient for building and running the simulator):
|
||||
git clone --depth 1 --recursive https://github.com/Coldcard/firmware.git
|
||||
git clone --depth 1 --shallow-submodules --recursive https://github.com/Coldcard/firmware.git
|
||||
|
||||
# Full clone (developers only; required for history, bisecting, or contributing):
|
||||
git clone --recursive https://github.com/Coldcard/firmware.git
|
||||
|
||||
Loading…
Reference in New Issue
Block a user