mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-07 11:19:28 +00:00
Avoid installing recommended packages.
This commit is contained in:
parent
ea269d9691
commit
b9332e6a3a
3 changed files with 33 additions and 27 deletions
|
@ -5,7 +5,8 @@ ENV LANG=C.UTF-8 \
|
||||||
DATADIRS="/coindata"
|
DATADIRS="/coindata"
|
||||||
|
|
||||||
RUN apt-get update; \
|
RUN apt-get update; \
|
||||||
apt-get install -y python3-pip pkg-config gosu tzdata;
|
apt-get install -y --no-install-recommends \
|
||||||
|
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata;
|
||||||
|
|
||||||
# Install requirements first so as to skip in subsequent rebuilds
|
# Install requirements first so as to skip in subsequent rebuilds
|
||||||
COPY ./requirements.txt requirements.txt
|
COPY ./requirements.txt requirements.txt
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
|
|
||||||
## Source code
|
|
||||||
|
|
||||||
git clone https://github.com/basicswap/basicswap.git
|
|
||||||
|
|
||||||
|
|
||||||
## Run Using Docker
|
|
||||||
|
|
||||||
|
|
||||||
Install dependencies:
|
|
||||||
|
|
||||||
apt-get install curl jq git
|
|
||||||
|
|
||||||
|
## Run using Docker
|
||||||
|
|
||||||
Docker must be installed and started:
|
Docker must be installed and started:
|
||||||
|
|
||||||
|
@ -30,27 +20,40 @@ Without this step you will need to preface each `docker-compose` command with `s
|
||||||
https://docs.docker.com/engine/install/linux-postinstall/
|
https://docs.docker.com/engine/install/linux-postinstall/
|
||||||
|
|
||||||
|
|
||||||
#### Copy the default environment file:
|
#### Install dependencies
|
||||||
|
|
||||||
|
apt-get install --no-install-recommends git curl jq
|
||||||
|
|
||||||
|
|
||||||
|
#### Get the source code
|
||||||
|
|
||||||
|
git clone https://github.com/basicswap/basicswap.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### Copy the default environment file
|
||||||
|
|
||||||
cd basicswap/docker
|
cd basicswap/docker
|
||||||
cp example.env .env
|
cp example.env .env
|
||||||
|
|
||||||
|
|
||||||
#### (Optional) Set custom coin data path:
|
#### (Optional) Set custom coin data path
|
||||||
|
|
||||||
Coin-related files, such as blockchain and wallet files, are stored in `/var/data/coinswaps` by default. To use a different location, simply modify the target path in your `.env` file found within the `/docker` sub-folder.
|
Coin-related files, such as blockchain and wallet files, are stored in `/var/data/coinswaps` by default. To use a different location, simply modify `COINDATA_PATH` in your `.env` file found within the `/docker` sub-folder.
|
||||||
|
|
||||||
cd basicswap/docker
|
cd basicswap/docker
|
||||||
nano .env
|
nano .env
|
||||||
|
|
||||||
#### Create the images:
|
|
||||||
|
#### Create the images
|
||||||
|
|
||||||
cd basicswap/docker
|
cd basicswap/docker
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
||||||
Depending on your environment, the `docker-compose` command may not work. If that's the case, type `docker compose` instead, without the dash.
|
Depending on your environment, the `docker-compose` command may not work. If that's the case, type `docker compose` instead, without the dash.
|
||||||
|
|
||||||
#### Prepare the datadir:
|
|
||||||
|
#### Prepare the datadir
|
||||||
|
|
||||||
Set xmrrestoreheight to the current xmr chain height.
|
Set xmrrestoreheight to the current xmr chain height.
|
||||||
|
|
||||||
|
@ -79,13 +82,13 @@ To instead use Monero public nodes and not run a local Monero daemon<br>(it can
|
||||||
**Mnemonics should be stored encrypted and/or air-gapped.**
|
**Mnemonics should be stored encrypted and/or air-gapped.**
|
||||||
And the output of `echo $CURRENT_XMR_HEIGHT` for use if you need to later restore your wallet.
|
And the output of `echo $CURRENT_XMR_HEIGHT` for use if you need to later restore your wallet.
|
||||||
|
|
||||||
#### Set the timezone (optional):
|
#### Set the timezone (optional)
|
||||||
|
|
||||||
Edit the `.env` file in the docker directory, set TZ to your local timezone.
|
Edit the `.env` file in the docker directory, set TZ to your local timezone.
|
||||||
Valid options can be listed with: `timedatectl list-timezones`
|
Valid options can be listed with: `timedatectl list-timezones`
|
||||||
|
|
||||||
|
|
||||||
#### Start the container:
|
#### Start the container
|
||||||
|
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
||||||
|
@ -120,7 +123,7 @@ Windows key + R -> "wsl" -> Enter
|
||||||
Install Git:
|
Install Git:
|
||||||
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install git
|
sudo apt install --no-install-recommends git
|
||||||
|
|
||||||
|
|
||||||
Download the BasicSwap code:
|
Download the BasicSwap code:
|
||||||
|
@ -135,14 +138,15 @@ You can access it from the windows side at: `\\wsl$\Ubuntu`
|
||||||
Continue from the [Run Using Docker](#run-using-docker) section.
|
Continue from the [Run Using Docker](#run-using-docker) section.
|
||||||
|
|
||||||
|
|
||||||
## Run Without Docker:
|
## Run Without Docker
|
||||||
|
|
||||||
|
|
||||||
### Ubuntu Setup:
|
### Ubuntu Setup
|
||||||
|
|
||||||
apt-get install -y git python3-venv python3-pip pkg-config curl jq
|
apt-get install --no-install-recommends git python3-venv libpython3-dev gnupg pkg-config gcc libc-dev curl jq
|
||||||
|
|
||||||
### OSX Setup:
|
|
||||||
|
### OSX Setup
|
||||||
|
|
||||||
Install Homebrew (See https://brew.sh/):
|
Install Homebrew (See https://brew.sh/):
|
||||||
|
|
||||||
|
@ -150,12 +154,12 @@ Install Homebrew (See https://brew.sh/):
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
|
|
||||||
brew install python git pkg-config curl jq
|
brew install python git gnupg pkg-config jq
|
||||||
|
|
||||||
Close the terminal and open a new one to update the python symlinks.
|
Close the terminal and open a new one to update the python symlinks.
|
||||||
|
|
||||||
|
|
||||||
### Basicswap:
|
### Basicswap
|
||||||
|
|
||||||
export SWAP_DATADIR=$HOME/coinswaps
|
export SWAP_DATADIR=$HOME/coinswaps
|
||||||
python3 -m venv "$SWAP_DATADIR/venv"
|
python3 -m venv "$SWAP_DATADIR/venv"
|
||||||
|
|
|
@ -5,7 +5,8 @@ ENV LANG=C.UTF-8 \
|
||||||
DATADIR=/data
|
DATADIR=/data
|
||||||
|
|
||||||
RUN apt-get update; \
|
RUN apt-get update; \
|
||||||
apt-get install -y python3-pip unzip pkg-config gosu tzdata;
|
apt-get install -y --no-install-recommends \
|
||||||
|
python3-pip libpython3-dev gnupg pkg-config gcc libc-dev gosu tzdata;
|
||||||
|
|
||||||
ARG BASICSWAP_URL=https://github.com/basicswap/basicswap/archive/master.zip
|
ARG BASICSWAP_URL=https://github.com/basicswap/basicswap/archive/master.zip
|
||||||
ARG BASICSWAP_DIR=basicswap-master
|
ARG BASICSWAP_DIR=basicswap-master
|
||||||
|
|
Loading…
Reference in a new issue