Merge "Cleanup a few docker image related thigns"

This commit is contained in:
Zuul 2020-03-22 15:00:57 +00:00 committed by Gerrit Code Review
commit 7ba932a015
3 changed files with 0 additions and 79 deletions

View File

@ -245,7 +245,6 @@
tags: tags:
- 2.15 - 2.15
files: &gerrit_files_2_15 files: &gerrit_files_2_15
- docker/bazel/.*
- docker/gerrit/base/.* - docker/gerrit/base/.*
- docker/gerrit/bazel/.* - docker/gerrit/bazel/.*
- playbooks/zuul/gerrit/.* - playbooks/zuul/gerrit/.*
@ -311,7 +310,6 @@
gerrit_additional_plugins: gerrit_additional_plugins:
- codemirror-editor - codemirror-editor
files: &gerrit_files_2_16 files: &gerrit_files_2_16
- docker/bazel/.*
- docker/gerrit/base/.* - docker/gerrit/base/.*
- docker/gerrit/bazel/.* - docker/gerrit/bazel/.*
- playbooks/zuul/gerrit/.* - playbooks/zuul/gerrit/.*
@ -389,7 +387,6 @@
- plugin-manager - plugin-manager
- webhooks - webhooks
files: &gerrit_files_3_0 files: &gerrit_files_3_0
- docker/bazel/.*
- docker/gerrit/base/.* - docker/gerrit/base/.*
- docker/gerrit/bazel/.* - docker/gerrit/bazel/.*
- playbooks/zuul/gerrit/.* - playbooks/zuul/gerrit/.*
@ -471,7 +468,6 @@
This job is used in system-config. This job is used in system-config.
parent: system-config-build-image-gerrit-master-base parent: system-config-build-image-gerrit-master-base
files: &gerrit_files_master files: &gerrit_files_master
- docker/bazel/.*
- docker/gerrit/base/.* - docker/gerrit/base/.*
- docker/gerrit/bazel/.* - docker/gerrit/bazel/.*
- playbooks/zuul/gerrit/.* - playbooks/zuul/gerrit/.*
@ -555,32 +551,6 @@
vars: *python-base_vars vars: *python-base_vars
files: *python-base_files files: *python-base_files
# bazel jobs
- job:
name: system-config-build-image-bazel
description: Build a bazel image.
parent: system-config-build-image
vars: &bazel_vars
docker_images:
- context: docker/bazel
repository: opendevorg/bazel
files: &bazel_files
- docker/bazel/.*
- job:
name: system-config-upload-image-bazel
description: Build and upload a bazel image.
parent: system-config-upload-image
vars: *bazel_vars
files: *bazel_files
- job:
name: system-config-promote-image-bazel
description: Promote a previously published bazel image to latest.
parent: system-config-promote-image
vars: *bazel_vars
files: *bazel_files
# gerrit-base jobs # gerrit-base jobs
- job: - job:
name: system-config-build-image-gerrit-base name: system-config-build-image-gerrit-base
@ -1346,7 +1316,6 @@
soft: true soft: true
- system-config-run-zuul-preview - system-config-run-zuul-preview
- system-config-run-letsencrypt - system-config-run-letsencrypt
- system-config-build-image-bazel
- system-config-build-image-jinja-init: - system-config-build-image-jinja-init:
dependencies: dependencies:
- name: system-config-build-image-python-base - name: system-config-build-image-python-base
@ -1371,30 +1340,22 @@
- system-config-build-image-gerrit-2.15: - system-config-build-image-gerrit-2.15:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-build-image-bazel
soft: true
- name: system-config-build-image-gerrit-base - name: system-config-build-image-gerrit-base
soft: true soft: true
- system-config-build-image-gerrit-2.16: - system-config-build-image-gerrit-2.16:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-build-image-bazel
soft: true
- name: system-config-build-image-gerrit-base - name: system-config-build-image-gerrit-base
soft: true soft: true
- system-config-build-image-gerrit-3.0: - system-config-build-image-gerrit-3.0:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-build-image-bazel
soft: true
- name: system-config-build-image-gerrit-base - name: system-config-build-image-gerrit-base
soft: true soft: true
- system-config-build-image-gerrit-master: - system-config-build-image-gerrit-master:
voting: false voting: false
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-build-image-bazel
soft: true
- name: system-config-build-image-gerrit-base - name: system-config-build-image-gerrit-base
soft: true soft: true
- system-config-build-image-haproxy-statsd: - system-config-build-image-haproxy-statsd:
@ -1435,7 +1396,6 @@
soft: true soft: true
- system-config-run-zuul-preview - system-config-run-zuul-preview
- system-config-run-letsencrypt - system-config-run-letsencrypt
- system-config-upload-image-bazel
- system-config-upload-image-jinja-init: - system-config-upload-image-jinja-init:
dependencies: dependencies:
- name: system-config-upload-image-python-base - name: system-config-upload-image-python-base
@ -1460,22 +1420,16 @@
- system-config-upload-image-gerrit-2.15: - system-config-upload-image-gerrit-2.15:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-upload-image-bazel
soft: true
- name: system-config-upload-image-gerrit-base - name: system-config-upload-image-gerrit-base
soft: true soft: true
- system-config-upload-image-gerrit-2.16: - system-config-upload-image-gerrit-2.16:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-upload-image-bazel
soft: true
- name: system-config-upload-image-gerrit-base - name: system-config-upload-image-gerrit-base
soft: true soft: true
- system-config-upload-image-gerrit-3.0: - system-config-upload-image-gerrit-3.0:
dependencies: dependencies:
- name: opendev-buildset-registry - name: opendev-buildset-registry
- name: system-config-upload-image-bazel
soft: true
- name: system-config-upload-image-gerrit-base - name: system-config-upload-image-gerrit-base
soft: true soft: true
- system-config-upload-image-haproxy-statsd: - system-config-upload-image-haproxy-statsd:
@ -1486,7 +1440,6 @@
- system-config-upload-image-python-builder - system-config-upload-image-python-builder
promote: promote:
jobs: jobs:
- system-config-promote-image-bazel
- system-config-promote-image-jinja-init - system-config-promote-image-jinja-init
- system-config-promote-image-gitea-init - system-config-promote-image-gitea-init
- system-config-promote-image-gitea - system-config-promote-image-gitea

View File

@ -1,31 +0,0 @@
# Copyright (c) 2019 Red Hat, Inc.
#
# 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.
FROM l.gcr.io/google/bazel:1.2.0 as bazel
# The bazel image comes with bazel only runnable by root for some weird reason.
# The bower build in gerrit does not work as root.
# Fix the bazel image.
RUN groupadd builder && \
useradd builder --home-dir /usr/src --create-home -g builder
RUN chown -R builder /usr/src /usr/local/lib/bazel \
&& chmod +x /usr/local/lib/bazel
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs
USER builder
WORKDIR /usr/src

View File

@ -48,7 +48,6 @@ RUN mkdir /var/gerrit/bin \
&& mkdir /var/gerrit/hooks \ && mkdir /var/gerrit/hooks \
&& mkdir /var/gerrit/static && mkdir /var/gerrit/static
# Force gerrit to use bouncycastle for security things.
# Download mysql-connector so that gerrit doens't download it during init. # Download mysql-connector so that gerrit doens't download it during init.
RUN mkdir /var/gerrit/lib && \ RUN mkdir /var/gerrit/lib && \
wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.43/mysql-connector-java-5.1.43.jar -O /var/gerrit/lib/mysql-connector-java.jar wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.43/mysql-connector-java-5.1.43.jar -O /var/gerrit/lib/mysql-connector-java.jar