Commit 5e69c9a0 authored by Tomáš Pecka's avatar Tomáš Pecka

OpenBuild Client image

parents
Pipeline #23054 failed
image: gitlab.fit.cvut.cz:5000/ict/alpine-docker-images/ci:3.8
.docker: &docker_template
cache: {} # disable
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: docker
DIRECTORY: "${CI_JOB_NAME#build:}"
IMAGE_NAME: "${CI_REGISTRY_IMAGE}/${CI_JOB_NAME#build:}:latest"
services:
- docker:dind
before_script:
- apk add --no-cache docker
- docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- cd "$DIRECTORY"
- docker build -t "$IMAGE_NAME" .
- docker run -t "$IMAGE_NAME"
- docker push -t "$IMAGE_NAME"
dependencies: []
build:ocs
<<: *docker_template
FROM bitnami/minideb:stretch
RUN apt-get update
RUN apt-get install -y python python-pip gcc libcurl4-openssl-dev libssl1.0-dev
RUN pip install build-service-osc pycurl
RUN ln -s /usr/local/bin/osc-wrapper.py /usr/bin/osc
CMD bash
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment