
나는 내가 관리하는 RStudio 이미지를 업데이트하기 위해 패커를 사용하고 있습니다(https://marketplace.digitalocean.com/apps/rstudio), 이것은 제가 커뮤니티를 위해 하는 일입니다. 파이프라인의 첫 번째 스크립트는 다음 코드로 시작됩니다.
#!/bin/bash
# non-interactive install
DEBIAN_FRONTEND=noninteractive
# Add a swap file to prevent build time OOM errors
fallocate -l 8G /swapfile
mkswap /swapfile
swapon /swapfile
# add CRAN to apt sources
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
printf '\n#CRAN mirror\ndeb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/\n' | tee -a /etc/apt/sources.list
# update apt
apt-get -qqy -o Dpkg::Options::=--force-confdef update
apt-get -qqy -o Dpkg::Options::=--force-confdef upgrade
그러나 프로세스를 실행하기 위해 실행하면 packer build conf.json
openssh-server가 비대화형 구성을 무시하고 스크립트가 여기서 중지되기 때문에 실패합니다.
digitalocean: A new version (/tmp/fileVGUVsU) of configuration file /etc/ssh/sshd_config is
digitalocean: available, but the version installed currently has been locally modified.
digitalocean:
digitalocean: 1. install the package maintainer's version
digitalocean: 2. keep the local version currently installed
digitalocean: 3. show the differences between the versions
digitalocean: 4. show a side-by-side difference between the versions
digitalocean: 5. show a 3-way difference between available versions
digitalocean: 6. do a 3-way merge between available versions
digitalocean: 7. start a new shell to examine the situation
어떻게 항상 첫 번째 옵션을 선택할 수 있나요? 관련 게시물을 모두 읽었습니다.