Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dockerfile for creating conda env #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carbscountry
Copy link

dockerfile

FROM continuumio/miniconda3

# setting Conda Path
ENV PATH /opt/conda/bin:$PATH

COPY environment.yml .
RUN conda env create -f environment.yml

docker-compse.yml

version: '3.9'
services:
  app:
    build: .
    # dockerfile: Dockerfile
    container_name: 'beyond-jupyter'
    working_dir: '/workspace'
    volumes:
      - ./:/workspace/
    ports:
      - 8888:8888

    tty: true
    networks:
      - db_network

networks:
  db_network:
    external: true

Use conda with docker

beyond-jupyter % docker-compose up -d app
beyond-jupyter % docker-compose exec app /bash/bin
# on docker container
/workspace# source activate pop

access jyupyterlab

# on docker container
/workspace# jupyter lab --allow-root --no-browser --NotebookApp.token='' --port 8888 --ip=0.0.0.0

Access with a browser to http://localhost:8888/

@schroedk
Copy link
Collaborator

@carbscountry thank you for your contribution and welcome to beyond-jupyter. We are sorry for the somehow longish response time, we are still in a very early stage. Regarding your pull request, I would like to ask you if you would agree to slightly adapt your idea towards the following issue #15 ? The reason is, that we do not want to embrace the usage of jupyter notebooks here, as it would somehow contradicts the purpose of this repository. We hope this explanation helps. Please, let me know, what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants