Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prometheus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
docker
prometheus
Commits
ead4e208
Commit
ead4e208
authored
2 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Simplify build
parent
ff522484
No related branches found
No related tags found
No related merge requests found
Pipeline
#56757
passed
1 year ago
Stage: build
Stage: release
Changes
2
Pipelines
13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+4
-3
4 additions, 3 deletions
Dockerfile
build.sh
+0
-35
0 additions, 35 deletions
build.sh
with
4 additions
and
38 deletions
Dockerfile
+
4
−
3
View file @
ead4e208
FROM
debian:stable-slim
FROM
debian:stable-slim
COPY
build.sh /tmp/build.sh
RUN
apt-get
-q
update
&&
\
env
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
install
prometheus
&&
\
RUN
/tmp/build.sh
&&
rm
/tmp/build.sh
apt-get clean
&&
\
rm
-fr
/var/lib/apt/lists/
*
ENTRYPOINT
["/usr/bin/prometheus"]
ENTRYPOINT
["/usr/bin/prometheus"]
This diff is collapsed.
Click to expand it.
build.sh
deleted
100755 → 0
+
0
−
35
View file @
ff522484
#!/bin/sh
#
# Install script for chaperone inside a Docker container.
#
# Packages required to serve the website and run the services.
PACKAGES
=
"prometheus"
# The default bitnami/minideb image defines an 'install_packages'
# command which is just a convenient helper. Define our own in
# case we are using some other Debian image.
if
[
"x
$(
which install_packages
)
"
=
"x"
]
;
then
install_packages
()
{
env
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qy
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
--no-install-recommends
"
$@
"
}
fi
die
()
{
echo
"ERROR:
$*
"
>
&2
exit
1
}
set
-x
apt-get
-q
update
# Install required packages
install_packages
${
PACKAGES
}
\
||
die
"could not install packages"
# Remove packages used for installation.
#apt-get remove -y --purge ${BUILD_PACKAGES}
apt-get autoremove
-y
apt-get clean
rm
-fr
/var/lib/apt/lists/
*
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