Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CoCalc #1554

Merged
merged 14 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions decmatt/.dshconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
azure:
admin_group_id: 347c68cb-261f-4a3e-ac3e-6af860b5fec9
location: uksouth
subscription_name: Data Safe Haven Development
shm:
name: newtest
2 changes: 2 additions & 0 deletions decmatt/newuser.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GivenName,Surname,Phone,Email
El,Vis,+447751185480,
2 changes: 2 additions & 0 deletions decmatt/testuser.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GivenName,Surname,Phone,Email
Matt,Craddock,+447751185480,[email protected]
2 changes: 2 additions & 0 deletions decmatt/wot.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GivenName,Surname,Phone,Email
El,Vis,+447751185480,
23 changes: 2 additions & 21 deletions deployment/common/Configuration.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ function Get-SreConfig {
}
}


# Firewall config
# ---------------
$config.sre.firewall = [ordered]@{
Expand Down Expand Up @@ -928,28 +927,10 @@ function Get-SreConfig {
$config.sre.remoteDesktop.networkRules.includeAzurePlatformDnsRule = ($config.sre.remoteDesktop.networkRules.outboundInternet -ne "Allow")


# CoCalc, CodiMD and Gitlab servers
# ---------------------------------
# CodiMD and Gitlab servers
# -------------------------
$config.sre.webapps = [ordered]@{
rg = "$($config.sre.rgPrefix)_WEBAPPS".ToUpper()
cocalc = [ordered]@{
adminPasswordSecretName = "$($config.sre.shortName)-vm-admin-password-cocalc"
dockerVersion = "latest"
hostname = "COCALC"
vmSize = "Standard_D2s_v3"
ip = Get-NextAvailableIpInRange -IpRangeCidr $config.sre.network.vnet.subnets.webapps.cidr -Offset 7
osVersion = "Ubuntu-latest"
disks = [ordered]@{
data = [ordered]@{
sizeGb = "512"
type = $config.sre.diskTypeDefault
}
os = [ordered]@{
sizeGb = "32"
type = $config.sre.diskTypeDefault
}
}
}
codimd = [ordered]@{
adminPasswordSecretName = "$($config.sre.shortName)-vm-admin-password-codimd"
hostname = "CODIMD"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ runcmd:
# Get icons for webapps
- echo "Downloading icons..."
- mkdir -p /opt/icons
- wget https://raw.githubusercontent.com/sagemathinc/cocalc/master/src/packages/assets/cocalc-icon.svg -O /tmp/cocalc-icon.svg || die "Could not find CoCalc icon!"
- convert -density 983 -transparent white /tmp/cocalc-icon.svg /opt/icons/cocalc.png || die "Could not convert CoCalc icon!" # this should give a 1024x1024 png
- wget https://raw.githubusercontent.com/hackmdio/codimd/develop/public/favicon.png -O /opt/icons/codimd.png || die "Could not find CodiMD icon!"
- wget https://about.gitlab.com/images/press/logo/png/gitlab-icon-rgb.png -O /opt/icons/gitlab.png || die "Could not find GitLab icon!"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ runcmd:
# Get icons for webapps
- echo "Downloading icons..."
- mkdir -p /opt/icons
- wget https://raw.githubusercontent.com/sagemathinc/cocalc/master/src/packages/assets/cocalc-icon.svg -O /tmp/cocalc-icon.svg || die "Could not find CoCalc icon!"
- convert -density 983 -transparent white /tmp/cocalc-icon.svg /opt/icons/cocalc.png || die "Could not convert CoCalc icon!" # this should give a 1024x1024 png
- wget https://raw.githubusercontent.com/hackmdio/codimd/develop/public/favicon.png -O /opt/icons/codimd.png || die "Could not find CodiMD icon!"
- wget https://about.gitlab.com/images/press/logo/png/gitlab-icon-rgb.png -O /opt/icons/gitlab.png || die "Could not find GitLab icon!"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,6 @@ runcmd:
# Get icons for webapps
- echo "Downloading icons..."
- mkdir -p /opt/icons
- wget https://raw.githubusercontent.com/sagemathinc/cocalc/master/src/packages/assets/cocalc-icon.svg -O /tmp/cocalc-icon.svg || die "Could not find CoCalc icon!"
- convert -density 983 -transparent white /tmp/cocalc-icon.svg /opt/icons/cocalc.png || die "Could not convert CoCalc icon!" # this should give a 1024x1024 png
- wget https://raw.githubusercontent.com/hackmdio/codimd/develop/public/favicon.png -O /opt/icons/codimd.png || die "Could not find CodiMD icon!"
- wget https://about.gitlab.com/images/press/logo/png/gitlab-icon-rgb.png -O /opt/icons/gitlab.png || die "Could not find GitLab icon!"

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,6 @@ write_files:
options(repos = r)
})

- path: "/etc/skel/Desktop/CoCalc.desktop"
permissions: "0755"
content: |
[Desktop Entry]
Version=1.0
Type=Link
Name=CoCalc
Comment=
Icon=/opt/icons/cocalc.png
URL=https://{{sre.webapps.cocalc.fqdn}}

- path: "/etc/skel/Desktop/CodiMD.desktop"
permissions: "0755"
content: |
Expand Down
Loading
Loading