Comments (17)
This is a great idea, having a Vagrant file to get it up and running quickly would also be very nice.
from docker-gitlab.
I liked the idea of having a Vagrantfile too +1
from docker-gitlab.
@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.
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:latestThe 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 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:latestThe 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 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.
@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.
@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.
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.
@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.
@piclez @tritao FWIW the official gitlab cookbook includes a vagrant file. You might want to check if thats what you need.
from docker-gitlab.
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.
@djdefi I was thinking about the same
from docker-gitlab.
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.
@keyvanfatehi will try it as soon I get the time. Once I can confirm I will close this issue.
from docker-gitlab.
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.
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)
- Upgrading from 14.0.0 to 14.8.2 getting error of data migration HOT 4
- How use GITLAB_RAILS_RACK_TIMEOUT_ENABLE (contanier env var or new (?) configuration parameter) HOT 5
- In 16.6.0 /home/git/gitlab/lib/gitlab/redis/wrapper.rb is broken HOT 2
- Postgresql 15: ERROR: permission denied for schema public
- Improve image build speed (Discussion,Ideas) HOT 10
- Register a WebAuthn device error
- ENOENT: No such file or directory HOT 4
- problem deleting image or tag 16.6.1 HOT 13
- 16.7.0: Rake aborts launch with "failed to get urandom" HOT 36
- Migrate gitlab 11.10.4 to gitlab 16.6.2 with mysql to postgresql
- Error fetching repo data HOT 1
- CVE-2023-7028 HOT 3
- Upgrade Ruby to 3.2.x to remove bug introduced on Ruby 3.1.x HOT 3
- Unable to fetch commit when using --depth 1 mode
- GitLab Critical Security Release: 16.8.1, 16.7.4, 16.6.6, 16.5.8 HOT 1
- How to backup GitLab in Kubernetes? Do you have any good ideas, templates, or documentation? I'm not very familiar with Kubernetes, so please help me. HOT 2
- Backups not functioning in v16.8.1 HOT 3
- [Question] How to change the clone link from localhost to my domain? HOT 2
- Support setting `global_time_tracking_report` HOT 1
- I have set up an auto-backup strategy in Kubernetes, but it seems not to take effect. How can I troubleshoot the problem? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-gitlab.