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
14c20720
Commit
14c20720
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
wip add cache to dockerfile
parent
f56ea6c3
No related branches found
No related tags found
No related merge requests found
Pipeline
#36350
waiting for manual action
Stage: quality
Stage: build
Stage: tests
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/Dockerfile
+4
-3
4 additions, 3 deletions
docker/Dockerfile
with
4 additions
and
3 deletions
docker/Dockerfile
+
4
−
3
View file @
14c20720
...
@@ -21,7 +21,8 @@ WORKDIR /root
...
@@ -21,7 +21,8 @@ WORKDIR /root
# Copy source tree
# Copy source tree
COPY
. .
COPY
. .
RUN
apt-get update
&&
\
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
&&
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y clang cmake protobuf-compiler
DEBIAN_FRONTEND=noninteractive apt-get install -y clang cmake protobuf-compiler
# build duniter
# build duniter
...
@@ -34,7 +35,7 @@ RUN if [ "$debug" = 0 ]; then \
...
@@ -34,7 +35,7 @@ RUN if [ "$debug" = 0 ]; then \
fi
fi
# Configure cross-build environment if need be
# Configure cross-build environment if need be
RUN
set
-x
&&
\
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
&&
set
-x
&&
\
if
[
"
$TARGETPLATFORM
"
!=
"
$BUILDPLATFORM
"
]
;
then
\
if
[
"
$TARGETPLATFORM
"
!=
"
$BUILDPLATFORM
"
]
;
then
\
.
/root/dynenv
&&
\
.
/root/dynenv
&&
\
apt
install
-y
gcc-
$DEBIAN_ARCH_TRIPLET
binutils-
$DEBIAN_ARCH_TRIPLET
&&
\
apt
install
-y
gcc-
$DEBIAN_ARCH_TRIPLET
binutils-
$DEBIAN_ARCH_TRIPLET
&&
\
...
@@ -45,7 +46,7 @@ RUN set -x && \
...
@@ -45,7 +46,7 @@ RUN set -x && \
# Build
# Build
ARG
chain="gdev"
ARG
chain="gdev"
RUN
set
-x
&&
\
RUN
--mount
=
type
=
cache,target
=
build
&&
set
-x
&&
\
cat
/root/dynenv
&&
\
cat
/root/dynenv
&&
\
.
/root/dynenv
&&
\
.
/root/dynenv
&&
\
cargo build
--locked
$CARGO_OPTIONS
--no-default-features
$BENCH_OPTIONS
--features
$chain
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
cargo build
--locked
$CARGO_OPTIONS
--no-default-features
$BENCH_OPTIONS
--features
$chain
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
...
...
This diff is collapsed.
Click to expand it.
Hugo Trentesaux
@HugoTrentesaux
mentioned in issue
#228
·
1 year ago
mentioned in issue
#228
mentioned in issue #228
Toggle commit list
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