2024-01-24 22:47:46 +00:00
|
|
|
image:
|
|
|
|
name: debian-disco-x86_64
|
|
|
|
distribution: debian
|
|
|
|
release: bookworm
|
|
|
|
description: |-
|
|
|
|
Debian {{ image.release }}
|
|
|
|
architecture: amd64
|
|
|
|
|
|
|
|
source:
|
|
|
|
downloader: rootfs-http
|
2024-01-25 22:02:48 +00:00
|
|
|
url: file://SKYNET_ROOT_DIR/images/base/rootfs.tar.xz
|
2024-01-24 22:47:46 +00:00
|
|
|
|
|
|
|
targets:
|
|
|
|
lxc:
|
|
|
|
create_message: |-
|
|
|
|
You just created an {{ image.description }} container.
|
|
|
|
|
|
|
|
To enable SSH, run: apt install openssh-server
|
|
|
|
No default root or user password are set by LXC.
|
|
|
|
config:
|
|
|
|
- type: all
|
|
|
|
before: 5
|
|
|
|
content: |-
|
|
|
|
lxc.include = LXC_TEMPLATE_CONFIG/debian.common.conf
|
|
|
|
|
|
|
|
- type: user
|
|
|
|
before: 5
|
|
|
|
content: |-
|
|
|
|
lxc.include = LXC_TEMPLATE_CONFIG/debian.userns.conf
|
|
|
|
|
|
|
|
- type: all
|
|
|
|
after: 4
|
|
|
|
content: |-
|
|
|
|
lxc.include = LXC_TEMPLATE_CONFIG/common.conf
|
|
|
|
|
|
|
|
- type: user
|
|
|
|
after: 4
|
|
|
|
content: |-
|
|
|
|
lxc.include = LXC_TEMPLATE_CONFIG/userns.conf
|
|
|
|
|
|
|
|
- type: all
|
|
|
|
content: |-
|
|
|
|
lxc.arch = {{ image.architecture_personality }}
|
|
|
|
|
|
|
|
files:
|
|
|
|
- path: /skynet/wings.service
|
|
|
|
generator: copy
|
|
|
|
source: ./files/wings.service
|
|
|
|
|
|
|
|
packages:
|
|
|
|
manager: apt
|
|
|
|
update: true
|
|
|
|
cleanup: true
|
|
|
|
repositories:
|
|
|
|
- name: docker.list
|
|
|
|
url: |-
|
|
|
|
deb [arch={{ image.architecture }} signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ image.release }} stable
|
|
|
|
sets:
|
|
|
|
- packages:
|
|
|
|
- docker.io
|
|
|
|
- docker-doc
|
|
|
|
- docker-compose
|
|
|
|
- podman-docker
|
|
|
|
- containerd
|
|
|
|
- runc
|
|
|
|
action: remove
|
|
|
|
|
|
|
|
- packages:
|
|
|
|
- docker-ce
|
|
|
|
- docker-ce-cli
|
|
|
|
- containerd.io
|
|
|
|
- docker-buildx-plugin
|
|
|
|
- docker-compose-plugin
|
2024-01-27 23:07:53 +00:00
|
|
|
- fuse-overlayfs
|
2024-01-24 22:47:46 +00:00
|
|
|
action: install
|
|
|
|
|
|
|
|
actions:
|
|
|
|
# this runs before packages are installed.
|
|
|
|
- trigger: post-unpack
|
|
|
|
action: |-
|
|
|
|
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# for dns
|
|
|
|
cp /etc/resolv.conf /etc/resolv.conf.bak
|
|
|
|
echo -e "\nnameserver 9.9.9.9" >> /etc/resolv.conf
|
|
|
|
|
|
|
|
# get and set teh key for docker
|
|
|
|
install -m 0755 -d /etc/apt/keyrings
|
|
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
|
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
|
|
|
|
|
|
|
# reset dns
|
|
|
|
cp /etc/resolv.conf.bak /etc/resolv.conf
|
|
|
|
|
|
|
|
|
|
|
|
- trigger: post-files
|
|
|
|
action: |-
|
|
|
|
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# for dns
|
|
|
|
cp /etc/resolv.conf /etc/resolv.conf.bak
|
|
|
|
echo -e "\nnameserver 9.9.9.9" >> /etc/resolv.conf
|
|
|
|
|
2024-01-27 23:07:53 +00:00
|
|
|
# enable fuse
|
|
|
|
ln -s /usr/bin/fuse-overlayfs /usr/local/bin/fuse-overlayfs
|
|
|
|
|
2024-01-24 22:47:46 +00:00
|
|
|
# install the wings
|
|
|
|
mkdir -p /etc/pterodactyl
|
2024-01-27 23:07:53 +00:00
|
|
|
curl -L -o /usr/local/bin/wings "https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_amd64"
|
2024-01-24 22:47:46 +00:00
|
|
|
chmod u+x /usr/local/bin/wings
|
|
|
|
|
|
|
|
# setup config file
|
|
|
|
cp /skynet/wings.service /etc/systemd/system
|
|
|
|
|
|
|
|
# make sure they run on boot
|
|
|
|
systemctl enable docker
|
|
|
|
systemctl enable wings
|
|
|
|
|
|
|
|
# reset dns
|
|
|
|
cp /etc/resolv.conf.bak /etc/resolv.conf
|