Skip to content

Commit

Permalink
Revert "Fixes for Iron Bank (#76087) (#76090)"
Browse files Browse the repository at this point in the history
This reverts commit e29a633.
  • Loading branch information
pugnascotia committed Aug 5, 2021
1 parent 427c00f commit d1d6de1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
8 changes: 4 additions & 4 deletions distribution/docker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ ext.expansions = { Architecture architecture, DockerBase base ->
String buildArgs = ''
if (base == DockerBase.IRON_BANK) {
buildArgs = """
ARG BASE_REGISTRY=registry1.dso.mil
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8
ARG BASE_TAG=8.4
ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG BASE_IMAGE=redhat/ubi/ubi8
ARG BASE_TAG=8.3
"""
}

Expand All @@ -68,7 +68,7 @@ ARG BASE_TAG=8.4
'build_date' : BuildParams.buildDate,
'config_dir' : base == DockerBase.IRON_BANK ? 'scripts' : 'config',
'git_revision' : BuildParams.gitRevision,
'license' : base == DockerBase.IRON_BANK ? 'Elastic License 1.0' : 'Elastic-License-2.0',
'license' : 'Elastic-License-2.0',
'package_manager' : base == DockerBase.UBI ? 'microdnf' : 'yum',
'docker_base' : base.name().toLowerCase(),
'version' : VersionProperties.elasticsearch,
Expand Down
15 changes: 5 additions & 10 deletions distribution/docker/src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,12 @@ FROM ${base_image} AS builder
RUN mkdir /usr/share/elasticsearch
WORKDIR /usr/share/elasticsearch
<% if (docker_base == "iron_bank") {
// Iron Bank always copies the local artifact
%>
COPY elasticsearch-7.14.0-linux-x86_64.tar.gz /opt/elasticsearch.tar.gz
<% } else {
// Fetch the appropriate Elasticsearch distribution for this architecture.
// Keep this command on one line - it is replaced with a `COPY` during local builds.
// It uses the `arch` command to fetch the correct distro for the build machine.
%>
<% /*
Fetch the appropriate Elasticsearch distribution for this architecture.
Keep this command on one line - it is replaced with a `COPY` during local builds.
It uses the `arch` command to fetch the correct distro for the build machine.
*/ %>
RUN curl --retry 10 -S -L --output /opt/elasticsearch.tar.gz https://artifacts-no-kpi.elastic.co/downloads/elasticsearch/elasticsearch-${version}-linux-\$(arch).tar.gz
<% } %>
RUN tar -zxf /opt/elasticsearch.tar.gz --strip-components=1
Expand Down
14 changes: 2 additions & 12 deletions distribution/docker/src/docker/iron_bank/hardening_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ labels:
resources:
- filename: "elasticsearch-${version}-linux-x86_64.tar.gz"
url: "<artifact_path>/elasticsearch-${version}-linux-x86_64.tar.gz"
validation:
type: "sha512"
value: "<insert SHA 512 here>"
- filename: "tini"
url: "https://github.com/krallin/tini/releases/download/v0.19.0/tini-amd64"
validation:
Expand All @@ -50,14 +47,7 @@ resources:

# List of project maintainers
maintainers:
- name: "Nassim Kammah"
email: "[email protected]"
- name: "Rory Hunter"
email: "[email protected]"
username: "rory"
- email: "[email protected]"
name: "Alexander Klepal"
username: "alexander.klepal"
cht_member: true
- email: "[email protected]"
name: "Yalabe Dukuly"
username: "yalabe.dukuly"
cht_member: true

0 comments on commit d1d6de1

Please sign in to comment.