forked from alt/image-forge
add images prometheus, python2
This commit is contained in:
parent
ab4b19f839
commit
8466221285
18
org/alt/prometheus-alertmanager/Dockerfile.template
Normal file
18
org/alt/prometheus-alertmanager/Dockerfile.template
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ registry }}{{ alt_image }}:{{ branch }}
|
||||
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="alertmanager"
|
||||
LABEL org.opencontainers.image.description="The Alertmanager handles alerts sent by client applications"
|
||||
LABEL org.opencontainers.image.source="https://github.com/prometheus/alertmanager"
|
||||
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages("prometheus-alertmanager") }}
|
||||
|
||||
WORKDIR /var/lib/prometheus/alertmanager
|
||||
RUN useradd -r -u 10003 alertmanager
|
||||
USER alertmanager
|
||||
EXPOSE 9093
|
||||
VOLUME [ "/var/lib/prometheus/alertmanager" ]
|
||||
ENTRYPOINT [ "/usr/bin/prometheus/alertmanager", "--config.file=/etc/prometheus/alertmanager.yml"]
|
11
org/alt/prometheus-alertmanager/README.md
Normal file
11
org/alt/prometheus-alertmanager/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Prometheus alertmanager image
|
||||
|
||||
Command for run:
|
||||
```
|
||||
docker run -d --name="alertmanager" -p 9093:9093 -v promdata-am:/var/lib/prometheus/alertmanager IMAGENAME
|
||||
```
|
||||
|
||||
*If you want to be able to view services on localhost, instead of -p, specify the flag:
|
||||
```
|
||||
--network="host"
|
||||
```
|
18
org/alt/prometheus-node_exporter/Dockerfile.template
Normal file
18
org/alt/prometheus-node_exporter/Dockerfile.template
Normal file
@ -0,0 +1,18 @@
|
||||
FROM {{ registry }}{{ alt_image }}:{{ branch }}
|
||||
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="prometheus-node_exporter"
|
||||
LABEL org.opencontainers.image.description="Prometheus exporter for hardware and OS metrics exposed by *NIX kernels"
|
||||
LABEL org.opencontainers.image.source="https://github.com/prometheus/node_exporter"
|
||||
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages("prometheus-node_exporter") }}
|
||||
|
||||
WORKDIR /var/lib/prometheus/node-exporter
|
||||
RUN useradd -r -u 10002 node_exporter
|
||||
USER node_exporter
|
||||
EXPOSE 9100
|
||||
VOLUME [ "/var/lib/prometheus/node-exporter" ]
|
||||
ENTRYPOINT [ "/usr/bin/prometheus-node_exporter" ]
|
11
org/alt/prometheus-node_exporter/README.md
Normal file
11
org/alt/prometheus-node_exporter/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Prometheus node_exporter image
|
||||
|
||||
Command for run:
|
||||
```
|
||||
docker run -d --name="prometheus-node_exporter" -p 9100:9100 -v promdata-ne:/var/lib/prometheus/node-exporter IMAGENAME
|
||||
```
|
||||
|
||||
*If you want to be able to view services on localhost, instead of -p, specify the flag:
|
||||
```
|
||||
--network="host"
|
||||
```
|
17
org/alt/python2/Dockerfile.template
Normal file
17
org/alt/python2/Dockerfile.template
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ registry }}{{ organization }}/base:{{ branch }}
|
||||
|
||||
MAINTAINER alt-cloud
|
||||
|
||||
LABEL org.opencontainers.image.title="python"
|
||||
LABEL org.opencontainers.image.description="Python 2 and tools needed for development"
|
||||
LABEL org.opencontainers.image.source="https://www.python.org/downloads/source"
|
||||
LABEL org.opencontainers.image.licenses="Python-2.0"
|
||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
||||
|
||||
{{ install_packages(
|
||||
"python-module-setuptools",
|
||||
"python-dev",
|
||||
"gcc",
|
||||
) }}
|
||||
|
||||
CMD ["python2"]
|
13
org/alt/python2/README.md
Normal file
13
org/alt/python2/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
dockerfiles-alt-python
|
||||
=======================
|
||||
|
||||
ALT dockerfile for python.
|
||||
|
||||
Image contains python(3) and tools to get upstream python modules. Main purpose
|
||||
of the image is to run python apps using upstream modules.
|
||||
|
||||
Copy Dockerfile somewhere and build the image:
|
||||
`$ docker build --rm -t <image_name> .`
|
||||
|
||||
And launch the python container:
|
||||
`docker run -it <image_name>`
|
Loading…
x
Reference in New Issue
Block a user