Get ostree based image with with embedded container going. Container doesn't start. Need to build qcow and then can update with repo, can't use kickstart.

This commit is contained in:
jimmy committed 2022-08-23 20:51:52 -04:00
1 parent 5b22a10316
commit 06b42edbb1
10 files changed
+69 -169

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
FROM quay.io/fedora/fedora:latest
RUN dnf -y install nginx && dnf clean all
COPY ./hosting/nginx.conf /etc/nginx.conf
COPY ./hosting/edge.ks /usr/share/nginx/html/
ARG commit
ADD ${commit} /usr/share/nginx/html/repo
EXPOSE 8080
CMD ["/usr/sbin/nginx", "-c", "/etc/nginx.conf"]
+18
View File
@@ -0,0 +1,18 @@
lang en_US.UTF-8
keyboard us
timezone Etc/UTC --utc
text
ostreesetup --nogpg --osname=centos --remote=edge --url=http://192.168.1.107:8080/repo/ --ref=c9s/x86_64/edge
rootpw --lock
user --name=jimmy --groups=wheel --plaintext --password="password"
sshkey --username=jimmy "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHatbSn47a1Amv06Oap6Tfk7oWv4GLm2KJuz1uV41Egt jimmy@jimmy-7490"
%post --log=/root/ks-post.log
passwd -e jimmy
mkdir -p /etc/issue.d
echo "IP Address: \4" > /etc/issue.d/current-ip.issue
%end
+13
View File
@@ -0,0 +1,13 @@
events {
}
http {
server{
listen 8080;
root /usr/share/nginx/html;
}
}
pid /run/nginx.pid;
daemon off;