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
Commits
1a2262a1
Commit
1a2262a1
authored
3 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
add a local docker for dev
parent
6c4af86e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.maintain/local-docker-test-network/duniter.Dockerfile
+35
-0
35 additions, 0 deletions
.maintain/local-docker-test-network/duniter.Dockerfile
scripts/docker.sh
+14
-0
14 additions, 0 deletions
scripts/docker.sh
scripts/init.sh
+0
-12
0 additions, 12 deletions
scripts/init.sh
with
49 additions
and
12 deletions
.maintain/local-docker-test-network/duniter.Dockerfile
0 → 100644
+
35
−
0
View file @
1a2262a1
FROM
docker.io/library/ubuntu:20.04
# metadata
ARG
VCS_REF
ARG
BUILD_DATE
# show backtraces
ENV
RUST_BACKTRACE 1
# install tools and dependencies
RUN
apt-get update
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get upgrade
-y
&&
\
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
\
libssl1.1
\
ca-certificates
\
curl
&&
\
# apt cleanup
apt-get autoremove -y && \
apt-get clean && \
find /var/lib/apt/lists/ -type f -not -name lock -delete; \
# add user
useradd -m -u 1000 -U -s /bin/sh -d /duniter duniter
# add duniter binary to docker image
COPY
./build/duniter /usr/local/bin
USER
duniter
# check if executable works in this container
RUN
/usr/local/bin/duniter
--version
EXPOSE
30333 9933 9944
VOLUME
["/duniter"]
ENTRYPOINT
["/usr/local/bin/duniter"]
This diff is collapsed.
Click to expand it.
scripts/docker
_run
.sh
→
scripts/docker.sh
100644 → 100755
+
14
−
0
View file @
1a2262a1
...
@@ -6,7 +6,9 @@ echo "*** Start Duniter node ***"
...
@@ -6,7 +6,9 @@ echo "*** Start Duniter node ***"
cd
$(
dirname
${
BASH_SOURCE
[0]
}
)
/..
cd
$(
dirname
${
BASH_SOURCE
[0]
}
)
/..
mkdir
-p
./.local
mkdir
-p
build
cp
target/release/duniter build/duniter
docker build
-t
"duniter/duniter-v2s:local"
-f
".maintain/local-docker-test-network/duniter.Dockerfile"
.
docker-compose down
--remove-orphans
#
docker-compose down --remove-orphans
docker-compose run
--rm
--service-ports
dev
$@
#
docker-compose run --rm --service-ports dev $@
This diff is collapsed.
Click to expand it.
scripts/init.sh
deleted
100755 → 0
+
0
−
12
View file @
6c4af86e
#!/usr/bin/env bash
# This script is meant to be run on Unix/Linux based systems
set
-e
echo
"*** Initializing WASM build environment"
if
[
-z
$CI_PROJECT_NAME
]
;
then
rustup update nightly
rustup update stable
fi
rustup target add wasm32-unknown-unknown
--toolchain
nightly
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment