1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Merge pull request #531 from ton-blockchain/master

Merge upstream
This commit is contained in:
EmelyanenkoK 2022-11-25 18:35:23 +03:00 committed by GitHub
commit ff5c6593b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -1,4 +1,4 @@
name: Docker Ubuntu 18.04 image name: Docker Ubuntu 20.04 image
on: on:
workflow_dispatch: workflow_dispatch:
@ -10,7 +10,7 @@ env:
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-18.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3

View file

@ -1,21 +1,22 @@
FROM ubuntu:20.04 as builder FROM ubuntu:20.04 as builder
RUN apt-get update && \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake clang-6.0 openssl libssl-dev zlib1g-dev gperf wget git && \ DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake clang-6.0 openssl libssl-dev zlib1g-dev gperf wget git ninja-build && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
ENV CC clang-6.0 ENV CC clang-6.0
ENV CXX clang++-6.0 ENV CXX clang++-6.0
ENV CCACHE_DISABLE 1
WORKDIR / WORKDIR /
RUN git clone --recursive https://github.com/ton-blockchain/ton RUN git clone --recursive https://github.com/ton-blockchain/ton
WORKDIR /ton WORKDIR /ton
RUN mkdir build && \ RUN mkdir build && \
cd build && \ cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \ cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
make -j 4 ninja tonlibjson fift func validator-engine validator-engine-console generate-random-id dht-server lite-client
FROM ubuntu:20.04 FROM ubuntu:20.04
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y openssl wget&& \ apt-get install -y openssl wget libatomic1 && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/ton-work/db && \ RUN mkdir -p /var/ton-work/db && \
mkdir -p /var/ton-work/db/static mkdir -p /var/ton-work/db/static

View file

@ -2,11 +2,11 @@
Dockerfile for The Open Network Node Dockerfile for The Open Network Node
#### Install #### Install
```docker pull ghcr.io/newton-blockchain/ton``` ```docker pull ghcr.io/ton-blockchain/ton:latest```
#### Create volume #### Create volume
```docker volume create ton-db``` ```docker volume create ton-db```
#### Run #### 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/newton-blockchain/ton``` ```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". If you don't need Liteserver, then remove -e "LITESERVER=true".