Skip to content

Instantly share code, notes, and snippets.

@abdulmateen59
Last active September 20, 2021 19:23
Show Gist options
  • Save abdulmateen59/01774daacd5bf69da71be6180477897f to your computer and use it in GitHub Desktop.
Save abdulmateen59/01774daacd5bf69da71be6180477897f to your computer and use it in GitHub Desktop.
Automated VS Code Deployment on Azure for Report Writing using Latex
apiVersion: '2019-12-01'
location: eastus
name: development
properties:
containers:
- name: latex-vscode
properties:
environmentVariables:
- name: 'PASSWORD'
value: 'Th@nk5'
image: azurehub.azurecr.io/latex-vscode:latest
ports:
- port: 8443
resources:
requests:
cpu: 1.0
memoryInGB: 1.5
volumeMounts:
- mountPath: /config/workspace/
name: workspace
imageRegistryCredentials: # Credentials to pull a private image and do make sure its already pushed
- server: azurehub.azurecr.io
username: **********
password: *********************************
osType: Linux
restartPolicy: Always
ipAddress:
type: Public
ports:
- port: 8443
volumes:
- name: workspace
azureFile:
sharename: workspace
storageAccountName: ***********
storageAccountKey: *************************************
tags: {}
type: Microsoft.ContainerInstance/containerGroups
---
version: '3.7'
services:
latex-vscode:
tty: true
build:
context: .
dockerfile: Dockerfile
image: latex-vscode
ports:
- "8443:8443"
environment:
- PASSWORD=Th@nk5
FROM linuxserver/code-server:latest
RUN apt-get update && \
apt-get upgrade -y
RUN apt-get install -y --no-install-recommends texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment