-
Notifications
You must be signed in to change notification settings - Fork 22
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
I1308 docker base image for release #1320
Conversation
RUN echo "deb http://cran.rstudio.com/bin/linux/debian lenny-cran/" >> /etc/apt/source.list &&\ | ||
apt-key adv --keyserver hkp://pgp.mit.edu --recv-key 381BA480 &&\ | ||
apt-get update &&\ | ||
apt-get install -y r-base &&\ | ||
apt-get install -y unzip &&\ | ||
apt-get install -y r-base &&\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we are removing this. Or is that a separate issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1316 for removing R
docker/smv/Dockerfile
Outdated
|
||
COPY --from=smv-build ${PYENV_ROOT} ${PYENV_ROOT} | ||
COPY --from=smv-build /usr/lib/SMV/smv_*.tgz . | ||
RUN tar xzvf smv_*.tgz && rm -rf smv_*.tgz && mv ./SMV ${SMV_HOME} &&\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block really needs a comment to explain what is going on and why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a header comment to describe the multi-stage pattern and some inline comments explaining the copies from first to second stage.
py-doc: $(PYDOC_DEST) | ||
|
||
$(PYDOC_DEST): install-spark-default | ||
env SMV_VERSION=$(SMV_VERSION) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt using env
is the best solution to the problem of exporting env variables to sphinx. It was the first I got to work. Need to at least dry out this approach since it is c/p'd a few lines down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually env
is the "unixish" way. That is the whole purpose of env
existence 😄
docker/smv/Dockerfile
Outdated
COPY --from=smv-build ${PYENV_ROOT} ${PYENV_ROOT} | ||
# Copy the SMV release artifact from the first stage and unpack it. Since the same artifact is also copied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
py-doc: $(PYDOC_DEST) | ||
|
||
$(PYDOC_DEST): install-spark-default | ||
env SMV_VERSION=$(SMV_VERSION) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually env
is the "unixish" way. That is the whole purpose of env
existence 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome.
Resolves #1308.
@jacobdr Please have a look tomorrow if you have time.
The goal of this PR is to reduce the complexity of
smv-release
.