From 57efa63afe86b478c8650cd6c680e8c8bc4afdec Mon Sep 17 00:00:00 2001 From: Zimovskii Anatolii Date: Mon, 14 Nov 2022 22:44:11 +0300 Subject: [PATCH] make - autocommit --- CHANGELOG.md | 2 + Makefile | 16 + .../gitlab/runner/amxx-sdk/Dockerfile | 40 +++ .../ecosystem/gitlab/runner/amxx-sdk/Makefile | 19 ++ .../gitlab/runner/amxx-sdk/README.md | 0 .../gitlab/runner/amxx-sdk/docker-compose.yml | 6 + .../gitlab/runner/android-sdk/Dockerfile | 64 ++++ .../gitlab/runner/android-sdk/Makefile | 19 ++ .../gitlab/runner/android-sdk/README.md | 0 .../runner/android-sdk/docker-compose.yml | 6 + .../gitlab/runner/android-sdk/sdkman.sh | 312 ++++++++++++++++++ .../gitlab/runner/atlassian-sdk/Dockerfile | 32 ++ .../gitlab/runner/atlassian-sdk/Makefile | 19 ++ .../gitlab/runner/atlassian-sdk/README.md | 0 .../runner/atlassian-sdk/docker-compose.yml | 6 + .../gitlab/runner/dotnet-sdk/Dockerfile | 99 ++++++ .../gitlab/runner/dotnet-sdk/Makefile | 19 ++ .../gitlab/runner/dotnet-sdk/README.md | 0 .../runner/dotnet-sdk/docker-compose.yml | 6 + .../dotnet-sdk/sources.list.d/sources.11.list | 21 ++ .../ecosystem/gitlab/runner/node12/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node12/Makefile | 19 ++ .../ecosystem/gitlab/runner/node12/README.md | 0 .../gitlab/runner/node12/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/node14/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node14/Makefile | 19 ++ .../ecosystem/gitlab/runner/node14/README.md | 0 .../gitlab/runner/node14/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/node15/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node15/Makefile | 19 ++ .../ecosystem/gitlab/runner/node15/README.md | 0 .../gitlab/runner/node15/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/node16/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node16/Makefile | 19 ++ .../ecosystem/gitlab/runner/node16/README.md | 0 .../gitlab/runner/node16/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/node17/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node17/Makefile | 19 ++ .../ecosystem/gitlab/runner/node17/README.md | 0 .../gitlab/runner/node17/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/node18/Dockerfile | 34 ++ linux/ecosystem/gitlab/runner/node18/Makefile | 19 ++ .../ecosystem/gitlab/runner/node18/README.md | 0 .../gitlab/runner/node18/docker-compose.yml | 6 + .../ecosystem/gitlab/runner/php7.2/Dockerfile | 82 +++++ linux/ecosystem/gitlab/runner/php7.2/Makefile | 19 ++ .../ecosystem/gitlab/runner/php7.2/README.md | 0 .../gitlab/runner/php7.2/docker-compose.yml | 6 + .../gitlab/runner/php7.2/docker-entrypoint.sh | 22 ++ .../runner/php7.2/install-gitlab-runner.sh | 10 + .../gitlab/runner/php7.2/run-docker.sh | 7 + .../ecosystem/gitlab/runner/php7.3/Dockerfile | 82 +++++ linux/ecosystem/gitlab/runner/php7.3/Makefile | 19 ++ .../ecosystem/gitlab/runner/php7.3/README.md | 0 .../gitlab/runner/php7.3/docker-compose.yml | 6 + .../gitlab/runner/php7.3/docker-entrypoint.sh | 22 ++ .../runner/php7.3/install-gitlab-runner.sh | 10 + .../gitlab/runner/php7.3/run-docker.sh | 7 + .../ecosystem/gitlab/runner/php7.4/Dockerfile | 82 +++++ linux/ecosystem/gitlab/runner/php7.4/Makefile | 19 ++ .../ecosystem/gitlab/runner/php7.4/README.md | 0 .../gitlab/runner/php7.4/docker-compose.yml | 6 + .../gitlab/runner/php7.4/docker-entrypoint.sh | 22 ++ .../runner/php7.4/install-gitlab-runner.sh | 10 + .../gitlab/runner/php7.4/run-docker.sh | 7 + .../ecosystem/gitlab/runner/php8.0/Dockerfile | 82 +++++ linux/ecosystem/gitlab/runner/php8.0/Makefile | 19 ++ .../ecosystem/gitlab/runner/php8.0/README.md | 0 .../gitlab/runner/php8.0/docker-compose.yml | 6 + .../gitlab/runner/php8.0/docker-entrypoint.sh | 22 ++ .../runner/php8.0/install-gitlab-runner.sh | 10 + .../gitlab/runner/php8.0/run-docker.sh | 7 + .../ecosystem/gitlab/runner/php8.1/Dockerfile | 82 +++++ linux/ecosystem/gitlab/runner/php8.1/Makefile | 19 ++ .../ecosystem/gitlab/runner/php8.1/README.md | 0 .../gitlab/runner/php8.1/docker-compose.yml | 6 + .../gitlab/runner/php8.1/docker-entrypoint.sh | 22 ++ .../runner/php8.1/install-gitlab-runner.sh | 10 + .../gitlab/runner/php8.1/run-docker.sh | 7 + .../gitlab/runner/steam-sdk/Dockerfile | 26 ++ .../gitlab/runner/steam-sdk/Makefile | 19 ++ .../gitlab/runner/steam-sdk/README.md | 0 .../runner/steam-sdk/docker-compose.yml | 6 + .../teamcity/agent/amxx-sdk/Dockerfile | 6 +- .../teamcity/agent/android-sdk/Dockerfile | 2 +- .../teamcity/agent/atlassian-sdk/Dockerfile | 6 +- .../teamcity/agent/dotnet-sdk/Dockerfile | 6 +- .../teamcity/agent/latest/Dockerfile | 6 +- .../teamcity/agent/node12/Dockerfile | 6 +- .../teamcity/agent/node14/Dockerfile | 6 +- .../teamcity/agent/node15/Dockerfile | 6 +- .../teamcity/agent/node16/Dockerfile | 6 +- .../teamcity/agent/node17/Dockerfile | 6 +- .../teamcity/agent/node18/Dockerfile | 6 +- .../teamcity/agent/php7.2/Dockerfile | 6 +- .../teamcity/agent/php7.3/Dockerfile | 6 +- .../teamcity/agent/php7.4/Dockerfile | 6 +- .../teamcity/agent/php8.0/Dockerfile | 6 +- .../teamcity/agent/php8.1/Dockerfile | 6 +- .../teamcity/agent/steam-sdk/Dockerfile | 7 +- 100 files changed, 1838 insertions(+), 82 deletions(-) create mode 100644 linux/ecosystem/gitlab/runner/amxx-sdk/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/amxx-sdk/Makefile create mode 100644 linux/ecosystem/gitlab/runner/amxx-sdk/README.md create mode 100644 linux/ecosystem/gitlab/runner/amxx-sdk/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/android-sdk/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/android-sdk/Makefile create mode 100644 linux/ecosystem/gitlab/runner/android-sdk/README.md create mode 100644 linux/ecosystem/gitlab/runner/android-sdk/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/android-sdk/sdkman.sh create mode 100644 linux/ecosystem/gitlab/runner/atlassian-sdk/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/atlassian-sdk/Makefile create mode 100644 linux/ecosystem/gitlab/runner/atlassian-sdk/README.md create mode 100644 linux/ecosystem/gitlab/runner/atlassian-sdk/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/dotnet-sdk/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/dotnet-sdk/Makefile create mode 100644 linux/ecosystem/gitlab/runner/dotnet-sdk/README.md create mode 100644 linux/ecosystem/gitlab/runner/dotnet-sdk/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/dotnet-sdk/sources.list.d/sources.11.list create mode 100644 linux/ecosystem/gitlab/runner/node12/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node12/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node12/README.md create mode 100644 linux/ecosystem/gitlab/runner/node12/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/node14/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node14/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node14/README.md create mode 100644 linux/ecosystem/gitlab/runner/node14/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/node15/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node15/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node15/README.md create mode 100644 linux/ecosystem/gitlab/runner/node15/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/node16/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node16/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node16/README.md create mode 100644 linux/ecosystem/gitlab/runner/node16/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/node17/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node17/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node17/README.md create mode 100644 linux/ecosystem/gitlab/runner/node17/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/node18/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/node18/Makefile create mode 100644 linux/ecosystem/gitlab/runner/node18/README.md create mode 100644 linux/ecosystem/gitlab/runner/node18/docker-compose.yml create mode 100644 linux/ecosystem/gitlab/runner/php7.2/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/php7.2/Makefile create mode 100644 linux/ecosystem/gitlab/runner/php7.2/README.md create mode 100644 linux/ecosystem/gitlab/runner/php7.2/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/php7.2/docker-entrypoint.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.2/install-gitlab-runner.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.2/run-docker.sh create mode 100644 linux/ecosystem/gitlab/runner/php7.3/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/php7.3/Makefile create mode 100644 linux/ecosystem/gitlab/runner/php7.3/README.md create mode 100644 linux/ecosystem/gitlab/runner/php7.3/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/php7.3/docker-entrypoint.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.3/install-gitlab-runner.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.3/run-docker.sh create mode 100644 linux/ecosystem/gitlab/runner/php7.4/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/php7.4/Makefile create mode 100644 linux/ecosystem/gitlab/runner/php7.4/README.md create mode 100644 linux/ecosystem/gitlab/runner/php7.4/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/php7.4/docker-entrypoint.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.4/install-gitlab-runner.sh create mode 100755 linux/ecosystem/gitlab/runner/php7.4/run-docker.sh create mode 100644 linux/ecosystem/gitlab/runner/php8.0/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/php8.0/Makefile create mode 100644 linux/ecosystem/gitlab/runner/php8.0/README.md create mode 100644 linux/ecosystem/gitlab/runner/php8.0/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/php8.0/docker-entrypoint.sh create mode 100755 linux/ecosystem/gitlab/runner/php8.0/install-gitlab-runner.sh create mode 100755 linux/ecosystem/gitlab/runner/php8.0/run-docker.sh create mode 100644 linux/ecosystem/gitlab/runner/php8.1/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/php8.1/Makefile create mode 100644 linux/ecosystem/gitlab/runner/php8.1/README.md create mode 100644 linux/ecosystem/gitlab/runner/php8.1/docker-compose.yml create mode 100755 linux/ecosystem/gitlab/runner/php8.1/docker-entrypoint.sh create mode 100755 linux/ecosystem/gitlab/runner/php8.1/install-gitlab-runner.sh create mode 100755 linux/ecosystem/gitlab/runner/php8.1/run-docker.sh create mode 100644 linux/ecosystem/gitlab/runner/steam-sdk/Dockerfile create mode 100644 linux/ecosystem/gitlab/runner/steam-sdk/Makefile create mode 100644 linux/ecosystem/gitlab/runner/steam-sdk/README.md create mode 100644 linux/ecosystem/gitlab/runner/steam-sdk/docker-compose.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index d3a7d38e2..2c2f34031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -313,4 +313,6 @@ * default preinstalled packages to `balancer` and `websites` containers: `ca-certificates`, `apt-transport-https`, `mc`, `iputils-ping` and some other. * added support for additional locales to `balancer` and `websites` containers (default is `en_US.UTF-8`). * apt sources switched to `Yandex-Mirror`. +------------------------------------------------------------------- +## 2018 * 01/01/1970 - see commit history. sorry. diff --git a/Makefile b/Makefile index 87678026d..38c61200f 100644 --- a/Makefile +++ b/Makefile @@ -436,10 +436,26 @@ ecosystem-teamcity-agent-images: cd `pwd`/linux/ecosystem/teamcity/agent/php7.3 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/teamcity/agent/php7.4 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/teamcity/agent/php8.0 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/teamcity/agent/php8.1 && pwd && make build && make deploy cd `pwd`/linux/ecosystem/teamcity/agent/steam-sdk && pwd && make build && make deploy ecosystem-gitlab-runner-images: cd `pwd`/linux/ecosystem/gitlab/runner/latest && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/amxx-sdk && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/android-sdk && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/atlassian-sdk && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/dotnet-sdk && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node12 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node14 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node15 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node16 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node17 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/node18 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/php7.2 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/php7.3 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/php7.4 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/php8.1 && pwd && make build && make deploy + cd `pwd`/linux/ecosystem/gitlab/runner/steam-sdk && pwd && make build && make deploy ecosystem-nginx-images: cd `pwd`/linux/ecosystem/nginx/latest/mainline/main && pwd && make build && make deploy diff --git a/linux/ecosystem/gitlab/runner/amxx-sdk/Dockerfile b/linux/ecosystem/gitlab/runner/amxx-sdk/Dockerfile new file mode 100644 index 000000000..7ddedb46c --- /dev/null +++ b/linux/ecosystem/gitlab/runner/amxx-sdk/Dockerfile @@ -0,0 +1,40 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# teamcity AMXXModX setup +################################################################## +# +# Reserved for future +# export AMXX_CSTRIKE_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-cstrike-linux` && \ +# export AMXX_DOD_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-dod-linux` && \ +# export AMXX_ESF_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-esf-linux` && \ +# export AMXX_NS_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-ns-linux` && \ +# export AMXX_TFC_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-tfc-linux` && \ +# export AMXX_TS_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-base-linux` && \ + +# Install packages +ENV AMXX_VERSION=1.9 +ENV AMXX_INSTALL_PATH=/opt/amxmodx/$AMXX_VERSION +ENV AMXX_BIN_PATH=$AMXX_INSTALL_PATH/scripting +ENV PATH=$PATH:$AMXX_BIN_PATH +ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$AMXX_BIN_PATH + +RUN export AMXX_BASE_LATEST_VERSION=`curl -s https://www.amxmodx.org/amxxdrop/1.9/amxmodx-latest-base-linux` && \ + mkdir -p $AMXX_INSTALL_PATH && \ + curl -SL https://www.amxmodx.org/amxxdrop/{$AMXX_VERSION}/{$AMXX_BASE_LATEST_VERSION} -o /tmp/amxx_base_latest.tar.gz && \ + cd /tmp && tar -zxf /tmp/amxx_base_latest.tar.gz && cd / && \ + mv -f /tmp/addons/amxmodx/* $AMXX_INSTALL_PATH && \ + chmod +x $AMXX_BIN_PATH/amxxpc && \ + chmod +x $AMXX_BIN_PATH/compile.sh + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/amxx-sdk/Makefile b/linux/ecosystem/gitlab/runner/amxx-sdk/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/amxx-sdk/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/amxx-sdk/README.md b/linux/ecosystem/gitlab/runner/amxx-sdk/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/amxx-sdk/docker-compose.yml b/linux/ecosystem/gitlab/runner/amxx-sdk/docker-compose.yml new file mode 100644 index 000000000..f660dc4fd --- /dev/null +++ b/linux/ecosystem/gitlab/runner/amxx-sdk/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:amxx-sdk" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/android-sdk/Dockerfile b/linux/ecosystem/gitlab/runner/android-sdk/Dockerfile new file mode 100644 index 000000000..3b74b9e9a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/android-sdk/Dockerfile @@ -0,0 +1,64 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +ENV ANDROID_HOME=/usr/lib/android-sdk +ENV ANDROID_SDK_ROOT=/usr/lib/android-sdk + +ENV GRADLE_VERSION=7.4.2 +ENV GRADLE_LINK=https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-all.zip +ENV GRADLE_ROOT=/opt/gradle +ENV GRADLE_PATH=${GRADLE_ROOT}/gradle-${GRADLE_VERSION} +ENV GRADLE_BIN=$GRADLE_PATH/bin +ARG GRADLE_TEMP=/tmp/gradle.zip + +ENV KTC_VERSION=1.6.21 +ENV KTC_LINK=https://github.com/JetBrains/kotlin/releases/download/v${KTC_VERSION}/kotlin-compiler-${KTC_VERSION}.zip +ARG KTC_TEMP=/tmp/kotlinc.tgz +ENV KTC_ROOT=/opt/kotlin +ENV KTC_PATH=${KTC_ROOT}/kotlinc +ENV KTC_BIN=$KTC_PATH/bin + +ENV PATH=PATH=$PATH:$GRADLE_BIN:${KTC_BIN} + +################################################################## +# Android SDK +################################################################## +RUN apt update && \ + apt install -y --allow-unauthenticated \ + android-sdk \ + android-sdk-build-tools \ + android-sdk-platform-tools-common \ + android-sdk-platform-tools \ + adb fastboot f2fs-tools e2fsprogs libsqlite3-0 sqlite3 + +# Activate android sdk +RUN echo "24333f8a63b6825ea9c5514f83c2829b004d1fee" > /usr/lib/android-sdk/licenses/android-sdk-license + +################################################################## +# GRADLE +################################################################## +RUN mkdir -p $GRADLE_PATH +RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue $GRADLE_LINK -O $GRADLE_TEMP +RUN 7zz x $GRADLE_TEMP -o$GRADLE_ROOT +RUN chmod +x -R $GRADLE_BIN +RUN gradle -v + +################################################################## +# KOTLIN +################################################################## +RUN mkdir -p ${KTC_PATH} +RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue ${KTC_LINK} -O ${KTC_TEMP} +RUN 7zz x $KTC_TEMP -o$KTC_ROOT +RUN chmod +x -R ${KTC_BIN} +RUN kotlinc -version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* \ No newline at end of file diff --git a/linux/ecosystem/gitlab/runner/android-sdk/Makefile b/linux/ecosystem/gitlab/runner/android-sdk/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/android-sdk/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/android-sdk/README.md b/linux/ecosystem/gitlab/runner/android-sdk/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/android-sdk/docker-compose.yml b/linux/ecosystem/gitlab/runner/android-sdk/docker-compose.yml new file mode 100644 index 000000000..99f8eb3b0 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/android-sdk/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:android-sdk" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/android-sdk/sdkman.sh b/linux/ecosystem/gitlab/runner/android-sdk/sdkman.sh new file mode 100755 index 000000000..59b74df1e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/android-sdk/sdkman.sh @@ -0,0 +1,312 @@ +#!/bin/bash +# +# Copyright 2017 Marco Vermeulen +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + + +# install:- channel: stable; cliVersion: 5.15.0; cliNativeVersion: NA; api: https://api.sdkman.io/2 + +# Global variables +SDKMAN_SERVICE="https://api.sdkman.io/2" +SDKMAN_VERSION="5.15.0" +SDKMAN_PLATFORM=$(uname) + +if [ -z "$SDKMAN_DIR" ]; then + SDKMAN_DIR="$HOME/.sdkman" + SDKMAN_DIR_RAW='$HOME/.sdkman' +else + SDKMAN_DIR_RAW="$SDKMAN_DIR" +fi + +# Local variables +sdkman_tmp_folder="${SDKMAN_DIR}/tmp" +sdkman_zip_file="${sdkman_tmp_folder}/sdkman-${SDKMAN_VERSION}.zip" +sdkman_zip_base_folder="${sdkman_tmp_folder}/sdkman-${SDKMAN_VERSION}" +sdkman_ext_folder="${SDKMAN_DIR}/ext" +sdkman_etc_folder="${SDKMAN_DIR}/etc" +sdkman_var_folder="${SDKMAN_DIR}/var" +sdkman_archives_folder="${SDKMAN_DIR}/archives" +sdkman_candidates_folder="${SDKMAN_DIR}/candidates" +sdkman_config_file="${sdkman_etc_folder}/config" +sdkman_bash_profile="${HOME}/.bash_profile" +sdkman_profile="${HOME}/.profile" +sdkman_bashrc="${HOME}/.bashrc" +sdkman_zshrc="${ZDOTDIR:-${HOME}}/.zshrc" + +sdkman_init_snippet=$( cat << EOF +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="$SDKMAN_DIR_RAW" +[[ -s "${SDKMAN_DIR_RAW}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR_RAW}/bin/sdkman-init.sh" +EOF +) + +# OS specific support (must be 'true' or 'false'). +cygwin=false; +darwin=false; +solaris=false; +freebsd=false; +case "$(uname)" in + CYGWIN*) + cygwin=true + ;; + Darwin*) + darwin=true + ;; + SunOS*) + solaris=true + ;; + FreeBSD*) + freebsd=true +esac + +echo '' +echo ' -+syyyyyyys:' +echo ' `/yho:` -yd.' +echo ' `/yh/` +m.' +echo ' .oho. hy .`' +echo ' .sh/` :N` `-/o` `+dyyo:.' +echo ' .yh:` `M- `-/osysoym :hs` `-+sys: hhyssssssssy+' +echo ' .sh:` `N: ms/-`` yy.yh- -hy. `.N-````````+N.' +echo ' `od/` `N- -/oM- ddd+` `sd: hNNm -N:' +echo ' :do` .M. dMMM- `ms. /d+` `NMMs `do' +echo ' .yy- :N` ```mMMM. - -hy. /MMM: yh' +echo ' `+d+` `:/oo/` `-/osyh/ossssssdNMM` .sh: yMMN` /m.' +echo ' -dh- :ymNMMMMy `-/shmNm-`:N/-.`` `.sN /N- `NMMy .m/' +echo ' `oNs` -hysosmMMMMydmNmds+-.:ohm : sd` :MMM/ yy' +echo ' .hN+ /d: -MMMmhs/-.` .MMMh .ss+- `yy` sMMN` :N.' +echo ' :mN/ `N/ `o/-` :MMMo +MMMN- .` `ds mMMh do' +echo ' /NN/ `N+....--:/+oooosooo+:sMMM: hMMMM: `my .m+ -MMM+ :N.' +echo ' /NMo -+ooooo+/:-....`...:+hNMN. `NMMMd` .MM/ -m: oMMN. hs' +echo ' -NMd` :mm -MMMm- .s/ -MMm. /m- mMMd -N.' +echo ' `mMM/ .- /MMh. -dMo -MMMy od. .MMMs..---yh' +echo ' +MMM. sNo`.sNMM+ :MMMM/ sh`+MMMNmNm+++-' +echo ' mMMM- /--ohmMMM+ :MMMMm. `hyymmmdddo' +echo ' MMMMh. ```` `-+yy/`yMMM/ :MMMMMy -sm:.``..-:-.`' +echo ' dMMMMmo-.``````..-:/osyhddddho. `+shdh+. hMMM: :MmMMMM/ ./yy/` `:sys+/+sh/' +echo ' .dMMMMMMmdddddmmNMMMNNNNNMMMMMs sNdo- dMMM- `-/yd/MMMMm-:sy+. :hs- /N`' +echo ' `/ymNNNNNNNmmdys+/::----/dMMm: +m- mMMM+ohmo/.` sMMMMdo- .om: `sh' +echo ' `.-----+/.` `.-+hh/` `od. NMMNmds/ `mmy:` +mMy `:yy.' +echo ' /moyso+//+ossso:. .yy` `dy+:` .. :MMMN+---/oys:' +echo ' /+m: `.-:::-` /d+ +MMMMMMMNh:`' +echo ' +MN/ -yh. `+hddhy+.' +echo ' /MM+ .sh:' +echo ' :NMo -sh/' +echo ' -NMs `/yy:' +echo ' .NMy `:sh+.' +echo ' `mMm` ./yds-' +echo ' `dMMMmyo:-.````.-:oymNy:`' +echo ' +NMMMMMMMMMMMMMMMMms:`' +echo ' -+shmNMMMNmdy+:`' +echo '' +echo '' +echo ' Now attempting installation...' +echo '' +echo '' + +# Sanity checks + +echo "Looking for a previous installation of SDKMAN..." +if [ -d "$SDKMAN_DIR" ]; then + echo "SDKMAN found." + echo "" + echo "======================================================================================================" + echo " You already have SDKMAN installed." + echo " SDKMAN was found at:" + echo "" + echo " ${SDKMAN_DIR}" + echo "" + echo " Please consider running the following if you need to upgrade." + echo "" + echo " $ sdk selfupdate force" + echo "" + echo "======================================================================================================" + echo "" + exit 0 +fi + +echo "Looking for unzip..." +if ! command -v unzip > /dev/null; then + echo "Not found." + echo "======================================================================================================" + echo " Please install unzip on your system using your favourite package manager." + echo "" + echo " Restart after installing unzip." + echo "======================================================================================================" + echo "" + exit 1 +fi + +echo "Looking for zip..." +if ! command -v zip > /dev/null; then + echo "Not found." + echo "======================================================================================================" + echo " Please install zip on your system using your favourite package manager." + echo "" + echo " Restart after installing zip." + echo "======================================================================================================" + echo "" + exit 1 +fi + +echo "Looking for curl..." +if ! command -v curl > /dev/null; then + echo "Not found." + echo "" + echo "======================================================================================================" + echo " Please install curl on your system using your favourite package manager." + echo "" + echo " Restart after installing curl." + echo "======================================================================================================" + echo "" + exit 1 +fi + +if [[ "$solaris" == true ]]; then + echo "Looking for gsed..." + if [ -z $(which gsed) ]; then + echo "Not found." + echo "" + echo "======================================================================================================" + echo " Please install gsed on your solaris system." + echo "" + echo " SDKMAN uses gsed extensively." + echo "" + echo " Restart after installing gsed." + echo "======================================================================================================" + echo "" + exit 1 + fi +else + echo "Looking for sed..." + if [ -z $(command -v sed) ]; then + echo "Not found." + echo "" + echo "======================================================================================================" + echo " Please install sed on your system using your favourite package manager." + echo "" + echo " Restart after installing sed." + echo "======================================================================================================" + echo "" + exit 1 + fi +fi + +echo "Installing SDKMAN scripts..." + + +# Create directory structure + +echo "Create distribution directories..." +mkdir -p "$sdkman_tmp_folder" +mkdir -p "$sdkman_ext_folder" +mkdir -p "$sdkman_etc_folder" +mkdir -p "$sdkman_var_folder" +mkdir -p "$sdkman_archives_folder" +mkdir -p "$sdkman_candidates_folder" + +echo "Getting available candidates..." +SDKMAN_CANDIDATES_CSV=$(curl -s "${SDKMAN_SERVICE}/candidates/all") +echo "$SDKMAN_CANDIDATES_CSV" > "${SDKMAN_DIR}/var/candidates" + +echo "Prime the config file..." +touch "$sdkman_config_file" +echo "sdkman_auto_answer=false" >> "$sdkman_config_file" +if [ -z "$ZSH_VERSION" -a -z "$BASH_VERSION" ]; then + echo "sdkman_auto_complete=false" >> "$sdkman_config_file" +else + echo "sdkman_auto_complete=true" >> "$sdkman_config_file" +fi +echo "sdkman_auto_env=false" >> "$sdkman_config_file" +echo "sdkman_auto_update=true" >> "$sdkman_config_file" +echo "sdkman_beta_channel=false" >> "$sdkman_config_file" +echo "sdkman_checksum_enable=true" >> "$sdkman_config_file" +echo "sdkman_colour_enable=true" >> "$sdkman_config_file" +echo "sdkman_curl_connect_timeout=7" >> "$sdkman_config_file" +echo "sdkman_curl_max_time=10" >> "$sdkman_config_file" +echo "sdkman_debug_mode=false" >> "$sdkman_config_file" +echo "sdkman_insecure_ssl=false" >> "$sdkman_config_file" +echo "sdkman_rosetta2_compatible=false" >> "$sdkman_config_file" +echo "sdkman_selfupdate_feature=true" >> "$sdkman_config_file" + +echo "Download script archive..." +curl --location --progress-bar "${SDKMAN_SERVICE}/broker/download/sdkman/install/${SDKMAN_VERSION}/${SDKMAN_PLATFORM}" > "$sdkman_zip_file" + +ARCHIVE_OK=$(unzip -qt "$sdkman_zip_file" | grep 'No errors detected in compressed data') +if [[ -z "$ARCHIVE_OK" ]]; then + echo "Downloaded zip archive corrupt. Are you connected to the internet?" + echo "" + echo "If problems persist, please ask for help on our Slack:" + echo "* easy sign up: https://slack.sdkman.io/" + echo "* report on channel: https://sdkman.slack.com/app_redirect?channel=user-issues" + rm -rf "$SDKMAN_DIR" + exit 1 +fi + +echo "Extract script archive..." +if [[ "$cygwin" == 'true' ]]; then + echo "Cygwin detected - normalizing paths for unzip..." + sdkman_tmp_folder=$(cygpath -w "$sdkman_tmp_folder") + sdkman_zip_file=$(cygpath -w "$sdkman_zip_file") + sdkman_zip_base_folder=$(cygpath -w "$sdkman_zip_base_folder") +fi +unzip -qo "$sdkman_zip_file" -d "$sdkman_tmp_folder" + +echo "Install scripts..." +mv "${sdkman_zip_base_folder}/"* "$SDKMAN_DIR" +rm -rf "$sdkman_zip_base_folder" + +echo "Set version to $SDKMAN_VERSION ..." +echo "$SDKMAN_VERSION" > "${SDKMAN_DIR}/var/version" + + +if [[ $darwin == true ]]; then + touch "$sdkman_bash_profile" + echo "Attempt update of login bash profile on OSX..." + if [[ -z $(grep 'sdkman-init.sh' "$sdkman_bash_profile") ]]; then + echo -e "\n$sdkman_init_snippet" >> "$sdkman_bash_profile" + echo "Added sdkman init snippet to $sdkman_bash_profile" + fi +else + echo "Attempt update of interactive bash profile on regular UNIX..." + touch "${sdkman_bashrc}" + if [[ -z $(grep 'sdkman-init.sh' "$sdkman_bashrc") ]]; then + echo -e "\n$sdkman_init_snippet" >> "$sdkman_bashrc" + echo "Added sdkman init snippet to $sdkman_bashrc" + fi +fi + +echo "Attempt update of zsh profile..." +touch "$sdkman_zshrc" +if [[ -z $(grep 'sdkman-init.sh' "$sdkman_zshrc") ]]; then + echo -e "\n$sdkman_init_snippet" >> "$sdkman_zshrc" + echo "Updated existing ${sdkman_zshrc}" +fi + + + +echo -e "\n\n\nAll done!\n\n" + +echo "You are subscribed to the STABLE channel." + +echo "" +echo "Please open a new terminal, or run the following in the existing one:" +echo "" +echo " source \"${SDKMAN_DIR}/bin/sdkman-init.sh\"" +echo "" +echo "Then issue the following command:" +echo "" +echo " sdk help" +echo "" +echo "Enjoy!!!" diff --git a/linux/ecosystem/gitlab/runner/atlassian-sdk/Dockerfile b/linux/ecosystem/gitlab/runner/atlassian-sdk/Dockerfile new file mode 100644 index 000000000..d2e83cdd1 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/atlassian-sdk/Dockerfile @@ -0,0 +1,32 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# teamcity atlassian-sdk setup +################################################################## + +#Install packages +#RUN curl -SL https://packages.atlassian.com/atlassian-sdk-deb/debian/pool/contrib/a/atlassian-plugin-sdk/atlassian-plugin-sdk_8.0.16_all.deb -o /tmp/atlassian-plugin-sdk.deb && \ +# dpkg -i /tmp/atlassian-plugin-sdk.deb + +############################### +# https://community.atlassian.com/t5/Continuous-Delivery-questions/The-repository-https-packages-atlassian-com-atlassian-sdk-deb/qaq-p/1334014 +# +# https://community.developer.atlassian.com/t/the-repository-https-packages-atlassian-com-atlassian-sdk-deb-stable-release-is-not-signed/36901 +############################### +RUN curl -fsSL https://packages.atlassian.com/api/gpg/key/public | apt-key add - && \ + echo 'deb [trusted=yes] https://packages.atlassian.com/atlassian-sdk-deb stable contrib' > /etc/apt/sources.list.d/atlassian-sdk.list && \ + apt update --allow-insecure-repositories && \ + apt install -y --no-install-recommends --allow-unauthenticated \ + atlassian-plugin-sdk + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/atlassian-sdk/Makefile b/linux/ecosystem/gitlab/runner/atlassian-sdk/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/atlassian-sdk/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/atlassian-sdk/README.md b/linux/ecosystem/gitlab/runner/atlassian-sdk/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/atlassian-sdk/docker-compose.yml b/linux/ecosystem/gitlab/runner/atlassian-sdk/docker-compose.yml new file mode 100644 index 000000000..68abea155 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/atlassian-sdk/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:atlassian-sdk" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/dotnet-sdk/Dockerfile b/linux/ecosystem/gitlab/runner/dotnet-sdk/Dockerfile new file mode 100644 index 000000000..c8a71be3a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/dotnet-sdk/Dockerfile @@ -0,0 +1,99 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +COPY sources.list.d/sources.11.list /etc/apt/sources.list.d/sources.11.list + +################################################################## +# teamcity dotnet+powershell setup +################################################################## +# Opt out of the telemetry feature +ENV DOTNET_CLI_TELEMETRY_OPTOUT=true +# Disable first time experience +ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true +# Configure Kestrel web server to bind to port 80 when present +ENV ASPNETCORE_URLS=\ +# Enable detection of running in a container +ENV DOTNET_RUNNING_IN_CONTAINER=true +# Enable correct mode for dotnet watch (only mode supported in a container) +ENV DOTNET_USE_POLLING_FILE_WATCHER=true +# Skip extraction of XML docs - generally not useful within an image/container - helps perfomance +ENV NUGET_XMLDOC_MODE=skip +#unofficial support of openssl1.1 instead of 1.0 [https://stackoverflow.com/questions/51901359] +ENV CLR_OPENSSL_VERSION_OVERRIDE=45 +# PowerShell telemetry for docker image usage +ENV POWERSHELL_DISTRIBUTION_CHANNEL=PSDocker-DotnetSDK-Debian-10 +#Install packages +RUN curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - && \ + echo 'deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/debian/11/prod bullseye main' > /etc/apt/sources.list.d/microsoft.dotnet.list && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + libc6 \ + libgcc1 \ + libgssapi-krb5-2 \ +# libicu63 \ + liblttng-ust0 \ + libssl1.1 \ + libstdc++6 \ + zlib1g \ + dotnet-sdk-2.1 \ + dotnet-runtime-deps-2.1 \ + dotnet-runtime-2.1 \ + dotnet-hostfxr-2.1 \ + dotnet-sdk-3.1 \ + dotnet-targeting-pack-3.1 \ + dotnet-runtime-deps-3.1 \ + dotnet-runtime-3.1 \ + dotnet-hostfxr-3.1 \ + dotnet-apphost-pack-3.1 \ + dotnet-sdk-5.0 \ + dotnet-targeting-pack-5.0 \ + dotnet-runtime-deps-5.0 \ + dotnet-runtime-5.0 \ + dotnet-hostfxr-5.0 \ + dotnet-apphost-pack-5.0 \ + dotnet-sdk-6.0 \ + dotnet-targeting-pack-6.0 \ + dotnet-runtime-deps-6.0 \ + dotnet-runtime-6.0 \ + dotnet-hostfxr-6.0 \ + dotnet-apphost-pack-6.0 \ + dotnet-host \ + procdump \ +# procmon \ + powershell-preview \ + powershell + +# Trigger .NET CLI first run experience by running arbitrary cmd to populate local package cache +RUN dotnet help && \ + pwsh-preview -v && \ + pwsh -v + + +################################################################## +# Mono +################################################################## +#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ +# echo "deb https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list && \ +# echo "deb https://download.mono-project.com/repo/debian nightly-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-nightly.list && \ +# echo "deb https://download.mono-project.com/repo/debian preview-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list && \ +# apt-get update && \ +# apt-get install -y --allow-unauthenticated \ +# mono-complete \ +# mono-llvm-support \ +# mono-devel \ +# mono-dbg \ +# referenceassemblies-pcl \ +# ca-certificates-mono +# mono-xsp4 + + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/dotnet-sdk/Makefile b/linux/ecosystem/gitlab/runner/dotnet-sdk/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/dotnet-sdk/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/dotnet-sdk/README.md b/linux/ecosystem/gitlab/runner/dotnet-sdk/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/dotnet-sdk/docker-compose.yml b/linux/ecosystem/gitlab/runner/dotnet-sdk/docker-compose.yml new file mode 100644 index 000000000..2009b3956 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/dotnet-sdk/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/teamcity-agent:dotnet-sdk" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/dotnet-sdk/sources.list.d/sources.11.list b/linux/ecosystem/gitlab/runner/dotnet-sdk/sources.list.d/sources.11.list new file mode 100644 index 000000000..5a8c0081a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/dotnet-sdk/sources.list.d/sources.11.list @@ -0,0 +1,21 @@ +#main +deb http://httpredir.debian.org/debian/ bullseye main contrib non-free +deb-src http://httpredir.debian.org/debian/ bullseye main contrib non-free +deb http://httpredir.debian.org/debian/ bullseye-updates main contrib non-free +deb-src http://httpredir.debian.org/debian/ bullseye-updates main contrib non-free +deb http://httpredir.debian.org/debian/ bullseye-backports main contrib non-free +deb-src http://httpredir.debian.org/debian/ bullseye-backports main contrib non-free +deb http://httpredir.debian.org/debian/ bullseye-proposed-updates main contrib non-free +deb-src http://httpredir.debian.org/debian/ bullseye-proposed-updates main contrib non-free + +#security +deb http://httpredir.debian.org/debian-security/ bullseye-security main contrib non-free +deb-src http://httpredir.debian.org/debian-security/ bullseye-security main contrib non-free +deb http://httpredir.debian.org/debian-security/ bullseye-security/updates main contrib non-free +deb-src http://httpredir.debian.org/debian-security/ bullseye-security/updates main contrib non-free + +##multimedia +# deb http://httpredir.debian.org/debian-multimedia/ bullseye main non-free +# deb-src http://httpredir.debian.org/debian-multimedia/ bullseye main non-free +# deb http://httpredir.debian.org/debian-multimedia/ bullseye-backports main +# deb-src http://httpredir.debian.org/debian-multimedia/ bullseye-backports main diff --git a/linux/ecosystem/gitlab/runner/node12/Dockerfile b/linux/ecosystem/gitlab/runner/node12/Dockerfile new file mode 100644 index 000000000..c5af56287 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node12/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 12.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* \ No newline at end of file diff --git a/linux/ecosystem/gitlab/runner/node12/Makefile b/linux/ecosystem/gitlab/runner/node12/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node12/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node12/README.md b/linux/ecosystem/gitlab/runner/node12/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node12/docker-compose.yml b/linux/ecosystem/gitlab/runner/node12/docker-compose.yml new file mode 100644 index 000000000..c416a95a4 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node12/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node12" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/node14/Dockerfile b/linux/ecosystem/gitlab/runner/node14/Dockerfile new file mode 100644 index 000000000..648bcf55a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node14/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 14.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/node14/Makefile b/linux/ecosystem/gitlab/runner/node14/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node14/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node14/README.md b/linux/ecosystem/gitlab/runner/node14/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node14/docker-compose.yml b/linux/ecosystem/gitlab/runner/node14/docker-compose.yml new file mode 100644 index 000000000..96cc3f1e9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node14/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node14" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/node15/Dockerfile b/linux/ecosystem/gitlab/runner/node15/Dockerfile new file mode 100644 index 000000000..b061bccf7 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node15/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 15.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_15.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/node15/Makefile b/linux/ecosystem/gitlab/runner/node15/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node15/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node15/README.md b/linux/ecosystem/gitlab/runner/node15/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node15/docker-compose.yml b/linux/ecosystem/gitlab/runner/node15/docker-compose.yml new file mode 100644 index 000000000..667eeefee --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node15/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node15" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/node16/Dockerfile b/linux/ecosystem/gitlab/runner/node16/Dockerfile new file mode 100644 index 000000000..e091acf29 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node16/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 16.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/node16/Makefile b/linux/ecosystem/gitlab/runner/node16/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node16/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node16/README.md b/linux/ecosystem/gitlab/runner/node16/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node16/docker-compose.yml b/linux/ecosystem/gitlab/runner/node16/docker-compose.yml new file mode 100644 index 000000000..bb9739871 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node16/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node16" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/node17/Dockerfile b/linux/ecosystem/gitlab/runner/node17/Dockerfile new file mode 100644 index 000000000..6c3b167a2 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node17/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 17.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_17.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/node17/Makefile b/linux/ecosystem/gitlab/runner/node17/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node17/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node17/README.md b/linux/ecosystem/gitlab/runner/node17/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node17/docker-compose.yml b/linux/ecosystem/gitlab/runner/node17/docker-compose.yml new file mode 100644 index 000000000..bbf089280 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node17/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node17" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/node18/Dockerfile b/linux/ecosystem/gitlab/runner/node18/Dockerfile new file mode 100644 index 000000000..838d81bfc --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node18/Dockerfile @@ -0,0 +1,34 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# Node.js 18.x +################################################################## +RUN groupadd node && \ + useradd --gid node --shell /bin/bash --create-home node + +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ + curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && \ + echo "deb https://nightly.yarnpkg.com/debian/ nightly main" > /etc/apt/sources.list.d/yarn.list && \ + apt-get update && \ + apt-get install -y nodejs yarn + +# curl -L https://www.npmjs.com/install.sh | sh +# npm install -g npm + +RUN echo "=============================================" && \ + echo node $(node --version) && \ + echo npm $(npm --version) && \ + echo yarn $(yarn --version) && \ + echo "=============================================" + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/node18/Makefile b/linux/ecosystem/gitlab/runner/node18/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node18/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/node18/README.md b/linux/ecosystem/gitlab/runner/node18/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/node18/docker-compose.yml b/linux/ecosystem/gitlab/runner/node18/docker-compose.yml new file mode 100644 index 000000000..d73b7dc1c --- /dev/null +++ b/linux/ecosystem/gitlab/runner/node18/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:node18" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php7.2/Dockerfile b/linux/ecosystem/gitlab/runner/php7.2/Dockerfile new file mode 100644 index 000000000..4883f8fd0 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/Dockerfile @@ -0,0 +1,82 @@ +FROM epicmorg/php:php7.2 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# php +################################################################## +RUN php -m && \ + php -v + +ENV GITLAB_RUNNER_HOME=/opt/gitlab-runner +ENV GITLAB_RUNNER_CONF=/etc/gitlab-runner +ENV GIT_SSH_VARIANT=ssh +RUN mkdir -p ${GITLAB_RUNNER_HOME} ${GITLAB_RUNNER_CONF} ${GITLAB_RUNNER_CONF}/certs && \ + chmod -R 700 /etc/gitlab-runner + +################################################################## +# docker setup +################################################################## + +#Install packages +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + echo 'deb https://download.docker.com/linux/debian bullseye test' > /etc/apt/sources.list.d/docker.list && \ + echo 'deb https://download.docker.com/linux/debian bullseye nightly' >> /etc/apt/sources.list.d/docker.list && \ + apt-cache policy docker-ce && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + docker-ce \ + docker-ce-cli \ + containerd.io systemd && \ + systemctl disable docker && \ + docker --version + +COPY run-docker.sh /services/run-docker.sh +RUN chmod +x /services/run-docker.sh && \ + sync + +################################################################## +# docker compose setup +################################################################## + +#Install packages +RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ + curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ + chmod +x /usr/local/bin/docker-compose && \ + docker-compose --version + +################################################################## +# gitlab runner setup +################################################################## +COPY install-gitlab-runner.sh /tmp/install-gitlab-runner.sh +RUN cd /tmp && \ + chmod +x /tmp/install-gitlab-runner.sh && \ + bash /tmp/install-gitlab-runner.sh && \ +# useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \ + usermod -aG docker gitlab-runner && \ + cat /etc/passwd && \ + gitlab-runner --version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +#Final config +STOPSIGNAL SIGQUIT +VOLUME ["${GITLAB_RUNNER_CONF}", "${GITLAB_RUNNER_HOME}", "/var/lib/docker"] +WORKDIR ${GITLAB_RUNNER_HOME} + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +ENTRYPOINT ["/usr/bin/dumb-init", "docker-entrypoint.sh"] +CMD ["run", "--user=gitlab-runner", "--working-directory=${GITLAB_RUNNER_HOME}"] + diff --git a/linux/ecosystem/gitlab/runner/php7.2/Makefile b/linux/ecosystem/gitlab/runner/php7.2/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/php7.2/README.md b/linux/ecosystem/gitlab/runner/php7.2/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/php7.2/docker-compose.yml b/linux/ecosystem/gitlab/runner/php7.2/docker-compose.yml new file mode 100644 index 000000000..0ebba0a23 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:php7.2" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php7.2/docker-entrypoint.sh b/linux/ecosystem/gitlab/runner/php7.2/docker-entrypoint.sh new file mode 100755 index 000000000..53350fa8f --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# gitlab-runner data directory +DATA_DIR="/etc/gitlab-runner" +CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} +# custom certificate authority path +CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} +LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" + +update_ca() { + echo "Updating CA certificates..." + cp "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" + update-ca-certificates --fresh >/dev/null +} + +if [ -f "${CA_CERTIFICATES_PATH}" ]; then + # update the ca if the custom ca is different than the current + cmp --silent "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" || update_ca +fi + +# launch gitlab-runner passing all arguments +exec gitlab-runner "$@" diff --git a/linux/ecosystem/gitlab/runner/php7.2/install-gitlab-runner.sh b/linux/ecosystem/gitlab/runner/php7.2/install-gitlab-runner.sh new file mode 100755 index 000000000..833bf928e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/install-gitlab-runner.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eEo pipefail + +wget --no-check-certificate -c https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb --random-wait -O /tmp/gitlab-runner.deb + +dpkg -i "/tmp/gitlab-runner.deb" +apt-get update +apt-get -f install -y +rm -rfv /var/lib/apt/lists/* +rm -rfv "/tmp/gitlab-runner.deb" diff --git a/linux/ecosystem/gitlab/runner/php7.2/run-docker.sh b/linux/ecosystem/gitlab/runner/php7.2/run-docker.sh new file mode 100755 index 000000000..41b5e68e5 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.2/run-docker.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + rm /var/run/docker.pid 2>/dev/null + service docker start + echo "Docker daemon started" +fi diff --git a/linux/ecosystem/gitlab/runner/php7.3/Dockerfile b/linux/ecosystem/gitlab/runner/php7.3/Dockerfile new file mode 100644 index 000000000..8504eca93 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/Dockerfile @@ -0,0 +1,82 @@ +FROM epicmorg/php:php7.3 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# php +################################################################## +RUN php -m && \ + php -v + +ENV GITLAB_RUNNER_HOME=/opt/gitlab-runner +ENV GITLAB_RUNNER_CONF=/etc/gitlab-runner +ENV GIT_SSH_VARIANT=ssh +RUN mkdir -p ${GITLAB_RUNNER_HOME} ${GITLAB_RUNNER_CONF} ${GITLAB_RUNNER_CONF}/certs && \ + chmod -R 700 /etc/gitlab-runner + +################################################################## +# docker setup +################################################################## + +#Install packages +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + echo 'deb https://download.docker.com/linux/debian bullseye test' > /etc/apt/sources.list.d/docker.list && \ + echo 'deb https://download.docker.com/linux/debian bullseye nightly' >> /etc/apt/sources.list.d/docker.list && \ + apt-cache policy docker-ce && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + docker-ce \ + docker-ce-cli \ + containerd.io systemd && \ + systemctl disable docker && \ + docker --version + +COPY run-docker.sh /services/run-docker.sh +RUN chmod +x /services/run-docker.sh && \ + sync + +################################################################## +# docker compose setup +################################################################## + +#Install packages +RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ + curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ + chmod +x /usr/local/bin/docker-compose && \ + docker-compose --version + +################################################################## +# gitlab runner setup +################################################################## +COPY install-gitlab-runner.sh /tmp/install-gitlab-runner.sh +RUN cd /tmp && \ + chmod +x /tmp/install-gitlab-runner.sh && \ + bash /tmp/install-gitlab-runner.sh && \ +# useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \ + usermod -aG docker gitlab-runner && \ + cat /etc/passwd && \ + gitlab-runner --version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +#Final config +STOPSIGNAL SIGQUIT +VOLUME ["${GITLAB_RUNNER_CONF}", "${GITLAB_RUNNER_HOME}", "/var/lib/docker"] +WORKDIR ${GITLAB_RUNNER_HOME} + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +ENTRYPOINT ["/usr/bin/dumb-init", "docker-entrypoint.sh"] +CMD ["run", "--user=gitlab-runner", "--working-directory=${GITLAB_RUNNER_HOME}"] + diff --git a/linux/ecosystem/gitlab/runner/php7.3/Makefile b/linux/ecosystem/gitlab/runner/php7.3/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/php7.3/README.md b/linux/ecosystem/gitlab/runner/php7.3/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/php7.3/docker-compose.yml b/linux/ecosystem/gitlab/runner/php7.3/docker-compose.yml new file mode 100644 index 000000000..493b87b84 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:php7.3" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php7.3/docker-entrypoint.sh b/linux/ecosystem/gitlab/runner/php7.3/docker-entrypoint.sh new file mode 100755 index 000000000..53350fa8f --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# gitlab-runner data directory +DATA_DIR="/etc/gitlab-runner" +CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} +# custom certificate authority path +CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} +LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" + +update_ca() { + echo "Updating CA certificates..." + cp "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" + update-ca-certificates --fresh >/dev/null +} + +if [ -f "${CA_CERTIFICATES_PATH}" ]; then + # update the ca if the custom ca is different than the current + cmp --silent "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" || update_ca +fi + +# launch gitlab-runner passing all arguments +exec gitlab-runner "$@" diff --git a/linux/ecosystem/gitlab/runner/php7.3/install-gitlab-runner.sh b/linux/ecosystem/gitlab/runner/php7.3/install-gitlab-runner.sh new file mode 100755 index 000000000..833bf928e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/install-gitlab-runner.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eEo pipefail + +wget --no-check-certificate -c https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb --random-wait -O /tmp/gitlab-runner.deb + +dpkg -i "/tmp/gitlab-runner.deb" +apt-get update +apt-get -f install -y +rm -rfv /var/lib/apt/lists/* +rm -rfv "/tmp/gitlab-runner.deb" diff --git a/linux/ecosystem/gitlab/runner/php7.3/run-docker.sh b/linux/ecosystem/gitlab/runner/php7.3/run-docker.sh new file mode 100755 index 000000000..41b5e68e5 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.3/run-docker.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + rm /var/run/docker.pid 2>/dev/null + service docker start + echo "Docker daemon started" +fi diff --git a/linux/ecosystem/gitlab/runner/php7.4/Dockerfile b/linux/ecosystem/gitlab/runner/php7.4/Dockerfile new file mode 100644 index 000000000..ac1f7cc8a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/Dockerfile @@ -0,0 +1,82 @@ +FROM epicmorg/php:php7.4 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# php +################################################################## +RUN php -m && \ + php -v + +ENV GITLAB_RUNNER_HOME=/opt/gitlab-runner +ENV GITLAB_RUNNER_CONF=/etc/gitlab-runner +ENV GIT_SSH_VARIANT=ssh +RUN mkdir -p ${GITLAB_RUNNER_HOME} ${GITLAB_RUNNER_CONF} ${GITLAB_RUNNER_CONF}/certs && \ + chmod -R 700 /etc/gitlab-runner + +################################################################## +# docker setup +################################################################## + +#Install packages +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + echo 'deb https://download.docker.com/linux/debian bullseye test' > /etc/apt/sources.list.d/docker.list && \ + echo 'deb https://download.docker.com/linux/debian bullseye nightly' >> /etc/apt/sources.list.d/docker.list && \ + apt-cache policy docker-ce && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + docker-ce \ + docker-ce-cli \ + containerd.io systemd && \ + systemctl disable docker && \ + docker --version + +COPY run-docker.sh /services/run-docker.sh +RUN chmod +x /services/run-docker.sh && \ + sync + +################################################################## +# docker compose setup +################################################################## + +#Install packages +RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ + curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ + chmod +x /usr/local/bin/docker-compose && \ + docker-compose --version + +################################################################## +# gitlab runner setup +################################################################## +COPY install-gitlab-runner.sh /tmp/install-gitlab-runner.sh +RUN cd /tmp && \ + chmod +x /tmp/install-gitlab-runner.sh && \ + bash /tmp/install-gitlab-runner.sh && \ +# useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \ + usermod -aG docker gitlab-runner && \ + cat /etc/passwd && \ + gitlab-runner --version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +#Final config +STOPSIGNAL SIGQUIT +VOLUME ["${GITLAB_RUNNER_CONF}", "${GITLAB_RUNNER_HOME}", "/var/lib/docker"] +WORKDIR ${GITLAB_RUNNER_HOME} + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +ENTRYPOINT ["/usr/bin/dumb-init", "docker-entrypoint.sh"] +CMD ["run", "--user=gitlab-runner", "--working-directory=${GITLAB_RUNNER_HOME}"] + diff --git a/linux/ecosystem/gitlab/runner/php7.4/Makefile b/linux/ecosystem/gitlab/runner/php7.4/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/php7.4/README.md b/linux/ecosystem/gitlab/runner/php7.4/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/php7.4/docker-compose.yml b/linux/ecosystem/gitlab/runner/php7.4/docker-compose.yml new file mode 100644 index 000000000..1ecbac8a7 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:php7.4" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php7.4/docker-entrypoint.sh b/linux/ecosystem/gitlab/runner/php7.4/docker-entrypoint.sh new file mode 100755 index 000000000..53350fa8f --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# gitlab-runner data directory +DATA_DIR="/etc/gitlab-runner" +CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} +# custom certificate authority path +CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} +LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" + +update_ca() { + echo "Updating CA certificates..." + cp "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" + update-ca-certificates --fresh >/dev/null +} + +if [ -f "${CA_CERTIFICATES_PATH}" ]; then + # update the ca if the custom ca is different than the current + cmp --silent "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" || update_ca +fi + +# launch gitlab-runner passing all arguments +exec gitlab-runner "$@" diff --git a/linux/ecosystem/gitlab/runner/php7.4/install-gitlab-runner.sh b/linux/ecosystem/gitlab/runner/php7.4/install-gitlab-runner.sh new file mode 100755 index 000000000..833bf928e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/install-gitlab-runner.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eEo pipefail + +wget --no-check-certificate -c https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb --random-wait -O /tmp/gitlab-runner.deb + +dpkg -i "/tmp/gitlab-runner.deb" +apt-get update +apt-get -f install -y +rm -rfv /var/lib/apt/lists/* +rm -rfv "/tmp/gitlab-runner.deb" diff --git a/linux/ecosystem/gitlab/runner/php7.4/run-docker.sh b/linux/ecosystem/gitlab/runner/php7.4/run-docker.sh new file mode 100755 index 000000000..41b5e68e5 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php7.4/run-docker.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + rm /var/run/docker.pid 2>/dev/null + service docker start + echo "Docker daemon started" +fi diff --git a/linux/ecosystem/gitlab/runner/php8.0/Dockerfile b/linux/ecosystem/gitlab/runner/php8.0/Dockerfile new file mode 100644 index 000000000..eab9db120 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/Dockerfile @@ -0,0 +1,82 @@ +FROM epicmorg/php:php8.0 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# php +################################################################## +RUN php -m && \ + php -v + +ENV GITLAB_RUNNER_HOME=/opt/gitlab-runner +ENV GITLAB_RUNNER_CONF=/etc/gitlab-runner +ENV GIT_SSH_VARIANT=ssh +RUN mkdir -p ${GITLAB_RUNNER_HOME} ${GITLAB_RUNNER_CONF} ${GITLAB_RUNNER_CONF}/certs && \ + chmod -R 700 /etc/gitlab-runner + +################################################################## +# docker setup +################################################################## + +#Install packages +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + echo 'deb https://download.docker.com/linux/debian bullseye test' > /etc/apt/sources.list.d/docker.list && \ + echo 'deb https://download.docker.com/linux/debian bullseye nightly' >> /etc/apt/sources.list.d/docker.list && \ + apt-cache policy docker-ce && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + docker-ce \ + docker-ce-cli \ + containerd.io systemd && \ + systemctl disable docker && \ + docker --version + +COPY run-docker.sh /services/run-docker.sh +RUN chmod +x /services/run-docker.sh && \ + sync + +################################################################## +# docker compose setup +################################################################## + +#Install packages +RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ + curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ + chmod +x /usr/local/bin/docker-compose && \ + docker-compose --version + +################################################################## +# gitlab runner setup +################################################################## +COPY install-gitlab-runner.sh /tmp/install-gitlab-runner.sh +RUN cd /tmp && \ + chmod +x /tmp/install-gitlab-runner.sh && \ + bash /tmp/install-gitlab-runner.sh && \ +# useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \ + usermod -aG docker gitlab-runner && \ + cat /etc/passwd && \ + gitlab-runner --version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +#Final config +STOPSIGNAL SIGQUIT +VOLUME ["${GITLAB_RUNNER_CONF}", "${GITLAB_RUNNER_HOME}", "/var/lib/docker"] +WORKDIR ${GITLAB_RUNNER_HOME} + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +ENTRYPOINT ["/usr/bin/dumb-init", "docker-entrypoint.sh"] +CMD ["run", "--user=gitlab-runner", "--working-directory=${GITLAB_RUNNER_HOME}"] + diff --git a/linux/ecosystem/gitlab/runner/php8.0/Makefile b/linux/ecosystem/gitlab/runner/php8.0/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/php8.0/README.md b/linux/ecosystem/gitlab/runner/php8.0/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/php8.0/docker-compose.yml b/linux/ecosystem/gitlab/runner/php8.0/docker-compose.yml new file mode 100644 index 000000000..5236a4eab --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:php8.0" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php8.0/docker-entrypoint.sh b/linux/ecosystem/gitlab/runner/php8.0/docker-entrypoint.sh new file mode 100755 index 000000000..53350fa8f --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# gitlab-runner data directory +DATA_DIR="/etc/gitlab-runner" +CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} +# custom certificate authority path +CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} +LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" + +update_ca() { + echo "Updating CA certificates..." + cp "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" + update-ca-certificates --fresh >/dev/null +} + +if [ -f "${CA_CERTIFICATES_PATH}" ]; then + # update the ca if the custom ca is different than the current + cmp --silent "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" || update_ca +fi + +# launch gitlab-runner passing all arguments +exec gitlab-runner "$@" diff --git a/linux/ecosystem/gitlab/runner/php8.0/install-gitlab-runner.sh b/linux/ecosystem/gitlab/runner/php8.0/install-gitlab-runner.sh new file mode 100755 index 000000000..833bf928e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/install-gitlab-runner.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eEo pipefail + +wget --no-check-certificate -c https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb --random-wait -O /tmp/gitlab-runner.deb + +dpkg -i "/tmp/gitlab-runner.deb" +apt-get update +apt-get -f install -y +rm -rfv /var/lib/apt/lists/* +rm -rfv "/tmp/gitlab-runner.deb" diff --git a/linux/ecosystem/gitlab/runner/php8.0/run-docker.sh b/linux/ecosystem/gitlab/runner/php8.0/run-docker.sh new file mode 100755 index 000000000..41b5e68e5 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.0/run-docker.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + rm /var/run/docker.pid 2>/dev/null + service docker start + echo "Docker daemon started" +fi diff --git a/linux/ecosystem/gitlab/runner/php8.1/Dockerfile b/linux/ecosystem/gitlab/runner/php8.1/Dockerfile new file mode 100644 index 000000000..b1c37c44a --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/Dockerfile @@ -0,0 +1,82 @@ +FROM epicmorg/php:php8.1 +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# php +################################################################## +RUN php -m && \ + php -v + +ENV GITLAB_RUNNER_HOME=/opt/gitlab-runner +ENV GITLAB_RUNNER_CONF=/etc/gitlab-runner +ENV GIT_SSH_VARIANT=ssh +RUN mkdir -p ${GITLAB_RUNNER_HOME} ${GITLAB_RUNNER_CONF} ${GITLAB_RUNNER_CONF}/certs && \ + chmod -R 700 /etc/gitlab-runner + +################################################################## +# docker setup +################################################################## + +#Install packages +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \ + echo 'deb https://download.docker.com/linux/debian bullseye test' > /etc/apt/sources.list.d/docker.list && \ + echo 'deb https://download.docker.com/linux/debian bullseye nightly' >> /etc/apt/sources.list.d/docker.list && \ + apt-cache policy docker-ce && \ + apt-get update && \ + apt-get install -y --no-install-recommends --allow-unauthenticated \ + docker-ce \ + docker-ce-cli \ + containerd.io systemd && \ + systemctl disable docker && \ + docker --version + +COPY run-docker.sh /services/run-docker.sh +RUN chmod +x /services/run-docker.sh && \ + sync + +################################################################## +# docker compose setup +################################################################## + +#Install packages +RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \ + echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \ + curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \ + chmod +x /usr/local/bin/docker-compose && \ + docker-compose --version + +################################################################## +# gitlab runner setup +################################################################## +COPY install-gitlab-runner.sh /tmp/install-gitlab-runner.sh +RUN cd /tmp && \ + chmod +x /tmp/install-gitlab-runner.sh && \ + bash /tmp/install-gitlab-runner.sh && \ +# useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash && \ + usermod -aG docker gitlab-runner && \ + cat /etc/passwd && \ + gitlab-runner --version + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* + +#Final config +STOPSIGNAL SIGQUIT +VOLUME ["${GITLAB_RUNNER_CONF}", "${GITLAB_RUNNER_HOME}", "/var/lib/docker"] +WORKDIR ${GITLAB_RUNNER_HOME} + +# Add image configuration and scripts +COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh +RUN chmod 755 /usr/bin/docker-entrypoint.sh + +ENTRYPOINT ["/usr/bin/dumb-init", "docker-entrypoint.sh"] +CMD ["run", "--user=gitlab-runner", "--working-directory=${GITLAB_RUNNER_HOME}"] + diff --git a/linux/ecosystem/gitlab/runner/php8.1/Makefile b/linux/ecosystem/gitlab/runner/php8.1/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/php8.1/README.md b/linux/ecosystem/gitlab/runner/php8.1/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/php8.1/docker-compose.yml b/linux/ecosystem/gitlab/runner/php8.1/docker-compose.yml new file mode 100644 index 000000000..f7a088686 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:php8.1" + build: + context: . diff --git a/linux/ecosystem/gitlab/runner/php8.1/docker-entrypoint.sh b/linux/ecosystem/gitlab/runner/php8.1/docker-entrypoint.sh new file mode 100755 index 000000000..53350fa8f --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# gitlab-runner data directory +DATA_DIR="/etc/gitlab-runner" +CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} +# custom certificate authority path +CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} +LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" + +update_ca() { + echo "Updating CA certificates..." + cp "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" + update-ca-certificates --fresh >/dev/null +} + +if [ -f "${CA_CERTIFICATES_PATH}" ]; then + # update the ca if the custom ca is different than the current + cmp --silent "${CA_CERTIFICATES_PATH}" "${LOCAL_CA_PATH}" || update_ca +fi + +# launch gitlab-runner passing all arguments +exec gitlab-runner "$@" diff --git a/linux/ecosystem/gitlab/runner/php8.1/install-gitlab-runner.sh b/linux/ecosystem/gitlab/runner/php8.1/install-gitlab-runner.sh new file mode 100755 index 000000000..833bf928e --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/install-gitlab-runner.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eEo pipefail + +wget --no-check-certificate -c https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_amd64.deb --random-wait -O /tmp/gitlab-runner.deb + +dpkg -i "/tmp/gitlab-runner.deb" +apt-get update +apt-get -f install -y +rm -rfv /var/lib/apt/lists/* +rm -rfv "/tmp/gitlab-runner.deb" diff --git a/linux/ecosystem/gitlab/runner/php8.1/run-docker.sh b/linux/ecosystem/gitlab/runner/php8.1/run-docker.sh new file mode 100755 index 000000000..41b5e68e5 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/php8.1/run-docker.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$DOCKER_IN_DOCKER" = "start" ] ; then + rm /var/run/docker.pid 2>/dev/null + service docker start + echo "Docker daemon started" +fi diff --git a/linux/ecosystem/gitlab/runner/steam-sdk/Dockerfile b/linux/ecosystem/gitlab/runner/steam-sdk/Dockerfile new file mode 100644 index 000000000..a9170ed5d --- /dev/null +++ b/linux/ecosystem/gitlab/runner/steam-sdk/Dockerfile @@ -0,0 +1,26 @@ +FROM epicmorg/gitlab-runner:latest +LABEL maintainer="EpicMorg DevTeam, developer@epicm.org" +ARG DEBIAN_FRONTEND=noninteractive + +################################################################## +# steam runtime and ssdk +################################################################## +RUN cd / && \ + sudo mkdir valve && \ + cd valve && \ + sudo wget http://media.steampowered.com/client/runtime/steam-runtime-sdk_latest.tar.xz && \ + sudo tar xvf steam-runtime-sdk_latest.tar.xz && \ + sudo mv steam-runtime-sdk_2013-09-05 steam-runtime && \ + sudo chown root:root * -R && \ + cd steam-runtime && \ + printf '%s\n' 3 1 Y Y Y | ./setup.sh + +################################################################## +# cleaninig up +################################################################## +RUN apt clean -y && \ + apt-get clean all && \ + apt autoclean -y && \ + rm -rfv /var/lib/apt/lists/* && \ + rm -rfv /var/cache/apt/archives/*.deb && \ + rm -rfv /tmp/* diff --git a/linux/ecosystem/gitlab/runner/steam-sdk/Makefile b/linux/ecosystem/gitlab/runner/steam-sdk/Makefile new file mode 100644 index 000000000..9ef622aa9 --- /dev/null +++ b/linux/ecosystem/gitlab/runner/steam-sdk/Makefile @@ -0,0 +1,19 @@ +all: app + +app: + make build + make deploy + make clean + +build: + docker-compose build --compress --parallel --progress plain + +deploy: + docker-compose push + +clean: + docker container prune -f + docker image prune -f + docker network prune -f + docker volume prune -f + docker system prune -af diff --git a/linux/ecosystem/gitlab/runner/steam-sdk/README.md b/linux/ecosystem/gitlab/runner/steam-sdk/README.md new file mode 100644 index 000000000..e69de29bb diff --git a/linux/ecosystem/gitlab/runner/steam-sdk/docker-compose.yml b/linux/ecosystem/gitlab/runner/steam-sdk/docker-compose.yml new file mode 100644 index 000000000..3258c28db --- /dev/null +++ b/linux/ecosystem/gitlab/runner/steam-sdk/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + app: + image: "epicmorg/gitlab-runner:steam-sdk" + build: + context: . diff --git a/linux/ecosystem/teamcity/agent/amxx-sdk/Dockerfile b/linux/ecosystem/teamcity/agent/amxx-sdk/Dockerfile index 037b06de6..bc9e80a6b 100644 --- a/linux/ecosystem/teamcity/agent/amxx-sdk/Dockerfile +++ b/linux/ecosystem/teamcity/agent/amxx-sdk/Dockerfile @@ -37,8 +37,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/android-sdk/Dockerfile b/linux/ecosystem/teamcity/agent/android-sdk/Dockerfile index 89a3fb661..4f87c0c01 100644 --- a/linux/ecosystem/teamcity/agent/android-sdk/Dockerfile +++ b/linux/ecosystem/teamcity/agent/android-sdk/Dockerfile @@ -61,4 +61,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/* \ No newline at end of file + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/atlassian-sdk/Dockerfile b/linux/ecosystem/teamcity/agent/atlassian-sdk/Dockerfile index bb607345e..70186c933 100644 --- a/linux/ecosystem/teamcity/agent/atlassian-sdk/Dockerfile +++ b/linux/ecosystem/teamcity/agent/atlassian-sdk/Dockerfile @@ -29,8 +29,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/dotnet-sdk/Dockerfile b/linux/ecosystem/teamcity/agent/dotnet-sdk/Dockerfile index 1258ba504..d14b35235 100644 --- a/linux/ecosystem/teamcity/agent/dotnet-sdk/Dockerfile +++ b/linux/ecosystem/teamcity/agent/dotnet-sdk/Dockerfile @@ -96,8 +96,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/latest/Dockerfile b/linux/ecosystem/teamcity/agent/latest/Dockerfile index e611ef2e7..2723c1609 100644 --- a/linux/ecosystem/teamcity/agent/latest/Dockerfile +++ b/linux/ecosystem/teamcity/agent/latest/Dockerfile @@ -83,11 +83,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/node12/Dockerfile b/linux/ecosystem/teamcity/agent/node12/Dockerfile index d0438e0ea..319e02c86 100644 --- a/linux/ecosystem/teamcity/agent/node12/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node12/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/node14/Dockerfile b/linux/ecosystem/teamcity/agent/node14/Dockerfile index aa868d235..1203db549 100644 --- a/linux/ecosystem/teamcity/agent/node14/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node14/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* \ No newline at end of file diff --git a/linux/ecosystem/teamcity/agent/node15/Dockerfile b/linux/ecosystem/teamcity/agent/node15/Dockerfile index f27e8c16d..cc6cada53 100644 --- a/linux/ecosystem/teamcity/agent/node15/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node15/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* \ No newline at end of file diff --git a/linux/ecosystem/teamcity/agent/node16/Dockerfile b/linux/ecosystem/teamcity/agent/node16/Dockerfile index 52e9337be..0a6e9a373 100644 --- a/linux/ecosystem/teamcity/agent/node16/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node16/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/node17/Dockerfile b/linux/ecosystem/teamcity/agent/node17/Dockerfile index a956671ae..2e30af75d 100644 --- a/linux/ecosystem/teamcity/agent/node17/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node17/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/node18/Dockerfile b/linux/ecosystem/teamcity/agent/node18/Dockerfile index 4cef52975..f89d0a090 100644 --- a/linux/ecosystem/teamcity/agent/node18/Dockerfile +++ b/linux/ecosystem/teamcity/agent/node18/Dockerfile @@ -31,8 +31,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* diff --git a/linux/ecosystem/teamcity/agent/php7.2/Dockerfile b/linux/ecosystem/teamcity/agent/php7.2/Dockerfile index d422b91eb..3907d89cb 100644 --- a/linux/ecosystem/teamcity/agent/php7.2/Dockerfile +++ b/linux/ecosystem/teamcity/agent/php7.2/Dockerfile @@ -58,11 +58,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/php7.3/Dockerfile b/linux/ecosystem/teamcity/agent/php7.3/Dockerfile index 849305b65..8682d4bb5 100644 --- a/linux/ecosystem/teamcity/agent/php7.3/Dockerfile +++ b/linux/ecosystem/teamcity/agent/php7.3/Dockerfile @@ -58,11 +58,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/php7.4/Dockerfile b/linux/ecosystem/teamcity/agent/php7.4/Dockerfile index c14d44bc6..ba022369c 100644 --- a/linux/ecosystem/teamcity/agent/php7.4/Dockerfile +++ b/linux/ecosystem/teamcity/agent/php7.4/Dockerfile @@ -58,11 +58,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/php8.0/Dockerfile b/linux/ecosystem/teamcity/agent/php8.0/Dockerfile index 6d4817dc5..2395feed7 100644 --- a/linux/ecosystem/teamcity/agent/php8.0/Dockerfile +++ b/linux/ecosystem/teamcity/agent/php8.0/Dockerfile @@ -58,11 +58,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/php8.1/Dockerfile b/linux/ecosystem/teamcity/agent/php8.1/Dockerfile index 2a544cc0a..9bc218655 100644 --- a/linux/ecosystem/teamcity/agent/php8.1/Dockerfile +++ b/linux/ecosystem/teamcity/agent/php8.1/Dockerfile @@ -58,11 +58,7 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons + rm -rfv /tmp/* CMD ["/run-services.sh"] diff --git a/linux/ecosystem/teamcity/agent/steam-sdk/Dockerfile b/linux/ecosystem/teamcity/agent/steam-sdk/Dockerfile index 3dba5e452..f536075cb 100644 --- a/linux/ecosystem/teamcity/agent/steam-sdk/Dockerfile +++ b/linux/ecosystem/teamcity/agent/steam-sdk/Dockerfile @@ -23,9 +23,4 @@ RUN apt clean -y && \ apt autoclean -y && \ rm -rfv /var/lib/apt/lists/* && \ rm -rfv /var/cache/apt/archives/*.deb && \ - rm -rfv /tmp/deb/* && \ - rm -rfv /tmp/composer-setup.php && \ - rm -rfv /tmp/amxx_base_latest.tar.gz && \ - rm -rfv /tmp/atlassian-plugin-sdk.deb && \ - rm -rfv /tmp/addons - + rm -rfv /tmp/*