-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
54 lines (46 loc) · 1.97 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (c) [2023-2024] [Sparq Network]
# This software is distributed under the MIT License.
# See the LICENSE.txt file in the project root for more information.
# Start from a base Debian image
FROM debian:bookworm
# Update the system
RUN apt-get update && apt-get upgrade -y
# Install dependencies
RUN apt-get install -y build-essential cmake tmux clang-tidy autoconf libtool pkg-config libabsl-dev libboost-all-dev libc-ares-dev libcrypto++-dev libgrpc-dev libgrpc++-dev librocksdb-dev libscrypt-dev libsnappy-dev libssl-dev zlib1g-dev openssl protobuf-compiler protobuf-compiler-grpc nano vim unison git
# Set the working directory in the Docker container
WORKDIR /orbitersdk-cpp
# Copy the local folder to the container
COPY . /orbitersdk-cpp
# Create the synchronized directory
RUN mkdir /orbitersdk-volume
# Copy Unison configuration file
COPY sync.prf /root/.unison/sync.prf
# Start Unison in the background, ignoring files that should not be synced
CMD nohup unison -repeat 1 /orbitersdk-volume /orbitersdk-cpp -auto -batch \
-ignore 'Name {build}' \
-ignore 'Name {build_local_testnet}' \
-ignore 'Name {.vscode}' \
-ignore 'Name {proto/metrics.pb.cc}' \
-ignore 'Name {proto/metrics.pb.h}' \
-ignore 'Name {proto/vm.grpc.pb.cc}' \
-ignore 'Name {proto/vm.grpc.pb.h}' \
-ignore 'Name {proto/vm.pb.cc}' \
-ignore 'Name {proto/vm.pb.h}' \
-ignore 'Name {storageVM}' \
-ignore 'Name {info.txt}' \
-ignore 'Name {.vscode}' \
-ignore 'Name {vmInfo.txt}' \
-ignore 'Name {*.[pP][bB].[hH]}' \
-ignore 'Name {tests/node_modules}' \
-ignore 'Name {depends/x86_64-pc-linux-gnu}' \
-ignore 'Name {scripts/AIO-setup.log}' \
-ignore 'Name {compile_commands.json}' \
-ignore 'Name {.cache}' \
-ignore 'Name {Dockerfile}' \
-ignore 'Name {docker-compose.yml}' \
-ignore 'Name {sync.prf}' \
-ignore 'Name {kateproject}' \
-ignore 'Name {*.o}' \
-ignore 'Name {*.gch}' \
> /dev/null 2>&1 & \
/bin/bash