migrate to coreos

This commit is contained in:
Matthew Tran
2025-04-19 02:24:10 -07:00
parent 12039fb862
commit 8bd3def755
42 changed files with 752 additions and 579 deletions
-20
View File
@@ -1,20 +0,0 @@
FROM ubuntu:24.04
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y samba
# create required files and user
RUN groupadd -g 2003 me && useradd -u 2003 -g 2003 -m me
USER me
WORKDIR /home/me
RUN mkdir share samba samba/log samba/lock samba/state samba/cache samba/pid samba/private samba/ncalrpc
COPY --chown=me:me smb.conf entry.sh ./
# create additional users
USER root
COPY users.sh ./
RUN /bin/sh users.sh && rm users.sh
USER me
+15
View File
@@ -0,0 +1,15 @@
FROM ubuntu:24.04
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y samba
WORKDIR /root
COPY smb.conf entry.sh ./
CMD ["/bin/bash", "/root/entry.sh"]
# create users
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh
smbd -s smb.conf -l=/home/me/samba/log
trap 'echo "stopping smbd..."' TERM
smbd -s smb.conf
trap 'echo "stopping smbd..."' SIGTERM SIGINT
tail -f /dev/null &
wait $!
+3 -10
View File
@@ -1,6 +1,6 @@
[global]
workgroup = WORKGROUP
smb ports = 8445
smb ports = 445
load printers = no
disable spoolss = yes
@@ -22,19 +22,12 @@ client smb3 signing algorithms = AES-128-GMAC AES-128-CMAC HMAC-SHA256
client signing = required
client ipc signing = required
lock directory = /home/me/samba/lock
state directory = /home/me/samba/state
cache directory = /home/me/samba/cache
pid directory = /home/me/samba/pid
private dir = /home/me/samba/private
ncalrpc dir = /home/me/samba/ncalrpc
browseable = yes
writable = yes
create mask = 0660
directory mask = 0770
force user = me
force group = me
force user = root
force group = root
vfs objects = fruit streams_xattr
fruit:metadata = stream