UBC-MDS / DSCI_522_Group-11_Save-The-Earth

MIT License
0 stars 0 forks source link

1. Use a container for the computational environment #7

Closed tonyshumlh closed 10 months ago

tonyshumlh commented 10 months ago

Hi guys. Please help complete the containization of our environment

tonyshumlh commented 10 months ago

Below are the referenced code

FROM quay.io/jupyter/minimal-notebook:2023-11-19

COPY environment.yml .
RUN conda env update -f environment.yml
Jing-19 commented 10 months ago

Added docker file!

tonyshumlh commented 10 months ago

Hi @Jing-19 For docker-compose.yml, you may wanna try the reference code

services:
    {ANY_CONTAINER_NAME}:
      image: aish2712/dsci_522_group-11_save-the-earth:a456823
      ports:
        - "8888:8888"
      volumes:
        - .:/home/jovyan/work
      deploy:
        resources:
          limits:
            memory: 5G
      platform: linux/amd64 # For Mac M1/M2 chips
Jing-19 commented 10 months ago

Hi @tonyshumlh I have tried out the code you suggest locally, and I am able to compose it! Will push it to my branch now. FYI: I kept the ports: 8889:8888 instead of 8888:8888.

WeilinHan8 commented 10 months ago

@Jing-19 could you please update the dockerfile with package version

Jing-19 commented 10 months ago

Done!