Starting with dockerfiles

This commit is contained in:
Bert van der Weerd 2021-09-28 10:03:57 +02:00
parent 694878d1d3
commit a95d5771de
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
8 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,17 @@
FROM debian
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
RUN dnf -y install bash
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# packages required to build and run apiserver.
RUN dnf -y install g++ gcc make automake autoconf libtool libcurl-devel
COPY apiserver-0.1.1.tar.gz /
WORKDIR /
RUN tar xvf apiserver-0.1.1.tar.gz
WORKDIR apiserver-0.1.1
RUN zsh ./configure --prefix=/usr --disable-dependency-tracking
RUN ["make", "install"]
EXPOSE 8000
ENTRYPOINT ["/usr/bin/apiserver"]

View file

@ -0,0 +1,17 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
RUN dnf -y install bash
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# packages required to build and run apiserver.
RUN dnf -y install g++ gcc make automake autoconf libtool libcurl-devel
COPY apiserver-0.1.1.tar.gz /
WORKDIR /
RUN tar xvf apiserver-0.1.1.tar.gz
WORKDIR apiserver-0.1.1
RUN zsh ./configure --prefix=/usr --disable-dependency-tracking
RUN ["make", "install"]
EXPOSE 8000
ENTRYPOINT ["/usr/bin/apiserver"]

View file

@ -0,0 +1,2 @@
all :
sudo docker build -t mozilla/build-nightly-bootstrap-debian .

View file

@ -0,0 +1,3 @@
all :
# sudo docker build -t stanzabird/apiserver .
sudo docker build -t mozilla/build-nightly-bootstrap .

View file

@ -0,0 +1,16 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
RUN dnf -y install bash zsh
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# packages required to build and run apiserver.
RUN dnf -y install g++ gcc make automake autoconf libtool libcurl-devel
COPY apiserver-0.1.1.tar.gz /
WORKDIR /
RUN tar xvf apiserver-0.1.1.tar.gz
WORKDIR apiserver-0.1.1
RUN zsh ./configure --prefix=/usr --disable-dependency-tracking
RUN ["make", "install"]
RUN ["make", "dist"]

View file

@ -0,0 +1,17 @@
FROM fedora
MAINTAINER Bert van der Weerd <bert@stanzabird.nl>
RUN dnf -y update
RUN dnf -y install bash
# locale stuff, see: https://superuser.com/questions/959380/how-do-i-install-generate-all-locales-on-fedora
RUN echo "%_install_langs C:en:en_US:en_US.UTF-8" > /etc/rpm/macros.image-language-conf
RUN dnf -y reinstall glibc-common
# packages required to build and run apiserver.
RUN dnf -y install g++ gcc make automake autoconf libtool libcurl-devel
COPY apiserver-0.1.1.tar.gz /
WORKDIR /
RUN tar xvf apiserver-0.1.1.tar.gz
WORKDIR apiserver-0.1.1
RUN zsh ./configure --prefix=/usr --disable-dependency-tracking
RUN ["make", "install"]
EXPOSE 8000
ENTRYPOINT ["/usr/bin/apiserver"]

View file

@ -0,0 +1,2 @@
all :
sudo docker build -t mozilla/build-nightly-bootstrap-fedora .

View file

@ -0,0 +1,3 @@
all :
# sudo docker build -t stanzabird/apiserver .
sudo docker build -t mozilla/build-nightly-bootstrap .