Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
Images
Merge requests
!17
Update Golang image for Buster
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update Golang image for Buster
develop
into
master
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Erick Hitter
requested to merge
develop
into
master
5 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
Buster provides clang-7.0
0
0
Merge request reports
Viewing commit
1a26a1b4
Prev
Next
Show latest version
1 file
+
3
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
1a26a1b4
Use clang available in Buster
· 1a26a1b4
Erick Hitter
authored
5 years ago
golang/latest/Dockerfile
+
3
−
18
Options
@@ -9,28 +9,13 @@ ENV GOPATH /go
ENV
PATH ${GOPATH}/bin:$PATH
RUN
go get
-u
golang.org/x/lint/golint
# Install
requirement to import LLVM key
# Install
clang
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
gnupg2
\
wget
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# Add apt key for LLVM repository
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
RUN
wget
-O
- https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
# Add LLVM apt repository
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
RUN
echo
"deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-5.0 main"
|
tee
-a
/etc/apt/sources.list
# Install clang from LLVM repository
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
\
clang-5.0
\
clang-7.0
\
&&
apt-get clean
\
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
# Set Clang as default CC
ENV
set_clang /etc/profile.d/set-clang-cc.sh
SHELL
["/bin/bash", "-o", "pipefail", "-c"]
RUN
echo
"export CC=clang-
5
.0"
|
tee
-a
${
set_clang
}
&&
chmod
a+x
${
set_clang
}
RUN
echo
"export CC=clang-
7
.0"
|
tee
-a
${
set_clang
}
&&
chmod
a+x
${
set_clang
}
Loading