Agregando git y ultimas configuraciones a el repo.
This commit is contained in:
@ -56,7 +56,7 @@ kubectl apply -f ./infrastructure/02-pv-pvc.yaml
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Paso 3: Crear el ConfigMap para el Script de Instalación de NVM y Extensiones de VSCode
|
## Paso 3: Crear el ConfigMap para el Script de Instalación de NVM y Extensiones de VSCode
|
||||||
Define un ConfigMap que contiene un script para instalar Node.js con NVM y otro ConfigMap que contiene un json donde se definen las extensiones a instalar. Utiliza el archivo [`03-configmaps.yaml`](../../infrastructure/03-configmaps.yaml).
|
Define un ConfigMap que contiene un script para instalar Node.js con NVM e instalar Git y otro ConfigMap que contiene un json donde se definen las extensiones a instalar. Utiliza el archivo [`03-configmaps.yaml`](../../infrastructure/03-configmaps.yaml).
|
||||||
|
|
||||||
Aplica el archivo con el siguiente comando:
|
Aplica el archivo con el siguiente comando:
|
||||||
```bash
|
```bash
|
||||||
|
@ -1,10 +1,27 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: git-install-script
|
||||||
|
namespace: vscode-tunnel
|
||||||
|
data:
|
||||||
|
01-git.sh: |
|
||||||
|
#!/bin/bash
|
||||||
|
# Installing git
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y git
|
||||||
|
if command -v git >/dev/null 2>&1; then
|
||||||
|
git config --global user.name "Alejandro Lembke Barrientos"
|
||||||
|
git config --global user.email "aleleba@hotmail.com"
|
||||||
|
fi
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: nvm-install-script
|
name: nvm-install-script
|
||||||
namespace: vscode-tunnel
|
namespace: vscode-tunnel
|
||||||
data:
|
data:
|
||||||
01-nvm.sh: |
|
02-nvm.sh: |
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Installing Node.js with NVM
|
# Installing Node.js with NVM
|
||||||
sudo curl -O https://raw.githubusercontent.com/creationix/nvm/master/install.sh
|
sudo curl -O https://raw.githubusercontent.com/creationix/nvm/master/install.sh
|
||||||
|
@ -40,8 +40,12 @@ spec:
|
|||||||
- name: nfs-vol
|
- name: nfs-vol
|
||||||
mountPath: /home/aleleba/projects
|
mountPath: /home/aleleba/projects
|
||||||
# - name: nvm-script
|
# - name: nvm-script
|
||||||
# mountPath: /usr/bin/custom-scripts/01-nvm.sh
|
# mountPath: /usr/bin/custom-scripts/02-nvm.sh
|
||||||
# subPath: 01-nvm.sh
|
# subPath: 02-nvm.sh
|
||||||
|
# readOnly: true
|
||||||
|
# - name: git-script
|
||||||
|
# mountPath: /usr/bin/custom-scripts/01-git.sh
|
||||||
|
# subPath: 01-git.sh
|
||||||
# readOnly: true
|
# readOnly: true
|
||||||
# - name: extensions-config
|
# - name: extensions-config
|
||||||
# mountPath: /home/extensions.json
|
# mountPath: /home/extensions.json
|
||||||
@ -55,6 +59,10 @@ spec:
|
|||||||
# configMap:
|
# configMap:
|
||||||
# name: nvm-install-script
|
# name: nvm-install-script
|
||||||
# defaultMode: 0555
|
# defaultMode: 0555
|
||||||
|
# - name: git-script
|
||||||
|
# configMap:
|
||||||
|
# name: git-install-script
|
||||||
|
# defaultMode: 0555
|
||||||
# - name: extensions-config
|
# - name: extensions-config
|
||||||
# configMap:
|
# configMap:
|
||||||
# name: vscode-tunnel-extensions
|
# name: vscode-tunnel-extensions
|
||||||
|
Reference in New Issue
Block a user