Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Adds more packages and tries to run conda-lock on env but currently i…
Browse files Browse the repository at this point in the history
  • Loading branch information
BielStela committed Jun 19, 2023
1 parent bfb7d44 commit 1d1470c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 39 deletions.
1 change: 0 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"description": "A short description of the project.",
"version": "0.2.0",
"cloud_provider": ["aws", "gcp", "azure", "none"],
"create_author_file": "y",
"open_source_license": ["MIT", "ISC license", "Apache Software License 2.0", "GNU General Public License v3","BSD-3-Clause", "Not open source"],
"_extensions": ["cookiecutter.extensions.SlugifyExtension"]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM mambaorg/micromamba:1.3.1
FROM mambaorg/micromamba:1.4.4

COPY --chown=$MAMBA_USER:$MAMBA_USER package.yaml /tmp/package.yaml
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/environment.yml

RUN micromamba install -n base --yes --file /tmp/package.yaml && \
RUN micromamba install -n base --yes --file /tmp/environment.yml && \
micromamba clean --all --yes

# Otherwise python will not be found
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.repo_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ init-git:
init-prehooks:
pre-commit install && pre-commit run --all-files

## autoformat your code with yapf and then lint it using flake8
lint:
black {{ cookiecutter.project_slug }} && flake8 {{ cookiecutter.project_slug }}
black {{ cookiecutter.project_slug }}
ruff {{ cookiecutter.project_slug }}

# ## Run your code tests using tox
# test:
Expand Down
27 changes: 3 additions & 24 deletions {{ cookiecutter.repo_name }}/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
version: '3.8'
services:
## this is for working with dask; uncomment if needed
# scheduler:
# context: ./notebooks
# dockerfile: Dockerfile
# #image: daskdev/dask
# hostname: dask-scheduler
# ports:
# - "8786:8786"
# - "8787:8787"
# command: ["dask-scheduler"]
#
# worker:
# context: ./notebooks
# dockerfile: Dockerfile
# #image: daskdev/dask
# volumes:
# - ./data:/home/jovyan/work/datasets
# - ./notebooks:/home/jovyan/work/notebooks
# - ${LOCAL_MODULES}:/home/jovyan/work/modules
# hostname: dask-worker
# command: ["dask-worker", "tcp://scheduler:8786"]
{{ cookiecutter.project_slug }}-notebooks:
build:
context: ./notebooks
dockerfile: Dockerfile
context: .
volumes:
- ./data:/home/mambauser/data
- ./notebooks:/home/mambauser/notebooks
ports:
- 8887:8888
- 8888:8888
- 8787:8787 # dask dashboard
container_name: {{ cookiecutter.project_slug }}_jupyter_notebook
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: base
name: vizztools
channels:
- conda-forge
- default
- defaults
- nodefaults
- javascript
- pip
platforms:
- linux-64
- osx-64
- win-64
dependencies:
- python>=3.8
- nodejs>=14
- python>=3.10
- notebook
- jupyterhub
- jupyterlab
Expand All @@ -31,8 +28,15 @@ dependencies:
- gcsfs
- fsspec
- watchdog
- flake8
- ruff
- black[jupyter]
- python-dotenv
- pre-commit
- click
- rich
- rasterio
- rioxarray
- rio-tiler
- rio-cogeo
- nbqa
- conda-lock
1 change: 0 additions & 1 deletion {{ cookiecutter.repo_name }}/notebooks/.dockerignore

This file was deleted.

0 comments on commit 1d1470c

Please sign in to comment.