Skip to content

Instantly share code, notes, and snippets.

@askb
Created May 26, 2022 22:58
Show Gist options
  • Save askb/2feb911f9d18ba039344e697fba87b7b to your computer and use it in GitHub Desktop.
Save askb/2feb911f9d18ba039344e697fba87b7b to your computer and use it in GitHub Desktop.
Dockerfile to build CentOS 7 container with Sigul installed.
FROM centos:7
SHELL ["/bin/bash", "-c"]
RUN echo $'[fedora-infra-sigul] \n\
name=Fedora builder packages for sigul \n\
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel\$releasever-infra/latest/\$basearch/ \n\
enabled=1 \n\
gpgcheck=1 \n\
gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS \n\
includepkgs=sigul* \n\
skip_if_unavailable=True' > /etc/yum.repos.d/fedora-infra-sigul.repo
RUN yum install -y -q sigul
RUN mkdir -p /w/workspace && mkdir -p /home/jenkins
COPY ./sigul-sign.sh /
USER root
ENTRYPOINT ["/bin/bash", "/sigul-sign.sh"]
CMD ["${SIGN_DIR}"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment