Code Monkey home page Code Monkey logo

Comments (17)

tritao avatar tritao commented on May 18, 2024 1

This is a great idea, having a Vagrant file to get it up and running quickly would also be very nice.

from docker-gitlab.

piclez avatar piclez commented on May 18, 2024 1

I liked the idea of having a Vagrantfile too +1

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@arnos I came across this repo https://github.com/keeb/docker-ttl, its got a very interesting way of connecting to the docker server from the container. I was thinking maybe for the quick start guide we can mount the docker binary and start the database and redis servers on the host.

In short, the container would be started like this

docker run -i -t \
-v /usr/bin/docker:/bin/docker \
-v /var/run/docker.sock:/run/docker.sock \
sameersbn/gitlab:latest

The gitlab container will now have access to docker running on the host, which means it will be able to pull containers for the mysql/postgresql and redis servers and eventually get the whole thing to work.

Production environments will have to go through the setup procedure to configure the database and redis servers manually.

from docker-gitlab.

arnos avatar arnos commented on May 18, 2024

Yes the remote API, though I would see a setup image to secures the API
http://blog.james-carr.org/2013/10/30/securing-dockers-remote-api/ and load
redis, db and gitlab as separate containers.

On Saturday, April 26, 2014, Sameer Naik [email protected] wrote:

@arnos https://github.com/arnos I came across this repo
https://github.com/keeb/docker-ttl, its got a very interesting way of
connecting to the docker server from the container. I was thinking maybe
for the quick start guide we can mount the docker binary and start the
database and redis servers on the host.

In short, the container would be started like this

docker run -i -t
-v /usr/bin/docker:/bin/docker
-v /var/run/docker.sock:/run/docker.sock
sameersbn/gitlab:latest

The gitlab container will now have access to docker running on the host,
which means it will be able to pull containers for the mysql/postgresql and
redis servers and eventually get the whole thing to work.

Production environments will have to go through the setup procedure to
configure the database and redis servers manually.


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-41460553
.

from docker-gitlab.

arnos avatar arnos commented on May 18, 2024

@sameersbn actually you've struck gold. Instead of doing as mentioned below
how about create a generic installer script (a la MSI for windows).

Anyone could use that installer image (based on buusybox perhaps) and
supply it with an installer.sh script that would walk the user to setting
up their image either with a cli or webased wizard.

Then each project would just point to a generic shell script on GitHub that
launches your installer image with the docker remote API and their
install.sh script...

Going further you could have a installation wizard builder, and even a cnet
of sorts to download pre-built curated installable images.

I'm kind of drooling at the possibity of integrating this.

On Saturday, April 26, 2014, Arno Schulz [email protected] wrote:

Yes the remote API, though I would see a setup image to secures the API
http://blog.james-carr.org/2013/10/30/securing-dockers-remote-api/ and
load redis, db and gitlab as separate containers.

On Saturday, April 26, 2014, Sameer Naik <[email protected]javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:

@arnos https://github.com/arnos I came across this repo
https://github.com/keeb/docker-ttl, its got a very interesting way of
connecting to the docker server from the container. I was thinking maybe
for the quick start guide we can mount the docker binary and start the
database and redis servers on the host.

In short, the container would be started like this

docker run -i -t
-v /usr/bin/docker:/bin/docker
-v /var/run/docker.sock:/run/docker.sock
sameersbn/gitlab:latest

The gitlab container will now have access to docker running on the host,
which means it will be able to pull containers for the mysql/postgresql and
redis servers and eventually get the whole thing to work.

Production environments will have to go through the setup procedure to
configure the database and redis servers manually.


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-41460553
.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@arnos From what I understand, you mean we can create some sort of a docker image that helps in deploying complex application stacks like gitlab or shipyard where you need additional containers/services to complete the stack.

Such applications will probably have to define some sort of configuration for the deployment to happen. Like indicating what services are required, how each service has to be configured, the preferred docker image for each service, etc.

