Last active
September 20, 2021 19:23
-
-
Save abdulmateen59/01774daacd5bf69da71be6180477897f to your computer and use it in GitHub Desktop.
Automated VS Code Deployment on Azure for Report Writing using Latex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3.7' | |
services: | |
latex-vscode: | |
tty: true | |
build: | |
context: . | |
dockerfile: Dockerfile | |
image: latex-vscode | |
ports: | |
- "8443:8443" | |
environment: | |
- PASSWORD=Th@nk5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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