Skip to content
Snippets Groups Projects
Verified Commit 45a9092b authored by Rémi Bernon's avatar Rémi Bernon
Browse files

Build docker images from Proton github repository.

parent d8828762
No related branches found
No related tags found
No related merge requests found
variables: variables:
BASE_IMAGE: registry.gitlab.steamos.cloud/steamrt/soldier/sdk STEAMRT_VERSION: 0.20201210.0
PROTON_SOURCE: https://github.com/rbernon/proton
default: PROTON_BRANCH: wip/docker/v1
image: "${BASE_IMAGE}"
stages:
build: - checkout
tags: - build-base
- docker - binutils
- linux - mingw
stage: build - gcc
script: | - proton
set -eu
set -o pipefail
# TODO: Put something useful here checkout:
tags:
- docker
- linux
image: registry.gitlab.steamos.cloud/steamrt/soldier/sdk
stage: checkout
script:
- git clone $PROTON_SOURCE -b $PROTON_BRANCH proton
- make -C proton/docker DOCKER=true STEAMRT_VERSION=$STEAMRT_VERSION | grep 'true build' > commands
- grep 'f build-base-i686' commands > build-base-i686.sh
- grep 'f build-base-x86_64' commands > build-base-x86_64.sh
- grep 'f binutils-i686-w64' commands > binutils-i686-w64.sh
- grep 'f binutils-i686-linux' commands > binutils-i686-linux.sh
- grep 'f binutils-x86_64-w64' commands > binutils-x86_64-w64.sh
- grep 'f binutils-x86_64-linux' commands > binutils-x86_64-linux.sh
- grep 'f mingw-.*-i686' commands > mingw-i686.sh
- grep 'f mingw-.*-x86_64' commands > mingw-x86_64.sh
- grep 'f gcc-i686-w64' commands > gcc-i686-w64.sh
- grep 'f gcc-i686-linux' commands > gcc-i686-linux.sh
- grep 'f gcc-x86_64-w64' commands > gcc-x86_64-w64.sh
- grep 'f gcc-x86_64-linux' commands > gcc-x86_64-linux.sh
- grep 'f proton' commands > proton.sh
- sed -re 's@true build@rm /build -rf; mkdir -p /build; /kaniko/executor --reproducible --cleanup@g' -i *.sh
- sed -re 's@-f @--dockerfile @g' -i *.sh
- sed -re 's@-t @--destination @g' -i *.sh
- sed -re 's@--cache-from=[^ ]+ @--cache @g' -i *.sh
- sed -re 's@build$@--context /build@g' -i *.sh
- sed -re 's@--reproducible @@g' -i proton.sh
- mv proton/docker/*.Dockerfile ./
artifacts:
paths:
- "*.Dockerfile"
- "*.sh"
build-base-i686:
tags:
- docker
- linux
stage: build-base
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux build-base-i686.sh
build-base-x86_64:
tags:
- docker
- linux
stage: build-base
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux build-base-x86_64.sh
binutils-i686-w64:
tags:
- docker
- linux
stage: binutils
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux binutils-i686-w64.sh
binutils-i686-linux:
tags:
- docker
- linux
stage: binutils
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux binutils-i686-linux.sh
binutils-x86_64-w64:
tags:
- docker
- linux
stage: binutils
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux binutils-x86_64-w64.sh
binutils-x86_64-linux:
tags:
- docker
- linux
stage: binutils
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux binutils-x86_64-linux.sh
mingw-i686:
tags:
- docker
- linux
stage: mingw
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux mingw-i686.sh
mingw-x86_64:
tags:
- docker
- linux
stage: mingw
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux mingw-x86_64.sh
gcc-i686-w64:
tags:
- docker
- linux
stage: gcc
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux gcc-i686-w64.sh
gcc-i686-linux:
tags:
- docker
- linux
stage: gcc
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux gcc-i686-linux.sh
gcc-x86_64-w64:
tags:
- docker
- linux
stage: gcc
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux gcc-x86_64-w64.sh
gcc-x86_64-linux:
tags:
- docker
- linux
stage: gcc
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux gcc-x86_64-linux.sh
proton:
tags:
- docker
- linux
stage: proton
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- sh -eux proton.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment