Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dunitrust-env-dev
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
dunitrust
dunitrust-env-dev
Commits
b7550f6d
Commit
b7550f6d
authored
5 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
1e1fec74
No related branches found
No related tags found
No related merge requests found
Pipeline
#6379
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+20
-11
20 additions, 11 deletions
Dockerfile
with
20 additions
and
11 deletions
Dockerfile
+
20
−
11
View file @
b7550f6d
FROM
rust:slim
FROM
rust:slim
MAINTAINER
elois <elois@duniter.org>
MAINTAINER
elois <elois@duniter.org>
LABEL
version="0.1.
2
"
LABEL
version="0.1.
3
"
LABEL
description="Minimal environment for a Dunitrust developer"
LABEL
description="Minimal environment for a Dunitrust developer"
# Avoid warnings by switching to noninteractive
# Install fmt and clippy
ENV
DEBIAN_FRONTEND=noninteractive
RUN
rustup component add rustfmt
RUN
rustup component add clippy
# Add libraries needed to compile dunitrust
# Add libraries needed to compile dunitrust
RUN
apt-get update
&&
\
RUN
apt-get update
\
apt-get
install
-y
--no-install-recommends
cmake git nano pkg-config libssl-dev zlib1g-dev
&&
\
&&
apt-get
install
-y
--no-install-recommends
apt-utils 2>&1
\
apt-get clean
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# instakk needed packages
&& apt-get install -y --no-install-recommends cmake git nano pkg-config procps libssl-dev lldb-3.9 lsb-release zlib1g-dev \
# Install Rust components
&& rustup update \
&& rustup component add clippy rust-analysis rust-src rustfmt rls \
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Create a user
# Create a user
RUN
useradd
-ms
/bin/bash user
RUN
useradd
-ms
/bin/bash user
...
@@ -19,11 +26,13 @@ WORKDIR /home/user
...
@@ -19,11 +26,13 @@ WORKDIR /home/user
ENV
HOME /home/user
ENV
HOME /home/user
ENV
USER user
ENV
USER user
# Add external scripts
# Add external scripts
ADD
. /home/user
ADD
. /home/user
RUN
chmod
+x add_useful_aliases.sh
RUN
chmod
+x add_useful_aliases.sh
# Switch back to dialog for any ad-hoc use of apt-get
ENV
DEBIAN_FRONTEND=dialog
# Now act as `user`
# Now act as `user`
USER
user
USER
user
...
@@ -33,5 +42,5 @@ RUN ./add_useful_aliases.sh
...
@@ -33,5 +42,5 @@ RUN ./add_useful_aliases.sh
# Install coverage tool
# Install coverage tool
RUN
cargo
install
cargo-tarpaulin
RUN
cargo
install
cargo-tarpaulin
#
Clone Dunitrust repository
#
Install http server
RUN
git clone
--depth
50
--
https://git.duniter.org/nodes/rust/duniter-rs.git dunitrust
cargo install https
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