Fix polkit in code-server
All checks were successful
ShellCheck / shellcheck (push) Successful in 18s
All checks were successful
ShellCheck / shellcheck (push) Successful in 18s
This commit is contained in:
parent
9093c1da04
commit
5faf82c9b9
4 changed files with 13 additions and 1 deletions
|
@ -14,6 +14,8 @@ Host home-gw
|
|||
Host router
|
||||
HostName 192.168.255.1
|
||||
User vyos
|
||||
Host sandbox
|
||||
HostName sandbox.server.home.arpa
|
||||
Host vps
|
||||
HostName vps.strypsteen.com
|
||||
Host *
|
||||
|
|
|
@ -12,6 +12,7 @@ RUN mkdir -p /home/coder/.config/systemd/user/default.target.wants
|
|||
RUN ln -s /etc/systemd/user/code-server.service /home/coder/.config/systemd/user/default.target.wants
|
||||
RUN rustup-init -y
|
||||
USER root
|
||||
COPY polkit.service /etc/systemd/system
|
||||
COPY override.conf /etc/systemd/system/user@.service.d
|
||||
COPY code-server.service /etc/systemd/user
|
||||
ENTRYPOINT /sbin/init
|
||||
|
|
5
containers/code-server/polkit.service
Normal file
5
containers/code-server/polkit.service
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Service]
|
||||
Type=dbus
|
||||
BusName=org.freedesktop.PolicyKit1
|
||||
ExecStart=/usr/lib/polkit-1/polkitd --no-debug
|
||||
User=polkitd
|
|
@ -1,11 +1,15 @@
|
|||
[Container]
|
||||
Image=git.strypsteen.com/mathieu/code-server
|
||||
ReadOnly=false
|
||||
AddDevice=/dev/kvm
|
||||
AddDevice=/dev/net/tun
|
||||
Volume=/var/lib/system-config/container-config/code-server/settings.json:/home/coder/.local/share/code-server/Machine/settings.json:z,ro
|
||||
Volume=code-server-settings.volume:/home/coder/.local/share/code-server:U,Z
|
||||
Volume=code-server-ssh.volume:/home/coder/.ssh:U,Z
|
||||
Volume=code-server-projects.volume:/home/coder/projects:U,Z
|
||||
Volume=/etc/gitconfig:/etc/gitconfig:z,ro
|
||||
Volume=/var/lib/system-config/common/etc/gitconfig:/etc/gitconfig:z,ro
|
||||
Volume=/var/lib/system-config/common/etc/ssh/ssh_config:/etc/ssh/ssh_config:z,ro
|
||||
Volume=/var/lib/system-config/common/etc/vimrc:/etc/vimrc:z,ro
|
||||
Secret=CODE_SERVER_PASSWORD,type=env,target=PASSWORD
|
||||
PublishPort=8080:8080
|
||||
AutoUpdate=registry
|
||||
|
|
Loading…
Add table
Reference in a new issue