Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 93fbfcd7 rédigé par Erwan BOUSSE's avatar Erwan BOUSSE
Parcourir les fichiers

Switch to custom fedora-based containerfile

parent ee0e81ab
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #92989 en échec
publish_container_image:
image:
name: gcr.io/kaniko-project/executor:v1.13.0-debug
name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""]
script:
- /kaniko/executor
......@@ -8,6 +8,6 @@ publish_container_image:
--build-arg http_proxy=$http_proxy
--build-arg https_proxy=$https_proxy
--build-arg no_proxy=$no_proxy
--dockerfile "${CI_PROJECT_DIR}/Containerfile"
--dockerfile "${CI_PROJECT_DIR}/Containerfile.custom"
--destination "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}"
--destination "${CI_REGISTRY_IMAGE}:latest"
\ No newline at end of file
# ____ _ _ _
# | __ ) _ _(_) | __| | ___ _ __
# | _ \| | | | | |/ _` |/ _ \ '__|
# | |_) | |_| | | | (_| | __/ |
# |____/ \__,_|_|_|\__,_|\___|_|
#
FROM docker.io/fedora as builder
# This will be used in ubi-micro
RUN dnf --installroot=/tmp/ubi-micro \
--nodocs --setopt=install_weak_deps=False \
install -y \
g++ shadow-utils && \
dnf --installroot=/tmp/ubi-micro \
clean all
# This is needed to build pict
RUN dnf install -y cmake g++ && \
mkdir /tmp/pict
# Copy repo resources
COPY ./ /tmp/pict/
# Build the pict
RUN cd /tmp/pict/ && \
rm -rf build && \
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build && \
cmake --build build && \
cp build/cli/pict /tmp/ubi-micro/usr/local/bin/
# __ __ _
# | \/ | __ _(_)_ __
# | |\/| |/ _` | | '_ \
# | | | | (_| | | | | |
# |_| |_|\__,_|_|_| |_|
#
FROM docker.io/fedora
COPY --from=builder /tmp/ubi-micro/ /
VOLUME /var/pict
WORKDIR /var/pict
RUN useradd -M pict
USER pict
ENTRYPOINT ["pict"]
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter