Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Merge requests
!7
build: docker image and compose file
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
build: docker image and compose file
docker
into
master
Overview
45
Commits
14
Pipelines
0
Changes
5
Merged
pini
requested to merge
docker
into
master
3 years ago
Overview
16
Commits
14
Pipelines
0
Changes
5
Expand
Dockerfile, script entrypoint, docker-compose.yml minimaliste.
Edited
3 years ago
by
pini
0
0
Merge request reports
Compare
master
version 15
ccc97e92
3 years ago
version 14
74bef233
3 years ago
version 13
e2ce2fed
3 years ago
version 12
7a140461
3 years ago
version 11
7a140461
3 years ago
version 10
a7c630dc
3 years ago
version 9
99aa2001
3 years ago
version 8
71b1a6cd
3 years ago
version 7
f23240fa
3 years ago
version 6
1f1c8837
3 years ago
version 5
1f1c8837
3 years ago
version 4
1f1c8837
3 years ago
version 3
20df7a0a
3 years ago
version 2
a64fcb89
3 years ago
version 1
6807a319
3 years ago
master (base)
and
latest version
latest version
2b7d6d82
14 commits,
3 years ago
version 15
ccc97e92
13 commits,
3 years ago
version 14
74bef233
13 commits,
3 years ago
version 13
e2ce2fed
13 commits,
3 years ago
version 12
7a140461
6 commits,
3 years ago
version 11
7a140461
6 commits,
3 years ago
version 10
a7c630dc
5 commits,
3 years ago
version 9
99aa2001
4 commits,
3 years ago
version 8
71b1a6cd
4 commits,
3 years ago
version 7
f23240fa
4 commits,
3 years ago
version 6
1f1c8837
4 commits,
3 years ago
version 5
1f1c8837
4 commits,
3 years ago
version 4
1f1c8837
4 commits,
3 years ago
version 3
20df7a0a
4 commits,
3 years ago
version 2
a64fcb89
4 commits,
3 years ago
version 1
6807a319
1 commit,
3 years ago
5 files
+
109
−
17
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
docker/Dockerfile
0 → 100644
+
46
−
0
Options
# ------------------------------------------------------------------------------
# Build Stage
# ------------------------------------------------------------------------------
# Building for Debian buster because we need the binary to be compatible
# with the image paritytech/ci-linux:production (currently based on
# debian:buster-slim) used by the gitlab CI
FROM
rust:1-buster
as
build
WORKDIR
/root
RUN
apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
\
clang
# Copy source tree
COPY
. .
# build duniter
ARG
threads=1
RUN
test
-x
build/duniter
||
\
(
\
CARGO_PROFILE_RELEASE_LTO
=
"true"
\
cargo build
--release
-j
$threads
&&
\
mkdir
-p
build
&&
\
mv
target/release/duniter build/
\
)
# ------------------------------------------------------------------------------
# Final Stage
# ------------------------------------------------------------------------------
FROM
debian:buster-slim
LABEL
maintainer="Gilles Filippini <gilles.filippini@pini.fr>"
LABEL
version="0.0.0"
LABEL
description="Crypto-currency software (based on Substrate framework) to operate Ğ1 libre currency"
# Intall
COPY
--from=build /root/build/duniter /usr/local/bin/duniter
COPY
docker/docker-entrypoint /usr/local/bin/
# Configuration
# rpc, rpc-ws, p2p, telemetry
EXPOSE
9933 9944 30333 9615
VOLUME
/var/lib/duniter
ENTRYPOINT
["docker-entrypoint"]
Loading