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

Docker setup 102 #18

Merged
merged 3 commits into from
Aug 13, 2019
Merged

Conversation

shaneikennedy
Copy link
Contributor

👋 Hello again,

Last week I PR'd some commits that added a basic docker setup and a readme with instructions for how to get started on the 101 codelab, and this is a similar PR for 102.

Let me know if you have any questions or suggestions for improvements 👍

@@ -1,4 +1,4 @@
FROM haskell:latest
FROM haskell:8
Copy link
Member

Choose a reason for hiding this comment

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

Clarifying question: why don't we pull from the latest tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that there is a deprecation warning on cabal when installing dependencies using cabal install <pkg> so I figured locking the version would make sure people using this repo for learning haskell would never have a failing docker build in case haskell:9 came out, for example

Copy link
Member

Choose a reason for hiding this comment

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

That's perfect. Let's also add a comment for this so that when future changes upgrade tag we know to check that the warnings are gone. Thank you

RUN cabal update && cabal install random
WORKDIR /codelab

COPY . .
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this a no-op? (I'm no Docker expert, so maybe I'm missing something)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

COPY <src> <dest>
This copies the entire directory from the codelab folder of this repo in to the current folder of the container, which in this case is /codelab
See COPY for more https://docs.docker.com/engine/reference/builder/#copy

Copy link
Member

Choose a reason for hiding this comment

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

Can you add a short comment for this, please? To not trip future readers.

Thank you for the clarification

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing 👍

@shaneikennedy
Copy link
Contributor Author

Hey @mihaimaruseac does anything else need to be done here?

@mihaimaruseac mihaimaruseac merged commit 2410fcd into google:master Aug 13, 2019
@mihaimaruseac
Copy link
Member

Sorry, didn't get new notifications and missed it.

Thanks for the ping and the PR

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.

2 participants