gCoh

1

votes
0

answer
87

views

docker orchestration - connect to remote interpreter using pycharm

i'm trying to connect pycharm to docker remote interpreter, but the container is part of a cluster (specifically using AWS ECS cluster) i can not access the container directly i have to go through the bastion machine (the instance that is running the container do not have public IP) i.e to access th...
gCoh
1

votes
1

answer
43

views

docker overlay for local development and remote containers

I am looking to improve our development cycle, using multiple docker containers, used by multiple dev teams Currently each dev team is responsible of few services, that are dependant on other teams services. Meaning all dev teams need to run all containers locally What i'm trying to figure out is h...
gCoh
1

votes
0

answer
182

views

Docker distributed cache

I'm looking for a solution to share docker cache across multiple CI instances The main use case is when building a new image using instance A, then building the same image using instance B from scratch, instead of having shard docker cache This causes longer build / push time, and it can be shortene...
gCoh
1

votes
2

answer
919

views

celery workers not releasing memory after tasks are finished

I am running celery with redis as the broker, on centos 6.5 machine, with the following configuration: app.conf.update( CELERY_ENABLE_UTC=True, CELERY_SEND_TASK_SENT_EVENT=True, CELERY_ACCEPT_CONTENT=['msgpack', 'json', 'application/x-python-serialize'], CELERY_TASK_SERIALIZER='msgpack', CELERY_RESU...
gCoh
1

votes
2

answer
504

views

AWS EC2 instance role with docker

We are running docker containers in EC2 instance. When applying IAM role with S3 access it seems that the container cant reach S3 Is there any solution to this kind of problem accept of using ECR?
gCoh
1

votes
1

answer
111

views

erlcloud- dynamodb2, manage counters (update_item)

I'm having a bit of a hard time finding an answer to the problem- how can i update a value in aws ddb2 using erlang and erlcloud library. i am managing a table for different counters, and i neet to add one (i++), to one of the records. in the doc they suggest {ok, Item} = erlcloud_ddb2:update_ite...
gCoh
1

votes
1

answer
138

views

Erlang (cowboy) runtime errors handling

i'm looking for a solution for error handling in erlang. the main challenge is running code piece, in any error context. for instance (if its possible) overriding the SASL logger (or any similar behaviour), that will let me execute code, when exceptions are raised, at any point of the system. che...
gCoh
1

votes
2

answer
97

views

docker double service names

I'm looking for a way making containers talk to each other for instance i have two docker-compose.yml files: first: services: users-api: container_name: users-api depends_on: - db db: image: postgres container_name: users-employees-db second: services: employees-api: container_name: employees-api de...
gCoh
1

votes
1

answer
189

views

Postgres create table asynchronously

i'm struggling with postgres and async task queue i'm trying to create a new table - whatever worker reach this point first - create the table using the statment create table if not exists 'table already exists' exception raised this is really wierd, because when doing so whith single worker - i.e...
gCoh
1

votes
1

answer
102

views

ip v6 and ip v4 requests and trasitions

I'm trying to understand the transition from IPv4 to IPv6. My main question is, what if a machine using IPv6 makes a request to IPv4 service. Can it handle it? Can a machine have both IPv6 and IPv4?
gCoh
1

votes
1

answer
334

views

erlang cowboy websocket- number of open sockets

I have written an Erlang chat backend, using the cowboy module. I'm trying to figure out how can i log the number of open web sockets connections, that are currently connected. I have been looking for an answer to this question for a while, and i couldn't find one. Do you have any idea how it could...
gCoh
1

votes
3

answer
730

views

SUTime with regular date reading

i'm using SUutime / stanford nlp, and it's doing a great job, but i can't figure out how to read regular dates formats. for instance: 'we went at 27/10/1988 to the event' it returns null for expression like: 'we went at october 27th 1988 to the event', it works just fine any ideas? cheers
gCoh
1

votes
1

answer
139

views

pymongo MongoClient end_request() will not terminate cursor

i have a question about pymongo connection pool - MongoClient how is it possible that the cursor ('results' in the following example) is retrieving the documents, even after the connection was returned to the connection pool by end_request() statement mongo_connection_pool = MongoClient(host='127.0...
gCoh
4

votes
2

answer
2.4k

views

Intellij starts with insert key on

i have moved to intellij 14 (using centos 7). Each time that i open a file using intellij, it opens it when the 'insert' key is pressed. how do i change it? can it be a problem with the centos? (when opening a new gedit document it appears to be ok) thank you
gCoh
2

votes
0

answer
406

views

AngularJS and Django REST framework cookies

I have a problem regarding AngularJS using Django as backend. The Django framework has its authentication system, using its csrftoken. The thing is, that over the client side, i need to make sure that the client is logged in, to let him see AngularJS' views. The problem is that the $cookieStore ret...
gCoh
2

votes
1

answer
1.2k

views

Docker compose command user selection

I have a small question regarding docker-compose file I am trying to run a command using a different user than root: command: celery -b 'redis://' -A proj worker --loglevel=info This will cause the celery workers to run under root How can I select another user for the specific service? cheers
gCoh
8

votes
3

answer
2.9k

views

dockerfile multistage build for python, reducing image size

I am looking for a way to create multistage builds with python and Dockerfile I.e what I'm trying to do is creating a Dockerfile using few images: 1st image: install all compile time requirements, and install all needed python modules 2nd image: copy all compiled / built packages from first image to...
gCoh
2

votes
2

answer
724

views

sqlalchemy dynamic binding to model

I'm looking for a way binding models to different databases (schema is identical in all databases), for instance - separated by countries class User(): __tablename__ = 'user' id = Column(Integer, primary_key=True) name = Column(VARCHAR(255)) age = Column(Integer) This model is shared between multipl...
gCoh
0

votes
2

answer
478

views

psycopg2 create table if not exists and return exists result

I have a problem figuring out how I can create a table using psycopg2, with IF NOT EXISTS statement, and getting the NOT EXISTS result The issue is that I'm creating a table, and running some CREATE INDEX / UNIQUE CONSTRAINT after it was created. If the table already exists - there is no need to cre...
gCoh
0

votes
1

answer
126

views

drone CI push to ECR failure

when i try pushing image using drone plugin for amazon ECR i'm getting the following message: 'no basic auth credentials' my .drone.yml file pipline: publish-to-ecr: image: plugins/ecr repo: foo registry: xxx.dkr.ecr.us-west-1.amazonaws.com dockerfile: ./Dockerfile tags: - latest access_key: xxx se...
gCoh