Skip to content

Dockerfile #12

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

Open
jputrino opened this issue Dec 21, 2016 · 2 comments
Open

Dockerfile #12

jputrino opened this issue Dec 21, 2016 · 2 comments
Assignees

Comments

@jputrino
Copy link

  • mount $HOME:$HOME (this allows us to use the .bash_profile/.bashrc customizations, i.e., make inside the container feel and look like outside the container)
  • entry point will be a script that:
    • accepts a set of env variables from the RUN script and sets them internally
    • creates the right users, groups, and IDs
    • ???

Things to be addressed later:

  • mounting $HOME can make docker builds too big and unwieldy
  • security issues (from others and from self)
@jputrino jputrino self-assigned this Dec 21, 2016
@jputrino jputrino assigned zancas and jputrino and unassigned jputrino Dec 21, 2016
@jputrino
Copy link
Author

Here's what's in the Dockerfile right now:

FROM ubuntu:16.04

ENV DEBIAN_FRONTEND noninteractive
ENV APPDIR /app
ENV LANG C.UTF-8

# System dependencies
RUN apt-get -y update
RUN apt-get -y install vim \ 
    software-properties-common \    
    python3-setuptools \
    python3 \ 
    python3-dev \
    python3-pip \
    git-core \
    build-essential \
    curl \ 
    wget \
    python3 \ 
    
RUN easy_install3 pip

# UID and GID from readthedocs/user
RUN useradd -m --uid 1001 --password "changeme" -U admin

USER admin

CMD ["/bin/bash"]

@jputrino
Copy link
Author

We can add the following RUN commands if we want to bake in conda:

RUN curl -O https://repo.continuum.io/archive/Anaconda3-4.2.0-Linux-x86_64.sh

RUN bash Anaconda3-4.2.0-Linux-x86_64.sh -b -p /usr/local/anaconda/

RUN ln -s /usr/local/anaconda/bin/conda /usr/local/bin/conda

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

No branches or pull requests

2 participants