-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (42 loc) · 1.8 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: MIT
# Define the tags for OBS and build script builds:
#!BuildTag: %%TAGPREFIX%%/demo:latest
#!BuildTag: %%TAGPREFIX%%/demo:%%PKG_VERSION%%
#!BuildTag: %%TAGPREFIX%%/demo:%%PKG_VERSION%%-%RELEASE%
#FROM opensuse/tumbleweed
ARG OSREG=opensuse/tumbleweed
FROM ${OSREG}
# Mandatory labels for the build service:
# https://en.opensuse.org/Building_derived_containers
# labelprefix=%%LABELPREFIX%%
LABEL Description="Graph requires Container"
LABEL maintainer="Antoine Ginies <[email protected]>"
LABEL org.opencontainers.image.title="Graph Requires Container"
LABEL org.opencontainers.image.description="Container for Graph Requires"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.version="%%PKG_VERSION%%.%RELEASE%"
LABEL org.opencontainers.image.url="https://build.opensuse.org/package/show/home:aginies:branches:openSUSE:Templates:Images:Tumbleweed/graph-container"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="%%REGISTRY%%/%%TAGPREFIX%%/graph-container:%%PKG_VERSION%%.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="test"
LABEL com.suse.eula="beta"
LABEL com.suse.image-type="application"
LABEL com.suse.release-stage="prototype"
# endlabelprefix
RUN mkdir /container
COPY graph_requires.py /container
RUN chmod +x /container/graph_requires.py
# list all repo
RUN zypper lr
RUN zypper --gpg-auto-import-keys ref
ARG PACKAGETOI=graphviz-gd
# install needed packages
ENV ADDITIONAL_MODULES sle-module-desktop-applications,sle-module-development-tools,sle-module-server-applications,sle-module-container
RUN zypper install --no-recommends -y \
graphviz ${PACKAGETOI} \
python3-base \
&& zypper clean --all
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]