mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-14 12:12:21 +00:00
commit
ff5c6593b0
3 changed files with 9 additions and 8 deletions
4
.github/workflows/docker-ubuntu-image.yml
vendored
4
.github/workflows/docker-ubuntu-image.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Docker Ubuntu 18.04 image
|
||||
name: Docker Ubuntu 20.04 image
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -10,7 +10,7 @@ env:
|
|||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
FROM ubuntu:20.04 as builder
|
||||
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/*
|
||||
ENV CC clang-6.0
|
||||
ENV CXX clang++-6.0
|
||||
ENV CCACHE_DISABLE 1
|
||||
WORKDIR /
|
||||
RUN git clone --recursive https://github.com/ton-blockchain/ton
|
||||
WORKDIR /ton
|
||||
|
||||
RUN mkdir build && \
|
||||
cd build && \
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release && \
|
||||
make -j 4
|
||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. && \
|
||||
ninja tonlibjson fift func validator-engine validator-engine-console generate-random-id dht-server lite-client
|
||||
|
||||
FROM ubuntu:20.04
|
||||
RUN apt-get update && \
|
||||
apt-get install -y openssl wget&& \
|
||||
apt-get install -y openssl wget libatomic1 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
RUN mkdir -p /var/ton-work/db && \
|
||||
mkdir -p /var/ton-work/db/static
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
Dockerfile for The Open Network Node
|
||||
|
||||
#### Install
|
||||
```docker pull ghcr.io/newton-blockchain/ton```
|
||||
```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/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".
|
||||
|
|
Loading…
Reference in a new issue