Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image? #3

Closed
Red5d opened this issue Feb 23, 2015 · 10 comments
Closed

Docker image? #3

Red5d opened this issue Feb 23, 2015 · 10 comments

Comments

@Red5d
Copy link

Red5d commented Feb 23, 2015

It's great that this can be run via Vagrant, but is it possible to get a way to run it via Docker as well?

@matejkramny
Copy link
Contributor

Should be possible via https://github.com/castawaylabs/node-docker repo..I'll try this tonight, and make it work if it doesn't.
Thanks,
Matej Kramny

@matejkramny
Copy link
Contributor

Yh to run this in docker:

  1. Create a Redis container (eg name redisio)
  2. Create a Mongodb container (eg name mongodb)
  3. Clone semaphore, set up lib/credentials.json (copy https://github.com/ansible-semaphore/semaphore/blob/master/lib/credentials.example.json). Set the mongo and redis host accordingly.
  4. Run Semaphore in https://github.com/castawaylabs/node-docker

Example:

docker run -d \
  --name semaphore \
  -p 8080:80 \
  -e "NODE_ENV=production" -e "PORT=80" \
  -v /wherever/semaphore/is:/srv/app \
  --link redisio:redis --link mongodb:mongo \
  castawaylabs/node-docker

A Dockerfile in this repo would be potentially more helpful and easier to get started with though. PR's welcome :)

@matejkramny
Copy link
Contributor

Does this solve your issue, @Red5d?

@Red5d
Copy link
Author

Red5d commented Feb 28, 2015

Yes, thank you!

@Red5d Red5d closed this as completed Feb 28, 2015
@andrewcstewart
Copy link

Just FYI you should be able to handle the entire orchestration with fig / Docker compose (https://docs.docker.com/compose/)

@bibby
Copy link

bibby commented Apr 1, 2015

The Docker image doesn't contain ansible. The runner depends on this.
Edit: iojs is debian:jessie based, so the following can install ansible 1.7

RUN apt-get update
RUN apt-get install -y ansible

Any greater ansible version and it gets trickier.
Ansible has official docker images, but they are based on ubuntu:14.04 and centos:7

@matejkramny
Copy link
Contributor

Reopened as the docker image doesn't work properly

@matejkramny matejkramny reopened this Apr 1, 2015
@ashish235
Copy link

I used the docker images to install, but I 'm not getting anything on the GUI except "Loading...".

Logs from the semaphore container:

app.js:110 Semaphore listening on port 80
app.js:47 Mongodb connection established
config.js:67 Creating Admin user admin@semaphore.local!
::ffff:172.16.100.71 - - [15/Apr/2015:11:32:29 +0000] "GET / HTTP/1.1" 200 890 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
::ffff:172.16.100.71 - - [15/Apr/2015:11:32:29 +0000] "GET /vendor/requirejs/require.js HTTP/1.1" 200 890 "http://172.16.131.252/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
LESS File error : '../vendor/fontawesome/less/font-awesome.less' wasn't found. Tried - /srv/semaphore/public/vendor/fontawesome/less/font-awesome.less,../vendor/fontawesome/less/font-awesome.less
LESS File : /srv/semaphore/public/css/semaphore.less 13:0
Error: '../vendor/fontawesome/less/font-awesome.less' wasn't found. Tried - /srv/semaphore/public/vendor/fontawesome/less/font-awesome.less,../vendor/fontawesome/less/font-awesome.less
::ffff:172.16.100.71 - - [15/Apr/2015:11:32:29 +0000] "GET /favicon.ico HTTP/1.1" 200 890 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"
::ffff:172.16.100.71 - - [15/Apr/2015:11:32:29 +0000] "GET /favicon.ico HTTP/1.1" 304 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"

Kindly fix as I was really excited to find this tool which can replace ansible-tower for me.

@matejkramny
Copy link
Contributor

This will definitely be fixed.

Seems like a similar issue to #20

@matejkramny
Copy link
Contributor

Closed with #20

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

No branches or pull requests

5 participants