Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
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
code
pugs
Commits
6f33b039
Commit
6f33b039
authored
3 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Update image construction to use clang10
parent
39cf24c9
No related branches found
No related tags found
1 merge request
!123
Feature/tools
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/docker-pugs.sh
+8
-10
8 additions, 10 deletions
tools/docker-pugs.sh
with
8 additions
and
10 deletions
tools/docker-pugs.sh
+
8
−
10
View file @
6f33b039
...
...
@@ -35,30 +35,28 @@ mkdir -p ${DOCKERFILE_DIR}
DOCKERFILE
=
"
${
DOCKERFILE_DIR
}
/Dockerfile"
cat
>
${
DOCKERFILE
}
<<
EOF
FROM ubuntu:
bionic
FROM ubuntu:
focal
ARG DEBIAN_FRONTEND=noninteractive
ENV USER="
${
USER
}
" USER_ID="
${
USER_ID
}
" USER_GID="
${
USER_GID
}
" HOSTNAME="
${
DOCKER_HOSTNAME
}
"
ENV TZ=Europe/Paris
RUN echo "
${
DOCKER_HOSTNAME
}
" > /etc/hostname
RUN groupadd --gid "
${
USER_GID
}
" "
${
USER
}
"
RUN useradd --uid "
${
USER_ID
}
" --gid "
${
USER_GID
}
" --create-home --shell /bin/bash "
${
USER
}
"
RUN apt-get update && apt-get -y upgrade && apt-get -y remove g++ gcc && apt-get -y install cmake git make lcov bc gnupg gnupg2 gnupg1 wget
RUN echo 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main' > /etc/apt/sources.list.d/backports.list
RUN wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN apt-get update && apt-get -y upgrade && apt-get -y remove g++ gcc && apt-get -y install apt-utils gnupg gnupg2 gnupg1 wget cmake git make lcov bc pkg-config sudo
RUN apt-get
update && apt-get -y upgrade && apt-get -y install clang-8 clang-tools-8 clang-8-doc libclang-common-8-dev libclang-8-dev libclang1-8 clang-format-8 python-clang-8
RUN apt-get
-y install clang-10
RUN apt-get -y install libparmetis-dev
sudo
RUN apt-get -y install libparmetis-dev
petsc-dev slepc-dev
RUN apt-get clean
RUN rm /usr/bin/cc
RUN echo "
${
USER
}
ALL=(ALL:ALL) NOPASSWD:ALL" > "/etc/sudoers.d/
${
USER
}
"
RUN ln -s /usr/bin/clang-format-
8
/usr/bin/clang-format
RUN ln -s /usr/bin/clang-format-
10
/usr/bin/clang-format
ENV CC="clang-
8
" CXX="clang++-
8
"
ENV CC="clang-
10
" CXX="clang++-
10
"
EOF
...
...
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