Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
182431c998 | ||
|
|
20d5bd8070 | ||
|
|
c1aa702be1 | ||
|
|
8ca7ca0aef | ||
|
|
ae29fafcfd | ||
|
|
2a5bae772f | ||
|
|
1df8ccde30 | ||
|
|
29b932884d | ||
|
|
9f0d4146ad | ||
|
|
35ed5053c0 | ||
|
|
aae4d7bfe0 | ||
|
|
b7591267ed | ||
|
|
0d87f977a9 | ||
|
|
bc2a4f8b53 | ||
|
|
782353499e | ||
|
|
ffe679f825 | ||
|
|
c5e4a1e6a7 | ||
|
|
29eeeb41fb | ||
|
|
58b62f6d20 |
+3
-3
@@ -47,13 +47,13 @@ steps:
|
|||||||
|
|
||||||
# Repo clonen
|
# Repo clonen
|
||||||
- git clone https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2.git
|
- git clone https://git.efi.th-nuernberg.de/gitea/freudenreichan/EinfuehrungInDocker_Pipeline2.git
|
||||||
- cd EinfuehrungInDocker_Pipeline
|
- cd EinfuehrungInDocker_Pipeline2
|
||||||
|
|
||||||
# Branch wechseln oder erstellen
|
# Branch wechseln oder erstellen
|
||||||
- git checkout drone-artifacts || git checkout -b drone-artifacts
|
- git checkout drone-artifacts || git checkout -b drone-artifacts
|
||||||
|
|
||||||
# Artifact löschen und neu hinzufügen
|
# Artifact löschen und neu hinzufügen
|
||||||
- git rm image.tar
|
- git rm --ignore-unmatch image.tar
|
||||||
- cp $DRONE_WORKSPACE/image.tar .
|
- cp $DRONE_WORKSPACE/image.tar .
|
||||||
- git add image.tar
|
- git add image.tar
|
||||||
|
|
||||||
@@ -64,4 +64,4 @@ steps:
|
|||||||
- git pull || true
|
- git pull || true
|
||||||
|
|
||||||
# Push
|
# Push
|
||||||
- git push
|
- git push --set-upstream origin drone-artifacts
|
||||||
+14
-4
@@ -1,9 +1,10 @@
|
|||||||
# Base-Image
|
# Base-Image
|
||||||
FROM ubuntu:latest
|
FROM alpine:3.20
|
||||||
|
|
||||||
# Pakete installieren
|
# Pakete installieren
|
||||||
RUN apt-get update
|
RUN apk add --no-cache build-base gcc curl vim net-tools
|
||||||
RUN apt-get install -y build-essential gcc curl vim net-tools
|
# CVE update
|
||||||
|
#RUN apk upgrade libssl3 libcrypto3 zlib
|
||||||
|
|
||||||
# Arbeitsverzeichnis setzen
|
# Arbeitsverzeichnis setzen
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -16,7 +17,16 @@ RUN gcc -o deployment deployment.c
|
|||||||
|
|
||||||
# Verzeichnis für Ausgabe anlegen
|
# Verzeichnis für Ausgabe anlegen
|
||||||
RUN mkdir /output
|
RUN mkdir /output
|
||||||
|
VOLUME /output
|
||||||
|
|
||||||
|
# User erstellen
|
||||||
|
RUN adduser -D appuser && chown /output appuser
|
||||||
|
USER appuser
|
||||||
|
|
||||||
|
#health
|
||||||
|
HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
|
||||||
|
CMD pgrep deployment || exit 1
|
||||||
|
|
||||||
# Ausgabe wird ins Container-Dateisystem geschrieben
|
# Ausgabe wird ins Container-Dateisystem geschrieben
|
||||||
ENTRYPOINT ["/bin/bash", "-c"]
|
ENTRYPOINT ["/bin/sh", "-c"]
|
||||||
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
||||||
Reference in New Issue
Block a user