Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Gitlab Runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libre
Gitlab Runner
Commits
124f8af9
Commit
124f8af9
authored
Sep 17, 2018
by
Michał "rysiek" Woźniak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile: ADD_REPOSITORY_KEYS and ADD_REPOSITORIES now supported
parent
58b322a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Dockerfile
Dockerfile
+21
-0
No files found.
Dockerfile
View file @
124f8af9
...
...
@@ -14,6 +14,27 @@ ENV LANGUAGE en_US:en
ENV
LC_ALL en_US.UTF-8
RUN
locale-gen en_US.UTF-8
# adding repository keys
ARG
ADD_REPOSITORY_KEYS=
RUN if
[
"
$ADD_REPOSITORY_KEYS
"
!=
""
]
;
then
\
DEBIAN_FRONTEND
=
noninteractive apt-get
-q
update
&&
\
apt-get
-q
-y
--no-install-recommends
install
\
gpg
\
apt-transport-https
\
ca-certificates
\
lsb-release
&&
\
apt-get
-q
clean
&&
\
apt-get
-q
-y
autoremove
&&
\
rm
-rf
/var/lib/apt/lists/
*
&&
\
echo
"
$ADD_REPOSITORY_KEYS
"
|
sed
-e
's/^[[:space:]]*//'
| apt-key add -
;
\
fi
# adding repositories
ARG
ADD_REPOSITORIES=
RUN if
[
"
$ADD_REPOSITORIES
"
!=
""
]
;
then
\
echo
"
$ADD_REPOSITORIES
"
|
sed
-e
's/^[[:space:]]*//'
>
/etc/apt/sources.list.d/added-from-docker-build-arg.list
;
\
fi
# we might need to install some packages, but doing this in the entrypoint doesn't make any sense
ARG
INSTALL_PACKAGES=
RUN if
[
"
$INSTALL_PACKAGES
"
!=
""
]
;
then
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment