Comments (16)
@gottfrois you're the man!
Did you override the command
so that you can ensure that Cassandra has started first?
Here's my whole docker-compose.yml with your addition:
version: '2'
services:
kong:
image: mashape/kong:0.6.1
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "7946:7946"
- "7946:7946/udp"
links:
- cassandra
depends_on:
- cassandra
security_opt: ["seccomp:unconfined"]
command: sh -c 'until nc --recv-only -i 0.1 cassandra 9042 2>&1 >/dev/null|grep timeout >/dev/null; do :; done; kong start && tail -f /usr/local/kong/logs/error.log'
cassandra:
image: cassandra:2.2.4
ports:
- "9042:9042"
from docker-kong.
The documentation on the website has been updated. Thanks everybody.
from docker-kong.
Just checking if something like the following needs to be added to the Dockerfile:
RUN yum install -y wget unzip
ENV SERF_VERSION 0.7.0
RUN cd /tmp \
&& wget https://releases.hashicorp.com/serf/${SERF_VERSION}/serf_${SERF_VERSION}_linux_amd64.zip \
&& unzip serf_${SERF_VERSION}_linux_amd64.zip \
&& rm -rf serf_${SERF_VERSION}_linux_amd64.zip \
&& mv serf /bin
(the yum bit before the existing clean all
bit)
from docker-kong.
exact same issue here... did you manage to solve it ?
from docker-kong.
This output is correct, I am not seeing anything wrong with it. The warning is just to tell the user that no nodes were found.
from docker-kong.
But when i try to do http get to Kong API it never responds. If i try a curl http://127.0.0.1:8001/apis within the container bash it never returns anything, it looks like the http request gets hanged somewhere... and i cant ser anything wrong in the log files.
I only can get this working if i downgrade to Kong v0.5 which doesnt support clusters... Any idea of what could be missing?
from docker-kong.
I'm seeing the same behavior with frozen curl requests. Also, not being able to connect to serf caused disk space issues #23
from docker-kong.
Yeah I'm getting the exact same issue here with 0.6.1
. Just upgraded from 0.5.4
.
from docker-kong.
just downgraded to docker toolbox v1.8.3 and apparently it's working...
https://github.com/docker/toolbox/releases/tag/v1.8.3
can you give it a try ?
from docker-kong.
i've tested both on my personal / work osx and the problem is solved.
make sure you delete the virtual machine and turn off internet connection when installing docker toolbox 1.8.3 to disable boot2docker.iso update.
from docker-kong.
That's interesting to know but I would appreciate to use latest docker version, not 1.8.3
. I do think that this issue is strongly related to #23 which has something to do with being unable to connect to default serf host (due to ipv6 errors)
from docker-kong.
I agree that's interesting. Does anyone know the big changes between those 2 versions? I don't believe this is a valid solution for me as I'm packaging this all in a docker-compose as a closed box solution for developers to use while developing other microservices and I'd rather not have a dependency on an old version of docker toolbox.
@gottfrois Thanks for the link to the other issue. This does look like it could all be related.
from docker-kong.
Running kong like this seems to solve serf connection issues and therefor, curl command freezing:
docker run -d --name kong \
--link cassandra:cassandra \
-p 8000:8000 \
-p 8443:8443 \
-p 8001:8001 \
-p 7946:7946 \
-p 7946:7946/udp \
--security-opt seccomp:unconfined \
mashape/kong
See #21
from docker-kong.
@ambrons I want to use docker-compose too, just tried and you can throw the following to make it work:
security_opt: ["seccomp:unconfined"]
Full example:
kong:
image: mashape/kong
links:
- "cassandra:cassandra"
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "7946:7946"
- "7946:7946/udp"
security_opt: ["seccomp:unconfined"]
$ docker --version
Docker version 1.10.1, build 9e83765
$ docker-compose --version
docker-compose version 1.6.0, build unknown
$ docker-machine --version
docker-machine version 0.6.0, build e27fb87
from docker-kong.
@ambrons ah cool! I was missing this part, it was next on my todo ;) thx man
from docker-kong.
Yep, you guys figured this out properly. From the Docker documentation at http://docs.docker.com.s3-website-us-east-1.amazonaws.com/engine/security/seccomp/
Docker’s default seccomp profile is a whitelist which specifies the calls that are allowed.
seccomp:unconfined
will just allow every system call. I will update the instructions on the website.
from docker-kong.
Related Issues (20)
- kong_1 | standard_init_linux.go:228: exec user process caused: operation not permitted HOT 1
- plugin is enabled but not installed HOT 2
- Image missing for arm64 HOT 3
- kong migrations bootstrap Error HOT 4
- Running kong/kong-gateway:3.2-alpine failing with kong/model/analytics/payload.proto: No such file or directory HOT 3
- Is Kong is Supported on RISV machine HOT 1
- Docker Install link is wrong HOT 1
- 3.3.0 alpine image missing arm architecture HOT 1
- Kong Go-plugins dir is not created and users of the image must create it before running this image HOT 1
- kong 3.4.0 missing architecture arm64 for debian bullseye HOT 1
- Ubuntu image is missing useradd HOT 1
- [Http2]: docker compose can not enable http2 HOT 2
- Customize broken since luarocks-admin not on path
- Error when run Kong database with docker container
- Problem with custom plugins
- Permission error in portainer logs after starting HOT 3
- How to configure SSL to https to access 8443 HOT 1
- Add Headers in Docker Kong
- Image kong/kong-gateway:3.5.0.3-amazonlinux-2023 does not allow write permissions for kong user HOT 6
- kong initialize postgres error HOT 1
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-kong.