Skip to content

Commit

Permalink
Add libreoffice devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
cbookg committed Aug 1, 2024
1 parent ded83ff commit d1167cc
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/libreoffice/.devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Libreoffice app",
"dockerComposeFile": "docker-compose.yaml",
"service": "app",
"shutdownAction": "none",
"workspaceFolder": "/workspace",
// TODO: Enable this once Linux installation is resolved.
// "postCreateCommand": [
// "./startupscript/post-startup.sh",
// "abc",
// "/config",
// "${templateOption:cloud}",
// "${templateOption:login}"
// ],
// // re-mount bucket files on container start up
// "postStartCommand": [
// "./startupscript/remount-on-restart.sh",
// "abc",
// "/config",
// "${templateOption:cloud}",
// "${templateOption:login}"
// ],
"remoteUser": "root",
"features": {
// TODO: Need to install Java for the CLI, but this feature does not support alpine linux.
// "ghcr.io/devcontainers/features/java:1": {
// "version": "17"
// }
}
}
14 changes: 14 additions & 0 deletions src/libreoffice/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Rstudio (rstudio)

A Template to run rstudio on workbench

## Options

| Options Id | Description | Type | Default Value |
| ---------- | ---------------------------------- | ------ | ------------- |
| cloud | VM cloud environment | string | gcp |
| login | Whether to log in to workbench CLI | string | false |

---

_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 changes: 23 additions & 0 deletions src/libreoffice/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"id": "libreoffice",
"version": "0.1.0",
"name": "Libreoffice",
"description": "A Template to libreoffice on workbench",
"documentationURL": "https://github.com/verily-src/workbench-app-devcontainers/tree/master/src/libreoffice",
"licenseURL": "https://github.com/verily-src/workbench-app-devcontainers/blob/master/LICENSE",
"options": {
"cloud": {
"type": "string",
"description": "VM cloud environment",
"proposals": ["gcp", "aws"],
"default": "gcp"
},
"login": {
"type": "string",
"description": "Whether to log in to workbench CLI",
"proposals": ["true", "false"],
"default": "false"
}
},
"platforms": ["Any"]
}
24 changes: 24 additions & 0 deletions src/libreoffice/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "1.0"
services:
app:
container_name: "application-server"
image: "lscr.io/linuxserver/libreoffice:latest"
restart: always
volumes:
- .:/workspace:cached
- work:/config:cached
ports:
- "3000:3000"
networks:
- app-network
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
security_opt:
- apparmor:unconfined
networks:
app-network:
external: true
volumes:
work:

0 comments on commit d1167cc

Please sign in to comment.