Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arch-builder
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
rust
arch-builder
Commits
b6b9fc55
Commit
b6b9fc55
authored
5 years ago
by
Pascal Engélibert
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
ecbb1e30
No related branches found
No related tags found
No related merge requests found
Pipeline
#6758
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+12
-12
12 additions, 12 deletions
Dockerfile
with
12 additions
and
12 deletions
Dockerfile
+
12
−
12
View file @
b6b9fc55
...
@@ -9,19 +9,19 @@ RUN pacman -Syu --noconfirm
...
@@ -9,19 +9,19 @@ RUN pacman -Syu --noconfirm
# install gcc
# install gcc
RUN
pacman
-S
--noconfirm
gcc
grep sudo
git
RUN
pacman
-S
--noconfirm
gcc
grep sudo
git
# create user
RUN
useradd builduser
RUN
echo
"builduser ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
USER
builduser
# install rustup
# install rustup
RUN
curl https://sh.rustup.rs
-sSf
| sh
-s
--
-y
RUN
curl https://sh.rustup.rs
-sSf
| sh
-s
--
-y
RUN
rustup
install
stable
RUN
rustup default stable
# rustup directory
# rustup directory
ENV
PATH /
root
/.cargo/bin:$PATH
ENV
PATH /
home/builduser
/.cargo/bin:$PATH
# install cargo
arch
# install cargo
-
arch
RUN
cargo
install
--git
https://github.com/ZettaScript/cargo-arch
RUN
cargo
install
--git
https://github.com/ZettaScript/cargo-arch
\ No newline at end of file
# create user
RUN
useradd
--no-create-home
--shell
=
/bin/false builduser
&&
usermod
-L
builduser
RUN
echo
"builduser ALL=(ALL) NOPASSWD: ALL"
>>
/etc/sudoers
# place bins into accessible places
RUN
cp
/root/.cargo/bin/cargo /usr/bin
RUN
cp
/root/.cargo/bin/cargo-arch /usr/bin
\ No newline at end of file
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