Problem is say an application requires a redis server and already a redis server is available, then we would somehow have to detect the same or ask the user. It could get complicated really quickly.

Maybe at first we can implement this in the gitlab container as part of the quick start guide and then try and see if this can be generalized and forked into a new image.

Also maybe, it would be replicating what chef already does. I am not sure.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@arnos whatever be the case lets keep this on the down low for the moment and get the SSL thing finished up.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@arnos today I came across geard, which is very close to what you propose here. checkout https://www.youtube.com/watch?v=ZcEEnCMAMvo?t=24m for an overview. Pretty sweet stuff. Unfortunately it is currently only available for Fedora and RHEL. I think that it because of its dependency on systemd.

from docker-gitlab.

arnos avatar arnos commented on May 18, 2024

Yes I ran into it a month ago as well, it's part of red hat
http://www.projectatomic.io/, I heard was actually RedHat's version of
docker until docker came along.

On Wednesday, June 18, 2014, Sameer Naik [email protected] wrote:

@arnos https://github.com/arnos today I came across geard
http://openshift.github.io/geard/, which is very close to what you
propose here. checkout Dockercon Keynote: Brian Stevens (Red Hat)
https://www.youtube.com/watch?v=ZcEEnCMAMvo?t=24m for an overview.
Pretty sweet stuff. Unfortunately it is currently only available for Fedora
and RHEL. I think that it because of its dependency on systemd.


Reply to this email directly or view it on GitHub
#46 (comment)
.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@piclez I have never used vagrant, just installed it yesterday to do some selinux testing. Since I use linux as my primary OS and since docker has come along VM's are a no go for me. That said, since I now have vagrant installed, I will try to create a vagrant file for this image.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@piclez @tritao FWIW the official gitlab cookbook includes a vagrant file. You might want to check if thats what you need.

from docker-gitlab.

djdefi avatar djdefi commented on May 18, 2024

Could also utilize fig ( https://github.com/orchardup/fig ) as an alternative to Vagrant.

Something like:

fig.yml:

gitlab:
  image:  sameersbn/gitlab:latest
  links:
   - redis:redisio
  ports:
   - "80:80"
   - "10022:22"
redis:
  image: sameersbn/redis:latest

Would also be able to add a database container and persistent volumes etc to this.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@djdefi I was thinking about the same

from docker-gitlab.

kfatehi avatar kfatehi commented on May 18, 2024

my program ydm is now functionally complete for use as an installer of @sameersbn's gitlab image. you can check the source here https://github.com/keyvanfatehi/ydm or grab it from npm https://www.npmjs.org/package/ydm

after installing, try installing gitlab with ydm gitlab install --namespace test -- from there the error message will help you pass in customized environment variables.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

@keyvanfatehi will try it as soon I get the time. Once I can confirm I will close this issue.

from docker-gitlab.

dkapanidis avatar dkapanidis commented on May 18, 2024

I added the fig.yml as PR. It was necessary to make a small change in order to auto-configure database on first-launch, wthen the PR is merged the fig.yml file will be ready to work even remotely (no need to compile anything)

As for the installer part, I open-sourced part of what I'm doing at http://harbur.io/
you can check the https://github.com/harbur/docker-sdlc repo. It is a collection of fig.yml files that support multi-container orchestration of an SDLC environment.

The purpose of that repo is to be production-ready setup guide. Fig format to describe multi-container setup is pretty robust and using https://github.com/centurylinklabs/fig2coreos iit can be easily translated to coreOS configuration to adapt to more corporate environments.

hope you find it useful.

from docker-gitlab.

sameersbn avatar sameersbn commented on May 18, 2024

docker-gitlab can now be deployed using fig as implemented in #158 by @Spiddy . Alternately you could also use also use the https://github.com/keyvanfatehi/ydm tool being developed by @keyvanfatehi .

Marking issue as closed.

from docker-gitlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.