Skip to content

Commit 2d4f5ca

Browse files
authored
Merge pull request #361 from lewagon/build-templating
templating
2 parents cbbb45b + aec38e5 commit 2d4f5ca

58 files changed

Lines changed: 720 additions & 455 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
9+
- uses: ruby/setup-ruby@v1
10+
with:
11+
bundler-cache: true
12+
- name: Install dependencies
13+
run: bundle install
914
- name: Build
1015
run: |
1116
git config user.name github-actions
1217
git config user.email github-actions@github.com
13-
ruby build.rb
18+
bundle exec ruby build.rb
1419
if ! git diff --exit-code
1520
then
1621
git add .

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
Layout/HashAlignment:
3+
Enabled: false
4+
5+
Layout/LeadingEmptyLines:
6+
Enabled: false

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gem "liquid"
4+
gem "base64"
5+
gem "cgi"

Gemfile.lock

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
base64 (0.3.0)
5+
bigdecimal (4.1.2)
6+
cgi (0.5.1)
7+
liquid (5.12.0)
8+
bigdecimal
9+
strscan (>= 3.1.1)
10+
strscan (3.1.8)
11+
12+
PLATFORMS
13+
arm64-darwin-24
14+
ruby
15+
16+
DEPENDENCIES
17+
base64
18+
cgi
19+
liquid
20+
21+
CHECKSUMS
22+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
23+
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
24+
cgi (0.5.1) sha256=e93fcafc69b8a934fe1e6146121fa35430efa8b4a4047c4893764067036f18e9
25+
liquid (5.12.0) sha256=5a3c2c2430cd925d21c53e4ed9abea52cd0a9da53b541422f81dee79aca2a673
26+
strscan (3.1.8) sha256=aae2db611a225559f21ffbb71765c9a4e60fd262534a9ea84f4f11c7f32f679e
27+
28+
BUNDLED WITH
29+
4.0.10

LINUX.es.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ Cuando termines, tu terminal debería lucir así:
203203

204204
[direnv](https://direnv.net/) es una extensión del shell. Facilita trabajar con variables de entorno por proyecto, lo cual será útil para customizar el comportamiento de tu código.
205205

206+
206207
``` bash
207208
sudo apt-get update; sudo apt-get install direnv
208209
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
209210
```
210211

211212

213+
212214
## GitHub CLI
213215

214216
CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wiki/Command-line_interface) que significa interfaz de línea de comando.
@@ -505,8 +507,10 @@ Chequea si tienes `conda` instalado en tu computadora:
505507
```bash
506508
conda list
507509
```
510+
508511
Si aparece `zsh: command not found: conda`, puedes **saltear** la desinstalación de `conda` e ir directo a la sección de **Instalar pre-requisitos**.
509512

513+
510514
<details>
511515
<summary markdown='span'>Instrucciones de desinstalación <code>conda</code></summary>
512516

@@ -520,11 +524,14 @@ anaconda-clean --yes
520524
rm -rf ~/anaconda2
521525
rm -rf ~/anaconda3
522526
rm -rf ~/.anaconda_backup
527+
523528
```
524529
- Elimina el directorio Anaconda de tu `.bash_profile`
525530
- Abre el archivo con `code ~/.bash_profile`
526531
- Si el archivo abre, busca la línea que coincida con el siguiente patrón `export PATH="/path/to/anaconda3/bin:$PATH"` y eliminala
532+
527533
- Guarda el archivo con `CTRL` + `s`
534+
528535
- Reinicia la terminal con `exec zsh`
529536
- Remueve la inicializaciópn de Anaconda de tu `.zshrc`:
530537
- Abre el archivo con `code ~/.zshrc`
@@ -612,11 +619,13 @@ pip install --upgrade pip
612619

613620
Ahora instala algunos paquetes para las primeras semanas del programa:
614621

622+
615623
``` bash
616624
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
617625
```
618626

619627

628+
620629
## Mejora Jupyter Notebook
621630

622631
Mejora la visualización del [elemento `details` para revelación de información](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) en tus notebooks.

LINUX.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,14 @@ At the end your terminal should look like this:
227227

228228
[direnv](https://direnv.net/) is a shell extension. It makes it easy to deal with per project environment variables. This will be useful in order to customize the behavior of your code.
229229

230+
230231
``` bash
231232
sudo apt-get update; sudo apt-get install direnv
232233
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
233234
```
234235

235236

237+
236238
## GitHub CLI
237239

238240
CLI is the acronym of [Command-line Interface](https://en.wikipedia.org/wiki/Command-line_interface).
@@ -520,8 +522,10 @@ Check if you have `conda` installed on your machine:
520522
```bash
521523
conda list
522524
```
525+
523526
If you have `zsh: command not found: conda`, you can **skip** the uninstall of `conda` and jump to the **Install `pyenv`** section.
524527

528+
525529
<details>
526530
<summary markdown='span'><code>conda</code> uninstall instructions</summary>
527531

@@ -535,11 +539,14 @@ anaconda-clean --yes
535539
rm -rf ~/anaconda2
536540
rm -rf ~/anaconda3
537541
rm -rf ~/.anaconda_backup
542+
538543
```
539544
- Remove Anaconda path from your `.bash_profile`
540545
- Open the file with `code ~/.bash_profile`
541546
- If the file opens find the line matching the following pattern `export PATH="/path/to/anaconda3/bin:$PATH"` and delete the line
547+
542548
- Save the file with `CTRL` + `s`
549+
543550
- Restart your terminal with `exec zsh`
544551
- Remove Anaconda initialization from your `.zshrc`:
545552
- Open the file with `code ~/.zshrc`
@@ -648,11 +655,13 @@ pip install --upgrade pip
648655

