I am using Gitlab pipeline. The runner is hosted in Gitlab. To decrease built time, I built a custom image which contains Maven dependencies. So, maven dependencies are not downloaded from internet during each build. I pushed my custom image to AWS ECR. But Gitlab CI is unable to download this image. Here is the ..
We use gitlab-ci with docker images to test student code. This works fine with images published to docker-hub. We now want to test using images that are only available on the server. The updated /etc/gitlab-runer/config.toml file with the settings shown below does not seem to be picked up, however, and we keep getting the error ..
I have a Gitlab pipeline that builds my Docker image from a Dockerfile, but when the "docker build" command fails, the pipeline still reports a success. build: stage: build script: – docker build –no-cache -t $CI_REGISTRY/dockerfile:$CONTAINER_LABEL . I’ve added an error to my Dockerfile so I can provoke an error: FROM ubuntu:20.04 RUN not_a_real_command_that_should_fail The ..
In a GitLab repo, I have a Dockerfile with the following lines, FROM python:alpine RUN addgroup -S java RUN adduser -s /bin/bash -S -G java java USER java WORKDIR /home/java so that when the image is instantiated (container running), it will run as user ‘java’ When GitLab CI/CD clones the project code however, it is ..
I’m trying to implement CD for my dockerized Django application on the DigitalOcean droplet. Here’s my .gitlab-ci.yml: image: name: docker/compose:1.29.1 entrypoint: [""] services: – docker:dind stages: – build – deploy variables: DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay2 before_script: – export IMAGE=$CI_REGISTRY/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME – export WEB_IMAGE=$IMAGE/web:web – export NGINX_IMAGE=$IMAGE/nginx:nginx – apk add –no-cache openssh-client bash – chmod +x ./setup_env.sh ..
What I have: react application having as package manager yarn (version 1.22.5) with a gitlab-ci.yml in which ./gradlew build (gradle version 7.2) is executed a gitlab runner locally as docker container based on "gitlab/gitlab-runner:alpine" image -> the gitlab runner executor is docker with default docker image "docker:20.10.8" For any reason my ci build always fails ..
i want to add the timestamp to container logs. i did in my build stage but im gotting always the timestamp UTC and not UTC+2(paris local time): build: – export current_date=$(TZ=":Europe/Paris" date +"%m-%d-%Y_%H:%M:%S") – echo $current_date – docker push $CI_IMAGE_COMMIT_TAG Please who can help me?? Source: Docker..
I want to run the oracle DB along with project, so I have an oracle image that i’m using as service image and my project’s image as the base image. Both these image reside in AWS ECR. test: stage: test image: ***.dkr.ecr.us-east-2.amazonaws.com/project:latest services: – name: ***.dkr.ecr.us-east-2.amazonaws.com/oracle-db:latest alias: oracleDB tags: – [runner] I get the below ..
i want to add the timestamp to container logs. i did in my build stage but im gotting aloways the timestamp UTC and not UTC+2: – export current_date=$(TZ=":Europe/Paris" date -u +"%m-%d-%Y_%H:%M:%S") – echo $current_date – docker push $CI_IMAGE_COMMIT_TAG Please who can help me?? Source: Docker..
I have a Dockerfile with ARG before first FROM. It builds correctly on my server (Docker version 20.10.7) however when I try to build it as part of GitLab CICD (GitLab version 13.7.4) within a DinD container (image docker:20.10.7) the build fails with the following message: Please provide a source image with `from` prior to ..