Skip to content

Instantly share code, notes, and snippets.

View kooba's full-sized avatar
👍
shipping

Jakub Borys kooba

👍
shipping
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kooba on github.
  • I am kooba (https://keybase.io/kooba) on keybase.
  • I have a public key whose fingerprint is D803 6493 E5F5 8DCD 4671 2D6A DA00 E212 058B E8D7

To claim this, I am signing this object:

@kooba
kooba / Dockerfile
Last active December 20, 2016 17:21
dnspython docker dns issue
FROM python:3.4
RUN pip install dnspython
COPY test.py /var/tmp/test.py
CMD [ "python", "/var/tmp/test.py" ]
@kooba
kooba / images.py
Created August 19, 2016 14:15
polymorphic images
import pytest
from sqlalchemy import Column, Integer, ForeignKey, String
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
class Base(object):
pass
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
env_file: .env
command: /usr/local/bin/gunicorn mycms.wsgi:application -w 2 -b :8000
NAME ACTIVE DRIVER STATE URL SWARM
mycms-dev * virtualbox Running tcp://192.168.99.100:2376
FROM python:3.4.2-onbuild
FROM tutum/nginx
RUN rm /etc/nginx/sites-enabled/default
ADD sites-enabled/ /etc/nginx/sites-enabled
env
.env
*.pyc
server {
listen 80;
server_name example.org;
charset utf-8;
location /static {
alias /usr/src/app/static;
}
$ virtualenv --version
13.0.3
$ docker -v
Docker version 1.6.2, build 7c8fca2
$ docker-compose --version
docker-compose 1.2.0
$ docker-machine --version