Commit ef2cacf2 authored by Finn's avatar Finn

Update debian, use common

parent 827b967c
Pipeline #3070 failed with stage
in 1 minute and 31 seconds
build:
tags: [kvm]
stage: build
before_script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}".insteadOf "git@${CI_SERVER_HOST}"
- git -C .. clone git@${CI_SERVER_HOST}:entanglement.garden/vm-images/common.git
script:
- make
......@@ -5,9 +5,8 @@ ssh_key.pub: ssh_key
ssh_key:
ssh-keygen -t ed25519 -f ssh_key -qN ""
http/user-data: http/user-data.template ssh_key.pub
sed "s#SSH_KEY#$(shell cat ssh_key.pub)#g" http/user-data.template > http/user-data
http/user-data: ssh_key.pub
sed "s#SSH_KEY#$(shell cat ssh_key.pub)#g" ../common/user-data-template.yaml > http/user-data
image-host/image-host.qcow2: http/user-data
packer build -timestamp-ui image-host.json
......@@ -6,9 +6,9 @@
"disk_interface": "virtio",
"headless": true,
"http_directory": "http",
"iso_checksum": "8dfb356f65af191152a76b831ac6e6a8a1c343582ee03f4166acb5ccdc788a3f",
"iso_checksum": "93e7fae5dd69b3f3b5f5eba2301938630c45ae402ef93bde9a9fc72db27f8dd5",
"iso_checksum_type": "sha256",
"iso_url": "https://cloud.debian.org/images/cloud/buster/daily/20190928-30/debian-10-generic-amd64-daily-20190928-30.qcow2",
"iso_url": "https://cloud.debian.org/images/cloud/buster/daily/20191106-69/debian-10-generic-amd64-daily-20191106-69.qcow2",
"disk_image": true,
"shutdown_command": "rm -rf ~/.ssh/authorized_keys && sudo shutdown -P now",
"ssh_username": "debian",
......
#!/bin/sh
set -ex
export DEBIAN_FRONTEND=noninteractive
echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
sudo apt-get update
sudo apt-get full-upgrade -y
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment