Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
f5a79798
Commit
f5a79798
authored
5 years ago
by
Chevdor
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix substrate default storage location (#5064)
parent
009f3541
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/.maintain/Dockerfile
+5
-5
5 additions, 5 deletions
substrate/.maintain/Dockerfile
with
5 additions
and
5 deletions
substrate/.maintain/Dockerfile
+
5
−
5
View file @
f5a79798
...
...
@@ -20,7 +20,6 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
export
PATH
=
"
$PATH
:
$HOME
/.cargo/bin"
&&
\
rustup toolchain
install
nightly
&&
\
rustup target add wasm32-unknown-unknown
--toolchain
nightly
&&
\
rustup default nightly
&&
\
rustup default stable
&&
\
cargo build
"--
$PROFILE
"
...
...
@@ -34,9 +33,10 @@ ARG PROFILE=release
RUN
mv
/usr/share/ca
*
/tmp
&&
\
rm
-rf
/usr/share/
*
&&
\
mv
/tmp/ca-certificates /usr/share/
&&
\
mkdir
-p
/root/.local/share/Polkadot
&&
\
ln
-s
/root/.local/share/Polkadot /data
&&
\
useradd
-m
-u
1000
-U
-s
/bin/sh
-d
/substrate substrate
useradd
-m
-u
1000
-U
-s
/bin/sh
-d
/substrate substrate
&&
\
mkdir
-p
/substrate/.local/share/substrate
&&
\
chown
-R
substrate:substrate /substrate/.local
&&
\
ln
-s
/substrate/.local/share/substrate /data
COPY
--from=builder /substrate/target/$PROFILE/substrate /usr/local/bin
...
...
@@ -49,7 +49,7 @@ RUN rm -rf /usr/lib/python* && \
rm
-rf
/usr/bin /usr/sbin /usr/share/man
USER
substrate
EXPOSE
30333 9933 9944
EXPOSE
30333 9933 9944
9615
VOLUME
["/data"]
CMD
["/usr/local/bin/substrate"]
This diff is collapsed.
Click to expand it.
Preview
0%
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