Skip to content

Add Dockerfile with integrated dataGenerator#1

Open
dagyu wants to merge 4 commits into
brcondor:mainfrom
dagyu:main
Open

Add Dockerfile with integrated dataGenerator#1
dagyu wants to merge 4 commits into
brcondor:mainfrom
dagyu:main

Conversation

@dagyu

@dagyu dagyu commented Nov 17, 2020

Copy link
Copy Markdown

Hi,
I just add a Dockerfile to simplify the usage of dataGenerator "library".
Furthermore I advise you to use the fantastic feature provided by Github Packages that allows you to upload a docker file and use Github as a registry, so to start with our exercise we have just to run these commands:

#only the first time in order to download the image
docker pull docker.pkg.github.com/brcondor/Architectures_For_Big_Data/IMAGE_NAME:latest
docker run -p 8888:8888 IMAGE_NAME

Here there is a guide that allows you to upload a docker image in github.

Caveat (Login with docker)
The first time everyone (who push and who pull) should be logged into github package that is a pretty simple task, in a nutshell

  1. First you have to access in this page to obtain read:packages (and write:packages only for pushing permission)
  2. Save this token in ~/TOKEN.txt (or anywhere you want)
  3. And then login running this shell command $ cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u USERNAME --password-stdin

@dagyu

dagyu commented Nov 17, 2020

Copy link
Copy Markdown
Author

With the committ 16bf4f3 to enhance usability I just add dataGenerator as library. In this way attaching a volume become very simple, you can just run something like this:

docker run -d -p 8888:8888 -v /path/on/my/filesystem:/home/jovyan/work/ IMAGE_NAME

EDIT
If you run the command below you have to add read and write permission to the others, briefly:

chmod o+w -R  /path/on/my/filesystem

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.

1 participant