Written by
java-style
on
on
Docker) run할 때 git pull하기
Docker) run할 때 git pull하기
FROM spark-3.1.2-base/spark-py:1.0.0
USER root
# vm에서 프록시 설정(생략 가능)
ENV DEBIAN_FRONTEND=noninteractive \
TZ=Asia/Seoul \
https_proxy=http://1**.2**.**.**2:**80 \
http_proxy=http://1**.2**.**.**2:**80
#label add
LABEL comment "util add"
#alias add
RUN echo "alias ll='ls -al'" >> /root/.bashrc
#apt-get
RUN apt-get update && apt-get install -y curl vim git openssh-client --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# gitlab
ADD ./id_ed25519 /root/.ssh/id_ed25519
# Clone the conf files into the docker container
WORKDIR /app
# to avoid fingerprint
RUN ssh-keyscan 1**.2**.**.12 >> /root/.ssh/known_hosts
RUN git clone git@1**.2**.**..12:ted.kim/build-docker-image.git
from http://mightytedkim.tistory.com/39 by ccl(A) rewrite - 2021-11-12 09:02:17