649656
Then let's install some packages for the first weeks of the program:
650657

658+
651659
``` bash
652660
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
653661
```
654662

655663

664+
656665
## Jupyter Notebook tweaking
657666

658667
Let's improve the display of the [`details` disclosure elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) in your notebooks.
@@ -926,10 +935,12 @@ Once the verification goes through, you should receive an email stating that "Yo
926935

927936
- Authenticate the `gcloud` CLI with the google account you used for GCP
928937

938+
929939
```bash
930940
gcloud auth login
931941
```
932942

943+
933944
- Login to your Google account on the new tab opened in your web browser
934945
- List your active account and check your email address you used for GCP is present
935946
```bash

LINUX_keep_current.es.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ type -a pyenv > /dev/null && eval "$(pyenv init --path)"
8686

8787
Actualiza pyenv:
8888

89+
8990
``` bash
9091
cd $(pyenv root) && git pull
9192
```
9293

94+
9395
Instala la versión actual de python:
9496

9597
```bash
@@ -140,10 +142,12 @@ pyenv versions
140142
pip install -U pip
141143
```
142144

145+
143146
``` bash
144147
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
145148
```
146149

150+
147151
## GCP
148152

149153
Asegúrate de que el comando `gcloud` esté conectado con el email de tu cuenta Google Cloud Platform:
@@ -252,12 +256,14 @@ gcloud auth configure-docker
252256

253257
## Docker
254258

259+
255260
Start Docker :
256261

257262
``` bash
258263
sudo service docker start
259264
```
260265

266+
261267
Verifica que Docker pueda ejecutar la imagen de hello-world:
262268

263269
``` bash
@@ -266,13 +272,15 @@ docker run hello-world
266272

267273
👉 Asegúrate de que este comando se ejecute completamente
268274

275+
269276
Stop Docker :
270277

271278
``` bash
272279
sudo service docker stop
273280
```
274281

275282

283+
276284
## Chequeo de la configuración de Python
277285

278286
### Chequeo de Python y packages

LINUX_keep_current.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ type -a pyenv > /dev/null && eval "$(pyenv init --path)"
8686

8787
Update pyenv :
8888

89+
8990
``` bash
9091
cd $(pyenv root) && git pull
9192
```
9293

94+
9395
Install the current python version :
9496

9597
```bash
@@ -140,10 +142,12 @@ pyenv versions
140142
pip install -U pip
141143
```
142144

145+
143146
``` bash
144147
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
145148
```
146149

150+
147151
## GCP
148152

149153
Make sure that the `gcloud` command is linked to the email address of your Google Cloud Platform account :
@@ -252,12 +256,14 @@ gcloud auth configure-docker
252256

253257
## Docker
254258

259+
255260
Start Docker :
256261

257262
``` bash
258263
sudo service docker start
259264
```
260265

266+
261267
Verify that Docker can run the hello-world image :
262268

263269
``` bash
@@ -266,13 +272,15 @@ docker run hello-world
266272

267273
👉 Make sure that this command completes correctly
268274

275+
269276
Stop Docker :
270277

271278
``` bash
272279
sudo service docker stop
273280
```
274281

275282

283+
276284
## Python setup check
277285

278286
### Python and packages check

REMOTE_SETUP.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,12 +502,14 @@ At the end your terminal should look like this:
502502

503503
[direnv](https://direnv.net/) is a shell extension. It makes it easy to deal with per project environment variables. This will be useful in order to customize the behavior of your code.
504504

505+
505506
``` bash
506507
sudo apt-get update; sudo apt-get install direnv
507508
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
508509
```
509510

510511

512+
511513
## GitHub CLI
512514

513515
CLI is the acronym of [Command-line Interface](https://en.wikipedia.org/wiki/Command-line_interface).
@@ -884,11 +886,13 @@ pip install --upgrade pip
884886

885887
Then let's install some packages for the first weeks of the program:
886888

889+
887890
``` bash
888891
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
889892
```
890893

891894

895+
892896
## Jupyter Notebook tweaking
893897

894898
Let's improve the display of the [`details` disclosure elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) in your notebooks.

VM.es.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,12 +370,14 @@ Cuando termines, tu terminal debería lucir así:
370370

371371
[direnv](https://direnv.net/) es una extensión del shell. Facilita trabajar con variables de entorno por proyecto, lo cual será útil para customizar el comportamiento de tu código.
372372

373+
373374
``` bash
374375
sudo apt-get update; sudo apt-get install direnv
375376
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
376377
```
377378

378379

380+
379381
## GitHub CLI
380382

381383
CLI es una abreviación de [Command-line Interface](https://en.wikipedia.org/wiki/Command-line_interface) que significa interfaz de línea de comando.
@@ -756,11 +758,13 @@ pip install --upgrade pip
756758

757759
Ahora instala algunos paquetes para las primeras semanas del programa:
758760

761+
759762
``` bash
760763
pip install -r https://raw.githubusercontent.com/lewagon/data-setup/master/specs/releases/linux.txt
761764
```
762765

763766

767+
764768
## Mejora Jupyter Notebook
765769

766770
Mejora la visualización del [elemento `details` para revelación de información](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) en tus notebooks.

0 commit comments

Comments
 (0)