Skip to content

Commit d1167cc

Browse files
committed
Add libreoffice devcontainer
1 parent ded83ff commit d1167cc

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed

src/libreoffice/.devcontainer.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "Libreoffice app",
3+
"dockerComposeFile": "docker-compose.yaml",
4+
"service": "app",
5+
"shutdownAction": "none",
6+
"workspaceFolder": "/workspace",
7+
// TODO: Enable this once Linux installation is resolved.
8+
// "postCreateCommand": [
9+
// "./startupscript/post-startup.sh",
10+
// "abc",
11+
// "/config",
12+
// "${templateOption:cloud}",
13+
// "${templateOption:login}"
14+
// ],
15+
// // re-mount bucket files on container start up
16+
// "postStartCommand": [
17+
// "./startupscript/remount-on-restart.sh",
18+
// "abc",
19+
// "/config",
20+
// "${templateOption:cloud}",
21+
// "${templateOption:login}"
22+
// ],
23+
"remoteUser": "root",
24+
"features": {
25+
// TODO: Need to install Java for the CLI, but this feature does not support alpine linux.
26+
// "ghcr.io/devcontainers/features/java:1": {
27+
// "version": "17"
28+
// }
29+
}
30+
}

src/libreoffice/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Rstudio (rstudio)
2+
3+
A Template to run rstudio on workbench
4+
5+
## Options
6+
7+
| Options Id | Description | Type | Default Value |
8+
| ---------- | ---------------------------------- | ------ | ------------- |
9+
| cloud | VM cloud environment | string | gcp |
10+
| login | Whether to log in to workbench CLI | string | false |
11+
12+
---
13+
14+
_Note: This file was auto-generated from the [devcontainer-template.json](https://github.com/verily-src/workbench-app-devcontainers/blob/main/src/rstudio/devcontainer-template.json). Add additional notes to a `NOTES.md`._
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"id": "libreoffice",
3+
"version": "0.1.0",
4+
"name": "Libreoffice",
5+
"description": "A Template to libreoffice on workbench",
6+
"documentationURL": "https://github.com/verily-src/workbench-app-devcontainers/tree/master/src/libreoffice",
7+
"licenseURL": "https://github.com/verily-src/workbench-app-devcontainers/blob/master/LICENSE",
8+
"options": {
9+
"cloud": {
10+
"type": "string",
11+
"description": "VM cloud environment",
12+
"proposals": ["gcp", "aws"],
13+
"default": "gcp"
14+
},
15+
"login": {
16+
"type": "string",
17+
"description": "Whether to log in to workbench CLI",
18+
"proposals": ["true", "false"],
19+
"default": "false"
20+
}
21+
},
22+
"platforms": ["Any"]
23+
}

src/libreoffice/docker-compose.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: "1.0"
2+
services:
3+
app:
4+
container_name: "application-server"
5+
image: "lscr.io/linuxserver/libreoffice:latest"
6+
restart: always
7+
volumes:
8+
- .:/workspace:cached
9+
- work:/config:cached
10+
ports:
11+
- "3000:3000"
12+
networks:
13+
- app-network
14+
cap_add:
15+
- SYS_ADMIN
16+
devices:
17+
- /dev/fuse
18+
security_opt:
19+
- apparmor:unconfined
20+
networks:
21+
app-network:
22+
external: true
23+
volumes:
24+
work:

0 commit comments

Comments
 (0)