This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Flaskr | |
~~~~~~ | |
A microblog example application written as Flask tutorial with | |
Flask and couchdbkit. | |
:copyright: (c) 2010 by Armin Ronacher. | |
:license: BSD, see LICENSE for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.4 | |
WORKDIR /usr/src/app | |
COPY . /usr/src/app | |
RUN pip install /usr/src/app | |
# docker build --tag local/kubernetes . | |
# docker run -v $HOME/.kube:/root/.kube -v $PWD:$PWD -w $PWD -ti local/kubernetes python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PySide.QtCore import QObject, Slot | |
from PySide.QtGui import QApplication | |
from PySide.QtWebKit import QWebView | |
html = """ | |
<html> | |
<body> | |
<h1>Hello!</h1><br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fake a fuse install | |
# from https://gist.github.com/henrik-muehe/6155333/e35981031bad80ada4cbf1e4a48ba7f86a019db4 | |
# see https://github.com/dotcloud/docker/issues/2191 | |
run apt-get install libfuse2 | |
run cd /tmp &&\ | |
apt-get download fuse &&\ | |
dpkg-deb -x fuse_* . &&\ | |
dpkg-deb -e fuse_* &&\ | |
rm fuse_*.deb &&\ | |
echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst &&\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright 2017 Mirantis | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
systemctl stop docker.service | |
rm $(which docker) | |
rm /var/run/docker.pid | |
curl -fsSL https://github.com/armhf-docker-library/binaries/releases/download/1.10.1/docker-1.10.1 \ | |
-o /usr/bin/docker | |
chmod u+x /usr/bin/docker | |
Manpages on Ubuntu-Website seem to be outdated. Look here instead: Systemd Manpages from Freedesktop
# using scaleway-cli to create a new host
scw create \
--name kube-1 \
--commercial-type VC1M \
--volume 50G \
--env "kubeadm master" \
worked for me yesterday (tm)
Also see:
NewerOlder