Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ci-dockerfiles
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
Container Registry
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
octobus
ci-dockerfiles
Commits
837a7921a209
Commit
837a7921a209
authored
4 years ago
by
Anton Shestakov
Browse files
Options
Downloads
Patches
Plain Diff
ci: install rust in ci-base
parent
4045e6ed573a
Branches
topic/default/rust-in-base
No related tags found
1 merge request
!40
ci: install rust in ci-base
Pipeline
#7145
failed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci-base/Dockerfile
+18
-0
18 additions, 0 deletions
ci-base/Dockerfile
ci-mercurial-core/Dockerfile
+0
-16
0 additions, 16 deletions
ci-mercurial-core/Dockerfile
with
18 additions
and
16 deletions
ci-base/Dockerfile
+
18
−
0
View file @
837a7921
...
...
@@ -44,3 +44,21 @@
RUN
echo
"[trusted]
\n
users=root
\n
groups=root
\n
"
>
/etc/mercurial/hgrc.d/trust-root.rc
RUN
useradd
-U
-ms
/bin/bash
--comment
"User dedicated to running ci tests"
ci-runner
USER
ci-runner
# install rustfmt through rustup (irk)
RUN
curl
--proto
-all
,https
--tlsv1
.2
-sSf
https://sh.rustup.rs
-o
/tmp/rustup.sh
# Only download the targetted Debian stable version
RUN
sh /tmp/rustup.sh
-y
--default-toolchain
1.34.2
USER
root
RUN
ln
-s
/home/ci-runner/.cargo/bin/rustup /usr/local/bin/
RUN
ln
-s
/home/ci-runner/.cargo/bin/cargo /usr/local/bin/
USER
ci-runner
# Be extra sure
RUN
rustup default 1.34.2
RUN
rustup toolchain
install
nightly
RUN
rustup component add rustfmt
--toolchain
nightly
USER
root
This diff is collapsed.
Click to expand it.
ci-mercurial-core/Dockerfile
+
0
−
16
View file @
837a7921
...
...
@@ -13,19 +13,3 @@
RUN
npm
install
-g
jshint
USER
ci-runner
# install rustfmt through rustup (irk)
RUN
curl
--proto
-all
,https
--tlsv1
.2
-sSf
https://sh.rustup.rs
-o
/tmp/rustup.sh
# Only download the targetted Debian stable version
RUN
sh /tmp/rustup.sh
-y
--default-toolchain
1.34.2
USER
root
RUN
ln
-s
/home/ci-runner/.cargo/bin/rustup /usr/local/bin/
RUN
ln
-s
/home/ci-runner/.cargo/bin/cargo /usr/local/bin/
USER
ci-runner
# Be extra sure
RUN
rustup default 1.34.2
RUN
rustup toolchain
install
nightly
RUN
rustup component add rustfmt
--toolchain
nightly
RUN
cd
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