-
Notifications
You must be signed in to change notification settings - Fork 59
/
Dockerfile
37 lines (27 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# since this script depends on python 2.7, we need a stable base from which to run it
FROM python:2.7-slim
# To build: docker build -t dataproc-custom-images:latest .
# To run: docker run -it dataproc-custom-images:latest /bin/bash
# and then from the docker bash shell, run the
# generate_custom_image.py as per examples/secure-boot/README.md
# python generate_custom_image.py \
# --image-name ${image_name} \
# --dataproc-version ${dataproc_version} \
# --trusted-cert "tls/db.der" \
# --customization-script ${customization_script} \
# --metadata "${metadata}" \
# --zone "${custom_image_zone}" \
# --disk-size "${disk_size_gb}" \
# --no-smoke-test \
# --gcs-bucket "${my_bucket}"
WORKDIR /custom-images
RUN apt-get update && apt-get -y install apt-transport-https ca-certificates gnupg curl
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# This will only work so long as google-cloud-cli installs to Buster
RUN apt-get -y update && apt-get -y install google-cloud-cli && apt-get clean
RUN apt-get -y install emacs-nox vim && apt-get clean
COPY . ${WORKDIR}
CMD ["/bin/bash"]