mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +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:
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue