Skip to content

Commit

Permalink
Merge pull request microsoft#50 from ImperialCollegeLondon/imperial-d…
Browse files Browse the repository at this point in the history
…evelopment

Imperial development v3 code
  • Loading branch information
danny-cooke-icl committed May 3, 2024
2 parents 1453a51 + 9584544 commit 625b93c
Show file tree
Hide file tree
Showing 25 changed files with 286 additions and 81 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"args": {
// To ensure that the group ID for the docker group in the container
// matches the group ID on the host, add this to your .bash_profile on the host
// export DOCKER_GROUP_ID=$(getent group docker | awk -F ":" '{ print $3 }')
// export DOCKER_GROUP_ID=$(getent group docker | awk -F ":" '{ print $3 }' )
"DOCKER_GROUP_ID": "${localEnv:DOCKER_GROUP_ID}",
"INTERACTIVE": "true"
}
Expand Down
2 changes: 1 addition & 1 deletion api_app/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.18.10"
__version__ = "0.18.11"
2 changes: 1 addition & 1 deletion api_app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@

API_AUDIENCE: str = config("API_AUDIENCE", default=API_CLIENT_ID)

AIRLOCK_SAS_TOKEN_EXPIRY_PERIOD_IN_HOURS: int = config("AIRLOCK_SAS_TOKEN_EXPIRY_PERIOD_IN_HOURS", default=1)
AIRLOCK_SAS_TOKEN_EXPIRY_PERIOD_IN_HOURS: int = config("AIRLOCK_SAS_TOKEN_EXPIRY_PERIOD_IN_HOURS", default=48)

API_ROOT_SCOPE: str = f"api://{API_CLIENT_ID}/user_impersonation"
2 changes: 1 addition & 1 deletion core/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.5"
__version__ = "0.9.6"
2 changes: 1 addition & 1 deletion templates/shared_services/sonatype-nexus-vm/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-shared-service-sonatype-nexus
version: 2.8.13
version: 2.8.17
description: "A Sonatype Nexus shared service"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[
"NexusAuthenticatingRealm",
"NexusAuthorizingRealm",
"DockerToken"
"DockerToken",
"NexusAuthenticatingRealm"
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "microsoft-download",
"online": true,
"storage": {
"blobStoreName": "default",
"strictContentTypeValidation": true,
"write_policy": "ALLOW"
},
"proxy": {
"remoteUrl": "https://download.microsoft.com/download",
"contentMaxAge": 1440,
"metadataMaxAge": 1440
},
"negativeCache": {
"enabled": true,
"timeToLive": 1440
},
"httpClient": {
"blocked": false,
"autoBlock": false,
"connection": {
"retries": 0,
"userAgentSuffix": "string",
"timeout": 60,
"enableCircularRedirects": false,
"enableCookies": false,
"useTrustStore": false
}
},
"baseType": "raw",
"repoType": "proxy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "r-studio-download",
"online": true,
"storage": {
"blobStoreName": "default",
"strictContentTypeValidation": true,
"write_policy": "ALLOW"
},
"proxy": {
"remoteUrl": "https://download1.rstudio.org",
"contentMaxAge": 1440,
"metadataMaxAge": 1440
},
"negativeCache": {
"enabled": true,
"timeToLive": 1440
},
"httpClient": {
"blocked": false,
"autoBlock": false,
"connection": {
"retries": 0,
"userAgentSuffix": "string",
"timeout": 60,
"enableCircularRedirects": false,
"enableCookies": false,
"useTrustStore": false
}
},
"baseType": "raw",
"repoType": "proxy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "snapcraft",
"online": true,
"storage": {
"blobStoreName": "default",
"strictContentTypeValidation": true,
"write_policy": "ALLOW"
},
"proxy": {
"remoteUrl": "https://snapcraftcontent.com",
"contentMaxAge": 1440,
"metadataMaxAge": 1440
},
"negativeCache": {
"enabled": true,
"timeToLive": 1440
},
"httpClient": {
"blocked": false,
"autoBlock": false,
"connection": {
"retries": 0,
"userAgentSuffix": "string",
"timeout": 60,
"enableCircularRedirects": false,
"enableCookies": false,
"useTrustStore": false
}
},
"baseType": "raw",
"repoType": "proxy"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
core_vnet = "vnet-${var.tre_id}"
core_resource_group_name = "rg-${var.tre_id}"
nexus_allowed_fqdns = "pypi.org,*.pypi.org,files.pythonhosted.org,security.ubuntu.com,archive.ubuntu.com,keyserver.ubuntu.com,repo.anaconda.com,*.docker.com,*.docker.io,conda.anaconda.org,azure.archive.ubuntu.com,packages.microsoft.com,repo.almalinux.org,download-ib01.fedoraproject.org,cran.r-project.org,cloud.r-project.org"
nexus_allowed_fqdns = "pypi.org,*.pypi.org,files.pythonhosted.org,security.ubuntu.com,archive.ubuntu.com,keyserver.ubuntu.com,repo.anaconda.com,*.docker.com,*.docker.io,conda.anaconda.org,azure.archive.ubuntu.com,packages.microsoft.com,repo.almalinux.org,download-ib01.fedoraproject.org,cran.r-project.org,cloud.r-project.org,download1.rstudio.org,*.snapcraftcontent.com,download.microsoft.com"
nexus_allowed_fqdns_list = distinct(compact(split(",", replace(local.nexus_allowed_fqdns, " ", ""))))
workspace_vm_allowed_fqdns = "r3.o.lencr.org,x1.c.lencr.org"
workspace_vm_allowed_fqdns_list = distinct(compact(split(",", replace(local.workspace_vm_allowed_fqdns, " ", ""))))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ resource "azurerm_user_assigned_identity" "nexus_msi" {
location = data.azurerm_resource_group.rg.location
resource_group_name = local.core_resource_group_name
tags = local.tre_shared_service_tags

lifecycle { ignore_changes = [tags] }
}

Expand Down
2 changes: 1 addition & 1 deletion templates/workspace_services/guacamole/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-guacamole
version: 0.10.7
version: 0.10.8
description: "An Azure TRE service for Guacamole"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"title": "Disable 'Paste'",
"description": "Disable Paste functionality",
"updateable": true,
"default": true
"default": false
},
"guac_enable_drive": {
"$id": "#/properties/guac_enable_drive",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-guacamole-linuxvm
version: 0.6.9
version: 0.6.10
description: "An Azure TRE User Resource Template for Guacamole (Linux)"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ apt:
deb [trusted=yes] $PRIMARY $RELEASE main restricted universe multiverse
deb [trusted=yes] $PRIMARY $RELEASE-updates main restricted universe multiverse
deb [trusted=yes] $SECURITY $RELEASE main restricted universe multiverse
deb [signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] ${nexus_proxy_url}/repository/microsoft-apt/ubuntu/18.04/prod $RELEASE main
deb [signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] ${nexus_proxy_url}/repository/microsoft-apt/ubuntu/${apt_sku}/prod $RELEASE main
deb [signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] ${nexus_proxy_url}/repository/microsoft-apt/repos/edge stable main
deb [signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] ${nexus_proxy_url}/repository/microsoft-apt/repos/vscode stable main
deb [signed-by=/etc/apt/trusted.gpg.d/microsoft.gpg] ${nexus_proxy_url}/repository/microsoft-apt/repos/azure-cli stable main
deb [signed-by=/etc/apt/trusted.gpg.d/docker-archive-keyring.gpg] ${nexus_proxy_url}/repository/docker/ $RELEASE stable
2 changes: 1 addition & 1 deletion ui/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tre-ui",
"version": "0.5.10",
"version": "0.5.29",
"private": true,
"dependencies": {
"@azure/msal-browser": "^2.35.0",
Expand Down
2 changes: 1 addition & 1 deletion ui/app/src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ code {

.tre-top-nav {
// box-shadow: 0 1px 2px 0px #033d68;
box-shadow: 0 1px 2px 0px #003E74;
box-shadow: 0 1px 2px 0px #0000CD;
z-index: 100;
}

Expand Down
63 changes: 29 additions & 34 deletions ui/app/src/assets/imperial_college_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions ui/app/src/assets/imperial_college_logo_old.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions ui/app/src/components/shared/ComplexItemDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const contentStyles = mergeStyleSets({
{
flex: '1 1 auto',
// borderTop: `4px solid ${theme.palette.themePrimary}`,
borderTop: `4px solid #006EAF`,
color: theme.palette.neutralPrimary,
borderTop: `4px solid #0000CD`,
color: '#0000CD',
display: 'flex',
alignItems: 'center',
fontWeight: FontWeights.semibold,
Expand All @@ -112,12 +112,12 @@ const contentStyles = mergeStyleSets({
});
const iconButtonStyles: Partial<IButtonStyles> = {
root: {
color: theme.palette.neutralPrimary,
color: '#0000CD',
marginLeft: 'auto',
marginTop: '4px',
marginRight: '2px',
},
rootHovered: {
color: theme.palette.neutralDark,
color: '#161A1D',
},
};
4 changes: 2 additions & 2 deletions ui/app/src/components/shared/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const contentClass = mergeStyles([
{
alignItems: 'center',
// backgroundColor: theme.palette.themeDark,
backgroundColor: '#003E74',
backgroundColor: '#0000CD',
color: theme.palette.white,
lineHeight: '25px',
padding: '0 20px',
Expand All @@ -140,7 +140,7 @@ const iconButtonStyles: Partial<IButtonStyles> = {
color: theme.palette.white,
},
rootHovered: {
color: theme.palette.neutralDark,
color: '#161A1D',
},
};

Expand Down
Loading

0 comments on commit 625b93c

Please sign in to comment.