1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-12 11:12:16 +00:00
ton/docker
neodiX42 446b9f536f
Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability. (#580)
* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* build storage-daemon and storage-daemon-cli binaries

* force GSL 2.7.1 version

* force GSL 2.7.1 version

* handle missing BLAS library

* handle missing BLAS library, force GSL 2.7.1 version, build storage-daemon and storage-daemon-cli binaries

* Revert "handle missing BLAS library"

This reverts commit 67ebd4abfa.

* remove GSL

* remove GSL only for 18.04

* remove GSL only for 18.04

* link blas library; leave gsl

* merge upstream

* make more portable binaries by excluding AVX512 CPU flag

* make rocksdb to produce portable binaries

* make rocksdb to produce portable binaries

* make rocksdb to produce portable binaries

* show OS CPU flags & force AVX2

* DPORTABLE=1 and -DTON_ARCH=

* DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2"

* DPORTABLE=1 and -DTON_ARCH= and -DCMAKE_CXX_FLAGS="-mavx2"

* DPORTABLE=1 and -DCMAKE_CXX_FLAGS="-mavx2" only

* Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries portability.

* Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability.

* minor fix
2022-12-30 20:13:10 +03:00
..
control.template Add docker workflow 2021-07-27 13:20:35 +03:00
Dockerfile Ignore usage of AVX512 and force AVX2 CPU instructions for better binaries' portability. (#580) 2022-12-30 20:13:10 +03:00
init.sh Add docker workflow 2021-07-27 13:20:35 +03:00
README.md Add missing libatomic1 into TON docker image (#525) 2022-11-22 14:07:50 +03:00

The Open Network Node

Dockerfile for The Open Network Node

Install

docker pull ghcr.io/ton-blockchain/ton:latest

Create volume

docker volume create ton-db

Run

docker run -d --name ton-node --mount source=ton-db,target=/var/ton-work/db --network host -e "PUBLIC_IP=<YOUR_PUBLIC_IP>" -e "CONSOLE_PORT=<TCP-PORT1>" -e "LITESERVER=true" -e "LITE_PORT=<TCP-PORT2>" -it ghcr.io/ton-blockchain/ton

If you don't need Liteserver, then remove -e "LITESERVER=true".

Use

docker exec -ti <container-id> /bin/bash

./validator-engine-console -k client -p server.pub -a <IP>:<TCP-PORT1>

IP:PORT is shown at start of container.

Lite-client

To use lite-client you need to get liteserver.pub from container.

docker cp <container-id>:/var/ton-work/db/liteserver.pub /your/path

Then you can connect to it, but be sure you use right port, it's different from fullnode console port.

lite-client -a <IP>:<TCP-PORT2> -p liteserver.pub