Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
90159022
Commit
90159022
authored
6 years ago
by
nhynes
Committed by
Tianqi Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Install rust for all users (#1856)
parent
f1d815cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile.ci_cpu
+3
-1
3 additions, 1 deletion
docker/Dockerfile.ci_cpu
docker/install/ubuntu_install_rust.sh
+9
-4
9 additions, 4 deletions
docker/install/ubuntu_install_rust.sh
with
12 additions
and
5 deletions
docker/Dockerfile.ci_cpu
+
3
−
1
View file @
90159022
...
...
@@ -26,6 +26,8 @@ RUN bash /install/ubuntu_install_golang.sh
# Rust env
COPY install/ubuntu_install_rust.sh /install/ubuntu_install_rust.sh
RUN bash /install/ubuntu_install_rust.sh
ENV RUSTUP_HOME /opt/rust
ENV CARGO_HOME /opt/rust
# SGX deps
COPY install/ubuntu_install_sgx.sh /install/ubuntu_install_sgx.sh
...
...
@@ -33,4 +35,4 @@ RUN bash /install/ubuntu_install_sgx.sh
ENV LD_LIBRARY_PATH /opt/sgxsdk/lib64:${LD_LIBRARY_PATH}
ENV PATH $PATH:
/root/.cargo
/bin:/usr/lib/go-1.10/bin
ENV PATH $PATH:
$CARGO_HOME
/bin:/usr/lib/go-1.10/bin
This diff is collapsed.
Click to expand it.
docker/install/ubuntu_install_rust.sh
+
9
−
4
View file @
90159022
apt-get update
&&
apt-get
install
-y
--no-install-recommends
--force-yes
curl
curl
-sSo
rustup.sh
'https://sh.rustup.rs'
# rustc nightly-2018-08-25 is the version supported by the above version of rust-sgx-sdk
bash rustup.sh
-y
--no-modify-path
--default-toolchain
nightly-2018-08-25
.
$HOME
/.cargo/env
export
RUSTUP_HOME
=
/opt/rust
export
CARGO_HOME
=
/opt/rust
# rustc nightly-2018-08-25 is the version supported by the rust-sgx-sdk
curl https://sh.rustup.rs
-sSf
| sh
-s
--
-y
--no-modify-path
--default-toolchain
nightly-2018-08-25
.
$CARGO_HOME
/env
rustup toolchain add nightly
rustup component add rust-src
cargo +nightly
install
rustfmt-nightly
--version
0.99.5
--force
cargo +nightly
install
xargo
# make rust usable by all users
chmod
a+w /opt/rust
sudo
find /opt/rust
-type
d
-exec
chmod
a+w
{}
\;
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