-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add base image for canary-checker
- Loading branch information
1 parent
97b44b9
commit 2853a04
Showing
3 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
FROM --platform=${BUILDPLATFORM:-linux/amd64} flanksource/base-image:v0.2.0 | ||
ARG TARGETARCH | ||
|
||
WORKDIR /app | ||
|
||
ARG TARGETARCH | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y python3 python3-pip zip --no-install-recommends && \ | ||
rm -Rf /var/lib/apt/lists/* && \ | ||
rm -Rf /usr/share/doc && rm -Rf /usr/share/man && \ | ||
apt-get clean | ||
|
||
RUN pip3 install pip pyyaml lxml requests robotframework \ | ||
robotframework \ | ||
robotframework-jsonlibrary \ | ||
robotframework-jsonschemalibrary \ | ||
robotframework-requests \ | ||
robotframework-restlibrary \ | ||
robotframework-seleniumlibrary \ | ||
robotframework-excellib \ | ||
robotframework-crypto \ | ||
robotframework-databaselibrary \ | ||
psycopg2-binary \ | ||
PyMySQL | ||
|
||
# Restic | ||
ENV RESTIC_VERSION=0.15.2 | ||
RUN curl -L https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_${TARGETARCH}.bz2 -o restic.bz2 && \ | ||
bunzip2 /app/restic.bz2 && \ | ||
chmod +x /app/restic && \ | ||
mv /app/restic /usr/local/bin/ && \ | ||
rm -rf /app/restic.bz2 | ||
|
||
# Mergestat | ||
# Unsupported in arm64 as of yet | ||
RUN curl -L https://github.com/flanksource/askgit/releases/download/v0.61.0-flanksource.1/mergestat-linux-amd64.tar.gz -o mergestat.tar.gz && \ | ||
tar zxf mergestat.tar.gz -C /usr/local/bin/ && \ | ||
rm mergestat.tar.gz | ||
|
||
# K6 | ||
ENV K6_VERSION=v0.47.0 | ||
RUN curl -L https://github.com/grafana/k6/releases/download/${K6_VERSION}/k6-${K6_VERSION}-linux-${TARGETARCH}.tar.gz -o k6.tar.gz && \ | ||
tar xvf k6.tar.gz && \ | ||
mv k6-${K6_VERSION}-linux-${TARGETARCH}/k6 /usr/local/bin/k6 && \ | ||
rm k6.tar.gz | ||
|
||
# Benthos: high performance and resilient stream processor | ||
RUN curl -Lsf https://sh.benthos.dev | bash -s -- 4.22.0 | ||
|
||
# dsq: commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more | ||
RUN curl -L https://github.com/multiprocessio/dsq/releases/download/v0.23.0/dsq-linux-x64-v0.23.0.zip -o dsq.zip && \ | ||
unzip -q dsq.zip && \ | ||
mv dsq /usr/local/bin/dsq && \ | ||
rm dsq.zip | ||
|
||
ENV SDKMAN_DIR="/usr/lib/sdkman" | ||
|
||
ENV JAVA_VERSION=21.0.2-tem | ||
ENV JMETER_VERSION=5.6 | ||
ENV JMETER_HOME=${SDKMAN_DIR}/candidates/jmeter/${JMETER_VERSION} | ||
ENV JAVA_HOME=${SDKMAN_DIR}/candidates/java/${JAVA_VERSION} | ||
ENV PATH="$PATH:$SDKMAN_DIR/bin:$JAVA_HOME/bin:$JMETER_HOME/bin" | ||
SHELL [ "bash", "-c" ] | ||
RUN curl -s "https://get.sdkman.io?rcupdate=false" | bash && \ | ||
. $SDKMAN_DIR/bin/sdkman-init.sh && \ | ||
sdk install java ${JAVA_VERSION} ${JAVA_HOME} && \ | ||
sdk install jmeter ${JMETER_VERSION} ${JMETER_HOME} && \ | ||
sdk flush tmp |