-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yt/microservices/excel] Add docker images.
c190f5e201ec6ec909f1562cf68247426342b351
- Loading branch information
Showing
7 changed files
with
8,124 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mirror.gcr.io/ubuntu:noble | ||
|
||
USER root | ||
|
||
WORKDIR /tmp | ||
|
||
COPY ./excel-exporter /usr/bin/excel-exporter | ||
|
||
# CREDITS files with licenses for all binaries. | ||
COPY ./credits/excel-exporter.CREDITS /usr/bin/excel-exporter.CREDITS | ||
|
||
RUN apt update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y \ | ||
curl \ | ||
less \ | ||
gdb \ | ||
lsof \ | ||
strace \ | ||
telnet \ | ||
dnsutils \ | ||
iputils-ping |
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,65 @@ | ||
#!/usr/bin/env bash | ||
|
||
script_name=$0 | ||
|
||
image_tag="" | ||
ytsaurus_source_path="." | ||
output_path="." | ||
image_cr="" | ||
|
||
print_usage() { | ||
cat << EOF | ||
Usage: $script_name [-h|--help] | ||
[--ytsaurus-source-path /path/to/ytsaurus.repo (default: $ytsaurus_source_path)] | ||
[--output-path /path/to/output (default: $output_path)] | ||
[--image-tag some-tag (default: $image_tag)] | ||
[--image-cr some-cr/ (default: $image_cr)] | ||
EOF | ||
exit 1 | ||
} | ||
|
||
# Parse options | ||
while [[ $# -gt 0 ]]; do | ||
key="$1" | ||
case $key in | ||
--ytsaurus-source-path) | ||
ytsaurus_source_path="$2" | ||
shift 2 | ||
;; | ||
--output-path) | ||
output_path="$2" | ||
shift 2 | ||
;; | ||
--image-tag) | ||
image_tag="$2" | ||
shift 2 | ||
;; | ||
--image-cr) | ||
image_cr="$2" | ||
shift 2 | ||
;; | ||
-h|--help) | ||
print_usage | ||
shift | ||
;; | ||
*) # unknown option | ||
echo "Unknown argument $1" | ||
print_usage | ||
;; | ||
esac | ||
done | ||
|
||
excel_exporter="${ytsaurus_source_path}/yt/microservices/excel/exporter/cmd/excel-exporter/excel-exporter" | ||
credits="${ytsaurus_source_path}/yt/docker/ytsaurus-excel-exporter/credits" | ||
|
||
dockerfile="${ytsaurus_source_path}/yt/docker/ytsaurus-excel-exporter/Dockerfile" | ||
|
||
cp ${excel_exporter} ${output_path} | ||
cp ${dockerfile} ${output_path} | ||
|
||
mkdir ${output_path}/credits | ||
cp -r ${credits}/excel-exporter.CREDITS ${output_path}/credits | ||
|
||
cd ${output_path} | ||
|
||
docker build -t ${image_cr}ytsaurus/excel-exporter:${image_tag} . |
Oops, something went wrong.