Docker Community Forums

Share and learn in the Docker community.

How to use github code in docker


(Rafiqul) #1

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


(Ranjandas) #2

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


(Rafiqul) #3

Thanks ranjandas for your reply.

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

-rafiqul


(Ranjandas) #4

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


(Rafiqul) #5

Thanks. I will go through it.

thanks very much again.


(Rafiqul) #6

Das, that was really useful!! thanks.