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

RFC: Adding a number of docker images #241

Merged
merged 7 commits into from
Jul 15, 2020
Merged

RFC: Adding a number of docker images #241

merged 7 commits into from
Jul 15, 2020

Conversation

dellaert
Copy link
Member

@dellaert dellaert commented Mar 6, 2020

These were a number of github images I created to support assignments in a class, and I believe they might be valuable by themselves. Let's discuss whether this collection and structure for the docker folder is the right way to go.


This change is Reviewable

@dellaert dellaert added enhancement Improvement to GTSAM feature New proposed feature labels Mar 6, 2020
Copy link
Collaborator

@varunagrawal varunagrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a bunch of logistical work. Will start on it today.

@@ -0,0 +1,18 @@
# Get the base Ubuntu/GTSAM image from Docker Hub
FROM dellaert/ubuntu-gtsam-python:bionic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a common namespace like borglab?
It would help with maintenance and management.

@@ -0,0 +1,29 @@
# Get the base Ubuntu/GTSAM image from Docker Hub
FROM dellaert/ubuntu-gtsam:bionic
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Common namespace

FROM dellaert/ubuntu-gtsam:bionic

# Install pip
RUN apt-get install -y python-pip python-dev
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should say python3-pip and python3-dev. Ideally, we should be using pyenv to make python version management easy.

RUN apt-get install -y python-pip python-dev

# Install python wrapper requirements
RUN pip install -r /usr/src/gtsam/cython/requirements.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check if pip invokes the built in pip2 (which is deprecated) or pip3.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about using python3 -m pip install ... to be 100% sure?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be the best option. 🙂


# Clone GTSAM
WORKDIR /usr/src/
RUN git clone https://bitbucket.org/gtborg/gtsam.git
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be updated to use github and perhaps pull the develop branch which has a lot of new niceness?

apt-get install -y git

# Install compiler
RUN apt-get install -y build-essential
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the previous command can be merged to finish in a single download.

@dellaert dellaert mentioned this pull request Jul 7, 2020
26 tasks
@dellaert
Copy link
Member Author

@jlblancoc what's your take on this PR? :-)

@varunagrawal varunagrawal added this to the GTSAM 4.1 milestone Jul 13, 2020
@dellaert dellaert modified the milestones: GTSAM 4.1, GTSAM 4.1.1 Jul 14, 2020
@jlblancoc
Copy link
Member

@jlblancoc what's your take on this PR? :-)

Awesome, I made it work!

Screenshot from 2020-07-14 23-30-22

See the last commits, though, with a couple of details I needed to change to fix it.
It was not obvious for me how to proceed, so wrote a short README.

@dellaert dellaert merged commit da2d1f3 into develop Jul 15, 2020
@dellaert dellaert deleted the feature/docker branch July 15, 2020 10:34
@varunagrawal
Copy link
Collaborator

@dellaert I am deleting the branch feature/docker_images with the commit c1f9bc2 since it is a duplicate of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to GTSAM feature New proposed feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants