Skip to content

Commit 7fc3d82

Browse files
Use binder directory for configuration files (#85)
* Revert move of Docker related files This is now unnecessary, so don't do it. Also remove the instructions that aren't needed now. * Move environment.yml to Binder dir * Update paths and docs to use Binder dir * Use modern Binder badge
1 parent 5694131 commit 7fc3d82

File tree

9 files changed

+10
-20
lines changed

9 files changed

+10
-20
lines changed

.azure-pipelines/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ steps:
1919

2020
- script: |
2121
# Install Python, py.test, and required packages.
22-
conda env create -f environment.yml
22+
conda env create -f binder/environment.yml
2323
source activate bayesian-modelling-tutorial
2424
conda install -y python=$(python.version)
2525
python -m ipykernel install --user --name bayesian-modelling-tutorial

.azure-pipelines/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ steps:
1515

1616
# - script: |
1717
# # Install Python, py.test, and required packages.
18-
# conda env create -f environment.yml
18+
# conda env create -f binder/environment.yml
1919
# source activate bayesian-modelling-tutorial
2020
# conda install -y python=$(python.version)
2121
# python -m ipykernel install --user --name bayesian-modelling-tutorial

.azure-pipelines/templates/setup-script-nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
22
- script: |
3-
conda env create -f environment.yml
3+
conda env create -f binder/environment.yml
44
source activate bayesian-modelling-tutorial
55
conda install -y python=$(python.version)
66
python -m ipykernel install --user --name bayesian-modelling-tutorial

.azure-pipelines/templates/setup-script-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
22
- script: |
3-
conda env create -f environment.yml
3+
conda env create -f binder/environment.yml
44
activate bayesian-modelling-tutorial
55
conda install -y python=$(python.version)
66
python -m ipykernel install --user --name bayesian-modelling-tutorial
File renamed without changes.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install:
2323
- conda info -a
2424

2525
# Install Python, py.test, and required packages.
26-
- conda env create -f environment.yml
26+
- conda env create -f binder/environment.yml
2727
- source activate bayesian-modelling-tutorial
2828
# This guarantees that the Python version is matrixed.
2929
- conda install python=$PYTHON_VERSION

utils/Dockerfile renamed to Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
##### INSTRUCTIONS TO USE #####
2-
# Move this file
3-
# and the .dockerignore file
4-
# to the base directory of the repo
5-
# before using Docker to build the container.
6-
# This file was moved into `utils/`
7-
# because it was overriding the original
8-
# conda environment-based build using `environment.yml`.
9-
##### END INSTRUCTIONS #####
10-
111
# Base image: miniconda3
122
FROM continuumio/miniconda3
133

144
# Install GCC for Theano
155
RUN apt-get install build-essential -y
166

177
# Install environment
18-
COPY ./environment.yml /environment.yml
8+
COPY ./binder/environment.yml /environment.yml
199
RUN conda env create -f /environment.yml
2010
RUN rm /environment.yml
2111

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
1+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
22

33
# bayesian-stats-modelling-tutorial
44

@@ -41,7 +41,7 @@ to **install all the necessary packages**
4141
from the provided `environment.yml` file.
4242

4343
```bash
44-
conda env create -f environment.yml
44+
conda env create -f binder/environment.yml
4545
```
4646

4747
To **activate the environment**, use the `conda activate` command.
@@ -59,7 +59,7 @@ source activate bayesian-modelling-tutorial
5959
To **update the environment** based on the `environment.yml` specification file, use the `conda update` command.
6060

6161
```bash
62-
conda env update -f environment.yml
62+
conda env update -f binder/environment.yml
6363
```
6464

6565
### 3b. `pip` users
@@ -75,7 +75,7 @@ pip install networkx scipy ...
7575

7676
If you don't want to mess around with dev-ops, click the following badge to get a Binder session on which you can compute and write code.
7777

78-
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
78+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ericmjl/bayesian-stats-modelling-tutorial/master)
7979

8080

8181
### 4a. Open your Jupyter notebook
File renamed without changes.

0 commit comments

Comments
 (0)