Skip to content

Commit

Permalink
Use public.ecr.aws images
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Kurait <[email protected]>
  • Loading branch information
AndreKurait committed Apr 26, 2024
1 parent bfdee57 commit 6e6f0d9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion FetchMigration/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensearchproject/data-prepper:2.5.0
FROM public.ecr.aws/opensearchproject/data-prepper:2.5.0
COPY python/requirements.txt .

# Install dependencies to local user directory
Expand Down
3 changes: 2 additions & 1 deletion RFS/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Using same base image as other Java containers in this repo
FROM openjdk:11-jre
FROM public.ecr.aws/amazoncorretto/amazoncorretto:11-al2023-headless

# Requires Gradle to genearte runtime jars initially
COPY ./build/runtimeJars /rfs-app/jars
WORKDIR /rfs-app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class CommonUtils {
runCommand("sed -i -e \"s|mirrorlist=|#mirrorlist=|g\" /etc/yum.repos.d/CentOS-* ; sed -i -e \"s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g\" /etc/yum.repos.d/CentOS-*")
runCommand("yum -y install nmap-ncat")
} else {
from 'openjdk:11-jre'
runCommand("apt-get update && apt-get install -y netcat")
from 'public.ecr.aws/amazoncorretto/amazoncorretto:11-al2023-headless'
runCommand("dnf update && dnf install -y nmap-ncat")
}

copyFile("jars", "/jars")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM grafana/grafana:latest
FROM public.ecr.aws/bitnami/grafana:latest

COPY datasources.yaml /usr/share/grafana/conf/provisioning/datasources/
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM ubuntu:jammy
FROM public.ecr.aws/amazonlinux/amazonlinux:2023

ENV DEBIAN_FRONTEND noninteractive
RUN dnf update -y
RUN dnf install -y python3.9 python3-pip python3-devel \
java-11-amazon-corretto-devel java-11-amazon-corretto \
wget gcc glibc-devel git vim jq unzip less curl-minimal
RUN pip3 install setuptools
RUN pip3 install urllib3 opensearch-benchmark==1.2.0 awscurl tqdm awscli

RUN apt-get update && \
apt-get install -y --no-install-recommends python3.9 python3-pip python3-dev openjdk-11-jre-headless wget gcc libc-dev git curl vim jq unzip less && \
pip3 install urllib3 opensearch-benchmark==1.2.0 awscurl tqdm awscli
RUN mkdir /root/kafka-tools
RUN mkdir /root/kafka-tools/aws
RUN mkdir -p /root/kafka-tools/aws

# Set working directory
WORKDIR /root/kafka-tools
# Get kafka distribution and unpack to 'kafka'
RUN wget -qO- https://archive.apache.org/dist/kafka/3.6.0/kafka_2.13-3.6.0.tgz | tar --transform 's!^[^/]*!kafka!' -xvz
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:1.25.1
FROM public.ecr.aws/nginx/nginx:1.25-bookworm

# Installing VIM for the sake of users who would like to exec shells in the webserver container.
RUN apt-get update
Expand Down

0 comments on commit 6e6f0d9

Please sign in to comment.