From bcebd4c62812c9f055f46cbae80e85e56b288552 Mon Sep 17 00:00:00 2001 From: Florin Postolache <florin.postolache.of@gmail.com> Date: Mon, 13 May 2024 00:59:44 +0300 Subject: [PATCH] Add CI/CD related stuff Signed-off-by: Florin Postolache <florin.postolache.of@gmail.com> --- .gitlab-ci.yml | 4 ++-- Dockerfile | 6 ++++-- local.sh | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d2710e..2b5f760 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,6 +26,6 @@ build: checker: stage: test image: - name: gitlab.cs.pub.ro:5050/vmchecker/vmchecker-next-assignment + name: gitlab.cs.pub.ro:5050/iocla/tema3-2024 script: - - echo "" + - ./checker/checker.sh diff --git a/Dockerfile b/Dockerfile index 3f059a7..f6c1e1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM jokeswar/base-ctl -RUN echo "Hello from Docker" +ENV DEBIAN_FRONTEND noninteractive -COPY ./checker ${CHECKER_DATA_DIRECTORY} +RUN apt-get update -yqq && \ + apt-get install -yqq gcc-multilib nasm bc qemu-user gdb && \ + apt-get install -y build-essential valgrind diff --git a/local.sh b/local.sh index c3af28a..60870db 100755 --- a/local.sh +++ b/local.sh @@ -9,7 +9,7 @@ cd "$(dirname "$0")" || exit 1 RED='\033[0;31m' NC='\033[0m' -DEFAULT_IMAGE_NAME="$(basename "$(pwd)")" +DEFAULT_IMAGE_NAME="iocla/tema3-2024" DEFAULT_TAG='latest' DEFAULT_REGISTRY='gitlab.cs.pub.ro:5050' -- GitLab