From daaa5382545853e62617af0a984bebc1ad8cb3dd Mon Sep 17 00:00:00 2001 From: James Jones Date: Wed, 16 Nov 2022 19:05:08 -0500 Subject: [PATCH] Stubbing out very rough gitlab ci --- .gitlab-ci.yml | 70 -------------------------------------------------- README.md | 20 +++++++++++++++ 2 files changed, 20 insertions(+), 70 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c54f331..d811262 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,37 +5,6 @@ before_script: - dnf install -y podman-docker - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY -# docker-build: -# # Use the official docker image. -# # image: docker:latest -# stage: build -# # services: -# # - docker:dind -# tags: -# - big-build -# before_script: -# - dnf install -y podman-docker -# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY -# # Default branch leaves tag empty (= latest tag) -# # All other branches are tagged with the escaped branch name (commit ref slug) -# script: -# - | -# if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then -# tag="" -# echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'" -# else -# tag=":$CI_COMMIT_REF_SLUG" -# echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" -# fi -# - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" . -# - docker push "$CI_REGISTRY_IMAGE${tag}" -# # Run this job in a branch where a Dockerfile exists -# rules: -# - if: $CI_COMMIT_BRANCH -# exists: -# - Dockerfile - - build:prereleases: stage: dind-build tags: @@ -61,42 +30,3 @@ build:releases: only: - tags -# image: fedora:latest - -# variables: -# SOMETHING: else - -# stages: -# - build -# # - deploy - -# services: -# - docker:dind - -# before_script: -# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - -# build:prereleases: -# stage: build -# script: -# - export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum]_.-' '-') -# - docker build --pull -t "$CI_REGISTRY_IMAGE:CI_PROJECT_NAME-$IMAGE_TAG" . -# - docker push "$CI_REGISTRY_IMAGE:$CI_PROJECT_NAME-$IMAGE_TAG" -# only: -# - branches -# except: -# - main - -# build:releases: -# stage: build -# script: -# - export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum]_.-' '-') -# - docker build --pull -t "$CI_REGISTRY_IMAGE:CI_PROJECT_NAME-$IMAGE_TAG" . -# - docker push "$CI_REGISTRY_IMAGE:$CI_PROJECT_NAME-$IMAGE_TAG" -# - docker tag "$CI_REGISTRY_IMAGE:$CI_PROJECT_NAME-$IMAGE_TAG" "$CI_REGISTRY_IMAGE:$CI_PROJECT_NAME-latest" -# - docker push "$CI_REGISTRY_IMAGE:$CI_PROJECT_NAME-latest" -# only: -# - tags - -# # trigger_build: - diff --git a/README.md b/README.md index 80ce453..0755d5a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ # podman-dind-like + A Docker-in-Docker like container using Podman + +## Description + +This takes the quay.io/podman/stable image and extends it with some enhancements to make it more docker like +and able to use `docker` as a command as well as includes `docker-compose`. + +## Notes + +This job runs on a self-hosted gitlab agent with the following in the config.toml so this is also compatible with +other self-hosted agents for other CI/CD self-hosted agents + +``` + [runners.docker] + host = "unix:///run/podman/podman.sock" + tls_verify = false + image = "quay.io/podman/stable" + privileged = true + network_mode = "host" +``` \ No newline at end of file