-
Notifications
You must be signed in to change notification settings - Fork 10
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
flotilla Docker image doesn't work #74
Comments
* working on fix for #74 * updates test
Hi @raybuhr I suspect the issue was with AWS credentials not getting pulled into the environment of the service when it started with
I've pushed a fix that accepts AWS keys from the environment. Can you try running:
Navigating to localhost:5000 after the above works will bring you to the ui where you can create and launch tasks.
In terms of running locally, not with docker, you shouldn't need to specify credentials as flotilla uses AWS's go-sdk which will look for credentials in the default places like that ( In any case, please let me know if this resolves the docker issues for you |
Thanks for looking into this. It does look like the problems were with the AWS credentials. I went through the ECS cluster setup again from scratch on a brand new AWS account. The docker logs at first looked like it was still not finding my credentials even after making them explicit env vars, but after re-running the Unfortunately, I am unable to get new tasks created via the web UI to actually save or run. I'm not getting any error messages. The web UI says it saved the task successfully and takes me to the "Runs" tab, but doesn't load anything. The url of the created task doesn't seem like it was actually successful -- Hitting the api/v1/task endpoint afterward shows no task definitions. I tried creating the example hello-world task via the API and got this back:
I tried creating the
|
This project looks really cool and useful for me, but I'm having a really hard time getting it to work. For reference, I'm running ubuntu 16.04, go 1.9, docker 17.12.0, docker-compose version 1.19.0.
I started by just launching via
docker-compose up -d
but the image forflotillaos_flotilla
would exit within a few seconds after launching (the ui and postgres images seem to be working fine). I tried rebuilding from scratch and while it doesn't error out, running the image does nothing. I then just started from thegolang:latest
image and proceeded through the RUN commands in the dockerfile. It fails on thego install github.com/stitchfix/flotilla-os
command:Running
go test
from that directory results in the same failure message.I'm not super familiar with govendor, but I tried switching this to dep with some progress. I ran
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
to install dep. Then from this repo home, I randep init
to migrate thevendor/vendor.json
file toGopkg.lock
andGpkg.toml
files that dep uses. Finally I randep ensure
to sync dependencies. This ran successfully and I was able to install flotilla withgo get github.com/stitchfix/flotilla-os
. However, that still didn't work with the docker-compose setup as the flottila api crashes after roughly a minute.I then tried rebuilding and installing the flotilla app locally from the source code using dep. That seems like it works I'm able to get the api server to run, but hitting http://localhost:3000/api/v1/tasks returns 404. The api server is running, and will spit out messages after creating tasks/runs in the UI, but I don't think I understand how this attaches to my AWS config (I'm used to using ~/.aws/config and ~/.aws/credentials) and I don't see any options to specify an account. Here's the stdout from the running api server even though I don't think it's helpful:
The text was updated successfully, but these errors were encountered: