How to use github code in docker

Hi
I am here to ask a novice question please bear with me.

I have provided codes saved in github and advised to create a build to run in docker.

Could anyone please give an idea what to do indeed? please assume its set of jsp and java class file.

Thanks

Hi,

You should learn to write Dockerfile if you haven’t already. You can get many example projects where Dockerfile has projects being cloned from github and used.

Regards

Thanks ranjandas for your reply.

Could you please give me one example link? I would be grateful.

-rafiqul

Hi,

The links given below can help you. Although those are discussing examples around Rails applications you can modify those to fit your needs.

https://gist.github.com/ivanacostarubio/7044770 https://devops.profitbricks.com/tutorials/configure-a-docker-container-to-automatically-pull-from-github-using-oauth/

Regards

Thanks. I will go through it.

thanks very much again.

Das, that was really useful!! thanks.