-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathrstudio-noauth.yaml
More file actions
32 lines (28 loc) · 801 Bytes
/
rstudio-noauth.yaml
File metadata and controls
32 lines (28 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#cloud-config
users:
- name: gcer
uid: 2000
write_files:
- path: /etc/gcer/startup.sh
permissions: 0755
owner: root
content: |
%s
- path: /etc/systemd/system/gcer.service
permissions: 0644
owner: root
content: |
[Unit]
Description=RStudio Docker startup
Requires=docker.service
After=docker.service
[Service]
Restart=always
Environment="HOME=/home/gcer"
ExecStartPre=/usr/bin/docker-credential-gcr configure-docker --registries=asia.gcr.io,eu.gcr.io,gcr.io,marketplace.gcr.io,us.gcr.io,docker.pkg.dev,us-docker.pkg.dev,eu-docker.pkg.dev,asia-docker.pkg.dev
ExecStart=/etc/gcer/startup.sh
ExecStop=/usr/bin/docker stop rstudio
ExecStopPost=/usr/bin/docker rm rstudio
runcmd:
- systemctl daemon-reload
- systemctl start gcer.service