Closed eitsupi closed 1 year ago
@rokroskar Could you take a look at this?
Hi @eitsupi, this is looking great! I tested the build on my mac also with a non-privileged user. This is the devcontainer.json
I used:
{
"image": "ubuntu",
"features": {
"./rstudio": {
"version": "daily"
},
"ghcr.io/devcontainers/features/common-utils": {
"username": "rstudio",
"userGid": 1000,
"userUid": 1000
}
},
"remoteUser": "rstudio"
}
I have to make these modifications inside the container to run rstudio:
$ mkdir /tmp/dbconf/db.conf
$ cat <<EOF>/tmp/dbconf/dbconf.conf
provider=sqlite
directory=/tmp/dbconf
EOF
$ mkdir /tmp/rstudio-data
Then I can run it with
rserver --auth-none=0 \
--www-frame-origin=same \
--www-port=56559 \
--www-verify-user-agent=0 \
--secure-cookie-key-file=/tmp/key-file \
--server-user=rstudio \
--database-config-file=/tmp/dbconf/dbconf.conf \
--server-data-dir=/tmp/rstudio-data
It seems working fine with the start command rserver
now.
built from
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"./rstudio-server": {},
"ghcr.io/rocker-org/devcontainer-features/r-apt": {}
}
}
TODO: rocker-org/devcontainer-images@
eb515c1
/src/rstudio/Dockerfile#L5
This might make more sense to set up using a lifecycle script.
It seems to be working, so I will merge it.
Just tested it with my setup and it works great! Thanks for putting this together! 🙌
Close #71