add ympd dockerfile

This commit is contained in:
Cadey Ratio 2017-02-19 20:25:57 -08:00
parent db7fe314a5
commit b5b1115c12
67 changed files with 16 additions and 1142 deletions

View File

@ -1,34 +0,0 @@
version: '2'
services:
wordpress:
image: wordpress
environment:
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: example
WORDPRESS_DB_NAME: test
backplane:
image: backplaneio/backplane
# Settings for the backplane agent
environment:
# Contains your backplane connect token (secret)
BACKPLANE_TOKEN: H09187NeTkOKHMYPZMTb4ftDISdQFhWJTFUzZshB7czadnweulfRv09A5tcxwyVk9iG1bxj-OT1zb4-j5n1z
# The URL that the backplane agent will proxy to/from.
# This by default will route to/from the linked app 'some-webapp'.
BACKPLANE_PROXY_URL: http://wordpress:80
# Your labels for this agent to use.
# EX: endpoint:example.com release:v1
BACKPLANE_LABELS: "endpoint:mota.cf release:v1"
# Change this to whatever your application service name is
links:
- wordpress:webapp
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example

View File

@ -1,17 +0,0 @@
#!/bin/bash
images="haskell lisp nim"
base="docker.io/xena/dotfiles"
docker pull $base
for image in $images
do
(
docker rmi $base"-"$image
docker build -t $base"-"$image $image
docker push $base"-"$image
)
done
wait

View File

@ -1,11 +0,0 @@
FROM docker.io/xena/dotfiles
ADD https://s3.amazonaws.com/download.fpcomplete.com/fedora/23/fpco.repo /etc/yum.repos.d
USER root
RUN dnf -y install stack
USER xena
RUN stack setup
CMD fish -l

View File

@ -1,13 +0,0 @@
FROM docker.io/xena/dotfiles
USER root
RUN dnf -y install sbcl
USER xena
WORKDIR /home/xena
RUN (mkdir dl || true)
ADD ./setup.lisp dl/setup_quicklisp.lisp
ADD ./sbclrc /home/xena/.sbclrc
RUN wget https://beta.quicklisp.org/quicklisp.lisp -O dl/quicklisp.lisp && \
sbcl --load dl/quicklisp.lisp < dl/setup_quicklisp.lisp

View File

@ -1,6 +0,0 @@
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))

View File

@ -1 +0,0 @@
(quicklisp-quickstart:install)

View File

@ -1,5 +0,0 @@
FROM docker.io/xena/dotfiles
ADD ./setup.sh /opt/xena/setup_nim.sh
RUN /opt/xena/setup_nim.sh

View File

@ -1,36 +0,0 @@
#!/bin/bash
cd $HOME
mkdir prefix
cd prefix
wget http://nim-lang.org/download/nim-0.13.0.tar.xz
tar xf nim-0.13.0.tar.xz
(
cd nim-0.13.0
./build.sh
)
ln -s nim-0.13.0 nim
PATH=$PATH:$HOME/prefix/nim/bin
mkdir -p $HOME/tmp
cd $HOME/tmp
(
git clone https://github.com/nim-lang/nimble.git
cd nimble
git clone -b v0.13.0 --depth 1 https://github.com/nim-lang/nim vendor/nim
nim -d:release c -r src/nimble install
)
rm -rf nimble
PATH=$PATH:$HOME/.nimble/bin
nimble refresh
nimble install nimsuggest
nimble install c2nim

View File

@ -1,10 +0,0 @@
FROM flitter/init
RUN wget -O /tmp/drone.deb http://downloads.drone.io/master/drone.deb && \
dpkg -i /tmp/drone.deb && \
apt-get -f install # Sun Oct 26 10:23:45 PDT 2014
ADD drone /etc/service/drone/run
CMD /sbin/my_init
EXPOSE 8000

View File

@ -1,16 +0,0 @@
#!/bin/sh
export DRONE_DATABASE_DRIVER="postgres"
export DRONE_DATABASE_DATASOURCE="host=$DB_PORT_5432_TCP_ADDR user=postgres dbname=drone sslmode=disable"
export DRONE_SERVER_PORT=:8080
if [ -z "$DOCKER_HOST" ]; then
echo "No docker host"
exit 1
else
export DRONE_WORKER_NODES=$DOCKER_HOST
fi
echo 'Everything is okay. Starting up drone!'
droned

View File

@ -1,16 +0,0 @@
[Unit]
Description=Drone.io continunous integration and delivery
After=docker.service
After=drone-db.service
Requires=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/docker run --rm --link drone-db:pg xena/drone-fixdb
ExecStop=/usr/bin/fleetctl destroy drone-db-fix.service
[Install]
WantedBy=multi-user.target
[X-Fleet]
MachineOf=drone-db.service

View File

@ -1,14 +0,0 @@
[Unit]
Description=Drone.io continunous integration and delivery database
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill dronedb
ExecStartPre=/usr/bin/docker pull postgres
ExecStart=/usr/bin/docker run --name drone-db postgres
ExecStop=/usr/bin/docker kill drone
[Install]
WantedBy=multi-user.target

View File

@ -1,22 +0,0 @@
[Unit]
Description=Drone.io continunous integration and delivery
After=docker.service
After=drone-db.service
After=drone-db-fix.service
Requires=docker.service
# You need to edit this for your github/gitlab api keys
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill drone
ExecStartPre=-/usr/bin/docker rm drone
ExecStartPre=/usr/bin/docker pull xena/drone
ExecStart=/usr/bin/docker run --name drone --link drone-db:db --hostname drone -v /var/run/docker.sock:/docker.sock -e DOCKER_HOST="unix:///docker.sock" -P xena/drone
ExecStop=/usr/bin/docker rm -f drone
[Install]
WantedBy=multi-user.target
[X-Fleet]
MachineOf=drone-db.service

View File

@ -1,5 +0,0 @@
FROM postgres
ADD fixdb.sh /
CMD /fixdb.sh

View File

@ -1,3 +0,0 @@
#!/bin/sh
psql -h $PG_PORT_5432_TCP_ADDR -p $PG_PORT_5432_TCP_PORT -U postgres -c "CREATE DATABASE drone;"

View File

@ -1,39 +0,0 @@
FROM fedora:21
RUN dnf -y groupinstall "Development Tools" &&\
dnf -y install tar zsh git python wget openssl-devel vim-enhanced tmux dtach cmake python-devel mercurial lua luarocks gcc-c++ xz clang-devel &&\
useradd --create-home xena && \
echo 'root:screencast' | chpasswd && \
echo 'xena:user' | chpasswd && \
chsh xena -s /bin/zsh
# Envvars!
ENV HOME /home/xena
ENV DOCKER YES
ENV LANGUAGE en_US
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_CTYPE en_US.UTF-8
# To use Docker please pass the docker socket as a bind mount
# Some of my servers still use docker 1.3.0
RUN wget https://get.docker.com/builds/Linux/x86_64/docker-1.3.0 -O /usr/local/bin/docker && \
chmod 555 /usr/local/bin/docker
# Golang compilers
RUN cd /usr/local && wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz && \
tar xf go1.4.2.linux-amd64.tar.gz && rm go1.4.2.linux-amd64.tar.gz
ADD setup.sh /opt/xena/setup.sh
ADD ./vimplugins.lua /opt/xena/vimplugins.lua
RUN chmod 777 /opt/xena/setup.sh &&\
su xena "/opt/xena/setup.sh"
RUN dnf -y install dnf-plugins-core &&\
yes | dnf copr enable xena/moonscript &&\
dnf -y install lua-moonscript &&\
yes | dnf copr enable avsej/nim &&\
dnf -y install nim
USER xena
CMD /bin/zsh

View File

@ -1,48 +0,0 @@
#!/bin/bash
set -x
# Sanity check / setup
cd /home/xena
mkdir code ||:
# Clone dotiles
git clone https://github.com/Xe/dotfiles code/dotfiles ||:
# setlink sets a symlink to my dotfiles repo for the correct file.
function setlink
{
rm -rf $HOME/$1
ln -s $HOME/code/dotfiles/$1 $HOME/$1
}
# set links
setlink .zshrc
setlink .zsh
setlink .vim
setlink .vimrc
setlink .gitconfig
setlink .tmux.conf
export GOPATH=/home/xena/go
export PATH=/usr/local/go/bin:$PATH
# Golang stuff
(mkdir -p ~/go/{pkg,bin,src})
go get github.com/mattn/todo
go get github.com/motemen/ghq
go get github.com/Xe/tools/license
# Setup vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Set up vim plugins
cat ~/.vimrc | grep Plugin | cut -d"'" -f2 > ~/.plugins
(cd ~/.vim/bundle && lua /opt/xena/vimplugins.lua ~/.plugins)
# Binary extensions for vim
(cd ~/.vim/bundle/YouCompleteMe; ./install.sh --clang-completer)
(cd ~/.vim/bundle/vimproc.vim; make)
vim -T dumb +GoInstallBinaries +qall
echo "Set up!"

View File

@ -1,12 +0,0 @@
fin = io.open(arg[1], "r")
if fin == nil then
error("Can't open " .. arg[1])
end
for line in fin:lines() do
os.execute("git clone https://github.com/" .. line)
os.execute("cd " .. line:match(".+/(.+)") .. " && git submodule update --init --recursive && cd ..")
end
fin:close()

View File

@ -1,3 +0,0 @@
FROM xena/fedora
RUN curl -s https://static.rust-lang.org/rustup.sh | sh

View File

@ -1,65 +0,0 @@
FROM fedora:22
RUN dnf -y groupinstall "Development Tools" &&\
dnf -y install \
tar \
zsh \
git \
python \
wget \
openssl-devel \
vim-enhanced \
tmux \
dtach \
cmake \
python-devel \
mercurial \
lua \
luarocks \
gcc-c++ \
xz \
clang-devel \
php \
file \
net-tools &&\
useradd --create-home xena && \
echo 'root:screencast' | chpasswd && \
echo 'xena:user' | chpasswd && \
chsh xena -s /bin/zsh
# Envvars!
ENV HOME /home/xena
ENV DOCKER YES
ENV LANGUAGE en_US
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_CTYPE en_US.UTF-8
# Golang compilers
RUN cd /usr/local && wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz && \
tar xf go1.5.linux-amd64.tar.gz && rm go1.5.linux-amd64.tar.gz
# Set up vim
ADD setup.sh /opt/xena/setup.sh
ADD ./vimplugins.lua /opt/xena/vimplugins.lua
RUN chmod 777 /opt/xena/setup.sh &&\
su xena "/opt/xena/setup.sh"
# To use Docker please pass the docker socket as a bind mount
# Some of my servers still use docker 1.6.0
RUN wget https://get.docker.com/builds/Linux/x86_64/docker-1.6.0 -O /usr/local/bin/docker && \
chmod 555 /usr/local/bin/docker
# Not needed?
RUN dnf -y install dnf-plugins-core &&\
yes | dnf copr enable xena/moonscript &&\
dnf -y install lua-moonscript &&\
yes | dnf copr enable avsej/nim &&\
dnf -y install nim
# Add Tini
ENV TINI_VERSION v0.5.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
ENV INITSYSTEM tini

View File

@ -1,48 +0,0 @@
#!/bin/bash
set -x
# Sanity check / setup
cd /home/xena
mkdir code ||:
# Clone dotiles
git clone https://github.com/Xe/dotfiles code/dotfiles ||:
# setlink sets a symlink to my dotfiles repo for the correct file.
function setlink
{
rm -rf $HOME/$1
ln -s $HOME/code/dotfiles/$1 $HOME/$1
}
# set links
setlink .zshrc
setlink .zsh
setlink .vim
setlink .vimrc
setlink .gitconfig
setlink .tmux.conf
export GOPATH=/home/xena/go
export PATH=/usr/local/go/bin:$PATH
# Golang stuff
(mkdir -p ~/go/{pkg,bin,src})
go get github.com/mattn/todo
go get github.com/motemen/ghq
go get github.com/Xe/tools/license
# Setup vundle
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Set up vim plugins
cat ~/.vimrc | grep Plugin | cut -d"'" -f2 > ~/.plugins
(cd ~/.vim/bundle && lua /opt/xena/vimplugins.lua ~/.plugins)
# Binary extensions for vim
(cd ~/.vim/bundle/YouCompleteMe; ./install.sh --clang-completer)
(cd ~/.vim/bundle/vimproc.vim; make)
vim -T dumb +GoInstallBinaries +qall
echo "Set up!"

View File

@ -1,12 +0,0 @@
fin = io.open(arg[1], "r")
if fin == nil then
error("Can't open " .. arg[1])
end
for line in fin:lines() do
os.execute("git clone https://github.com/" .. line)
os.execute("cd " .. line:match(".+/(.+)") .. " && git submodule update --init --recursive && cd ..")
end
fin:close()

View File

@ -1,7 +0,0 @@
FROM xena/base
ADD https://s3.amazonaws.com/download.fpcomplete.com/centos/7/fpco.repo /etc/yum.repos.d/fpco.repo
RUN dnf install -y stack
USER xena
CMD /bin/zsh

View File

@ -1,10 +0,0 @@
FROM xena/base
USER root
ADD ./sudo /bin/sudo
RUN wget https://static.rust-lang.org/rustup.sh -O /rust.sh &&\
yes | bash /rust.sh -y &&\
rm /bin/sudo
USER xena
CMD /bin/zsh

View File

@ -1,5 +0,0 @@
#!/bin/bash
echo "Fake sudo! $*"
exec $*

View File

@ -1,10 +0,0 @@
FROM xena/base
RUN dnf -y install emacs
USER xena
RUN git clone https://github.com/syl20bnr/spacemacs /home/xena/.emacs.d
RUN emacs --daemon
RUN emacs --daemon
CMD /bin/zsh

View File

@ -1,25 +0,0 @@
FROM flitter/init
MAINTAINER Xena <xena@yolo-swag.com>
RUN apt-get update &&\
apt-get -y install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make curl git-core luarocks &&\
luarocks install moonrocks --server=http://rocks.moonscript.org &&\
moonrocks install gimlet-cocktail &&\
moonrocks install moonscript &&\
moonrocks install yaml &&\
moonrocks install xavante &&\
moonrocks install wsapi &&\
moonrocks install wsapi-xavante
ADD prepare.moon /app/prepare.moon
ADD gimlet /etc/service/gimlet/run
ENTRYPOINT /sbin/my_init
ENV PORT 5000
EXPOSE 5000
ENV ENVIRONMENT docker
ONBUILD ADD app.yaml /app/
ONBUILD RUN moon /app/prepare.moon /app/app.yaml
ONBUILD ADD . /app/src
ONBUILD RUN moonc /app/src

View File

@ -1,5 +0,0 @@
#!/bin/bash
cd /app/src
gimlet -x app

View File

@ -1,35 +0,0 @@
yaml = require "yaml"
manifest_path = ...
error "Missing manifest_path" if not manifest_path
strip = (str) -> str\match "^%s*(.-)%s*$"
read_cmd = (cmd) ->
f = io.popen cmd, "r"
with strip f\read"*a"
assert f\close!
fin = io.open manifest_path, "r"
app = yaml.load fin\read "*a"
fin\close!
if app.overlay
print "writing overlay for #{app.name or "this application"}"
for step, command in pairs app.overlay
f = io.popen command, "r"
for line in f\lines!
print "#{step} -- #{line}"
assert f\close!
if app.dependencies
print "installing dependencies for #{app.name or "this application"}..."
for _, dep in pairs app.dependencies
print "installing dependency #{dep}"
read_cmd "moonrocks install #{dep}"
print "done!"

View File

@ -1,32 +0,0 @@
FROM alpine
# Add Tini
ENV TINI_VERSION v0.8.3
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini
RUN chmod +x /tini
ADD ./entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
ENV GUIX_VERSION 0.9.0
ENV PATH $PATH:/var/guix/profiles/default/guix-profile/bin
# update to edge
ADD repositories /etc/apk/repositories
RUN apk update && apk upgrade
# install guix in one pass
RUN set -x && apk update && apk add xz tar wget runit \
&& wget ftp://alpha.gnu.org/gnu/guix/guix-binary-0.9.0.x86_64-linux.tar.xz -O guix.tar.xz \
&& tar xJf guix.tar.xz \
&& rm guix.tar.xz \
&& addgroup guixbuild \
&& chmod 1775 /gnu/store \
&& ln -sf /var/guix/profiles/per-user/root/guix-profile ~root/.guix-profile \
&& mkdir -p /usr/local/bin \
&& cd /usr/local/bin \
&& ln -s /var/guix/profiles/per-user/root/guix-profile/bin/guix \
&& guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu.org.pub \
&& adduser -S guix-builder guix-builder \
&& adduser guix-builder guixbuild
ADD runit/ /etc/system

View File

@ -1,14 +0,0 @@
# Guix in Docker
Guix is cool, so is Docker, why not combine them?
```console
$ docker build -t xena/guix .
$ docker run --rm -it --privileged xena/guix /bin/sh
$ pstree
tini-+-runsvdir---runsv---run---guix-daemon
`-sh---pstree
$ guix package --install hello
$ hello
Hello, world!
```

View File

@ -1,7 +0,0 @@
#!/bin/sh
set -e
runsvdir /etc/system &
exec /tini -- $*

View File

@ -1,2 +0,0 @@
http://dl-4.alpinelinux.org/alpine/edge/main
http://dl-4.alpinelinux.org/alpine/edge/testing

View File

@ -1,3 +0,0 @@
#!/bin/sh
~root/.guix-profile/bin/guix-daemon --build-users-group=guixbuild

View File

@ -1,33 +0,0 @@
FROM phusion/baseimage:0.9.17
MAINTAINER Xena <xena@yolo-swag.com>
RUN apt-get update && \
apt-get -y install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make curl git-core luarocks lua-sec nodejs npm lua-discount
ENV SRC_DIR /opt
ENV OPENRESTY_VERSION 1.9.3.2
ENV OPENRESTY_PREFIX /app/openresty
RUN cd $SRC_DIR && curl -LO http://openresty.org/download/ngx_openresty-$OPENRESTY_VERSION.tar.gz &&\
tar xzf ngx_openresty-$OPENRESTY_VERSION.tar.gz && cd ngx_openresty-$OPENRESTY_VERSION &&\
./configure --prefix=$OPENRESTY_PREFIX &&\
make && make install && rm -rf ngx_openresty-$OPENRESTY_VERSION* &&\
luarocks install moonscript &&\
luarocks install moonbox &&\
npm install -g bower && npm install -g coffee-script &&\
ln -s /usr/bin/nodejs /usr/local/bin/node
ADD lapis /etc/service/lapis/run
ENTRYPOINT /sbin/my_init
ENV PORT 5000
EXPOSE 5000
ENV LAPIS_ENVIRONMENT docker
ONBUILD ADD BoxFile /app/src/BoxFile
ONBUILD RUN cd /app/src && moonbox install
ONBUILD ADD bower.json /app/src/bower.json
ONBUILD RUN cd /app/src && bower --allow-root install
ONBUILD ADD . /app/src
ONBUILD RUN moonc /app/src
ONBUILD RUN cd /app/src/static && find -name "*.coffee" -exec coffee -c {} \;

View File

@ -1,9 +0,0 @@
#!/bin/bash
cd /app/src
export LAPIS_OPENRESTY=/app/openresty/nginx/sbin/nginx
source moonbox env enter
[ -e migrations.lua ] && lapis migrate
lapis server docker

View File

@ -1,5 +0,0 @@
*.lua
*.js
bower_components
.git
.moonbox

View File

@ -1,2 +0,0 @@
/static/css/readable.css linguist-vendored
/static/css/font-awesome.min.css linguist-vendored

View File

@ -1,5 +0,0 @@
*.lua
*.js
bower_components
.git
.moonbox

View File

@ -1,2 +0,0 @@
lapis
dkjson

View File

@ -1 +0,0 @@
FROM xena/lapis-ultimate

View File

@ -1,10 +0,0 @@
lapis = require "lapis"
class extends lapis.Application
layout: require "layout.bootstrap"
[index: "/"]: =>
render: true
handle_404: =>
status: 404, render: "notfound"

View File

@ -1,23 +0,0 @@
{
"name": "test",
"version": "0.0.0",
"homepage": "https://github.com/Xe/dockerfiles",
"authors": [
"Christine Dodrill <xena@yolo-swag.com>"
],
"description": "My Test app",
"license": "Zlib",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "~3.3.2",
"fontawesome": "~4.3.0",
"instantclick": "~3.1.0"
}
}

View File

@ -1,7 +0,0 @@
config = require "lapis.config"
config "development", ->
port 8080
config "docker", ->
port os.getenv "PORT"
postgresql_url os.getenv "DATABASE_URL"

View File

@ -1,80 +0,0 @@
import Widget from require "lapis.html"
class Layout extends Widget
head: =>
meta charset: "UTF-8"
title ->
if @title
text "#{@title} - My Awesome Site"
else
text "My Awesome Site"
if @meta_description
meta property: "og:description", content: @meta_description
meta name: "description", content: @meta_description
link rel: "stylesheet", href: "/static/comp/bootstrap/dist/css/bootstrap.min.css"
link rel: "stylesheet", href: "/static/comp/bootstrap/dist/css/bootstrap-theme.min.css"
link rel: "stylesheet", href: "/static/comp/fontawesome/css/font-awesome.min.css"
link rel: "stylesheet", href: "/static/css/main.css"
link type: "text/plain", rel: "author", href: "/humans.txt"
script src: "/static/comp/jquery/dist/jquery.min.js"
script src: "/static/comp/bootstrap/dist/js/bootstrap.min.js"
script src: "/static/comp/instantclick/instantclick.js"
header: =>
nav class: "navbar navbar-fixed-top", ->
div class: "container", ->
div class: "navbar-header", ->
button type: "button", class: "navbar-toggle collapsed", ["data-toggle"]: "collapse", ["data-target"]: "#navbar", ["aria-expanded"]: "false", ["aria-controls"]: "navbar", ->
span class: "sr-only", ->
text "Toggle navigation"
for i=1,3
span class: "icon-bar"
a class: "navbar-brand", href: "/", ->
text "My Awesome Site"
div id: "navbar", class: "collapse navbar-collapse", ->
ul class: "nav navbar-nav", ->
li ->
a href: "#", "Link 1"
li ->
a href: "#", "Link 2"
ul class: "nav navbar-nav navbar-right", ->
li ->
a href: "#", "Contact"
footer: =>
footer ->
div class: "container footer", ->
center ->
p class: "text-muted", ->
text "Copyright - #{os.date "%Y"}"
if os.getenv "GIT_REV"
text " - revision "
code "#{os.getenv("GIT_REV")\sub 1,8}"
body: =>
div class: "container", ->
if @flash
div class: "flash", ->
text @flash
@content_for "inner"
content: =>
html_5 ->
head ->
@head!
body ->
@header!
@body!
@footer!

View File

@ -1,79 +0,0 @@
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
application/atom+xml atom;
application/rss+xml rss;
text/mathml mml;
text/plain txt;
text/vnd.sun.j2me.app-descriptor jad;
text/vnd.wap.wml wml;
text/x-component htc;
image/png png;
image/tiff tif tiff;
image/vnd.wap.wbmp wbmp;
image/x-icon ico;
image/x-jng jng;
image/x-ms-bmp bmp;
image/svg+xml svg svgz;
image/webp webp;
application/java-archive jar war ear;
application/mac-binhex40 hqx;
application/msword doc;
application/pdf pdf;
application/postscript ps eps ai;
application/rtf rtf;
application/vnd.ms-excel xls;
application/vnd.ms-powerpoint ppt;
application/vnd.wap.wmlc wmlc;
application/vnd.google-earth.kml+xml kml;
application/vnd.google-earth.kmz kmz;
application/x-7z-compressed 7z;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/xhtml+xml xhtml;
application/zip zip;
application/octet-stream bin exe dll;
application/octet-stream deb;
application/octet-stream dmg;
application/octet-stream eot;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/midi mid midi kar;
audio/mpeg mp3;
audio/ogg ogg;
audio/x-m4a m4a;
audio/x-realaudio ra;
video/3gpp 3gpp 3gp;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/webm webm;
video/x-flv flv;
video/x-m4v m4v;
video/x-mng mng;
video/x-ms-asf asx asf;
video/x-ms-wmv wmv;
video/x-msvideo avi;
}

View File

@ -1,74 +0,0 @@
worker_processes ${{NUM_WORKERS}};
error_log stderr notice;
daemon off;
env PORT;
env GIT_REV;
events {
worker_connections 1024;
}
http {
include mime.types;
server {
listen ${{PORT}};
lua_code_cache ${{CODE_CACHE}};
location / {
set $_url "";
default_type text/html;
content_by_lua '
require("lapis").serve("app")
';
}
location /static/ {
alias static/;
}
location /static/comp/ {
alias bower_components/;
}
location /favicon.ico {
alias static/favicon.ico;
}
location /humans.txt {
alias static/humans.txt;
}
location /keybase.txt {
alias static/keybase.txt;
}
location /capture {
internal;
resolver 8.8.8.8;
set_unescape_uri $clean_url $arg_url;
proxy_pass $clean_url;
}
location /proxy {
internal;
rewrite_by_lua "
local req = ngx.req
for k,v in pairs(req.get_headers()) do
if k ~= 'content-length' then
req.clear_header(k)
end
end
if ngx.ctx.headers then
for k,v in pairs(ngx.ctx.headers) do
req.set_header(k, v)
end
end
";
resolver 8.8.8.8;
proxy_http_version 1.1;
proxy_pass $_url;
}
}
}

View File

@ -1,54 +0,0 @@
body {
padding-top: 60px;
background: #FFF9FD;
margin-bottom: 60px;
}
.container {
max-width 600px;
padding: 0 15px;
}
.container .text-muted {
margin: 20px 0;
}
html {
position: relative;
min-height: 100%;
}
.flash {
background: #cee5F5;
padding: 0.5em;
border: 1px solid #aacbe2;
}
.error {
background: #f0d6d6;
padding: 0.5em;
}
table {
align: center;
border-width: 1px;
border-spacing: 2px;
border-style: outset;
border-color: gray;
border-collapse: collapse;
background-color: white;
}
table td {
border-width: 1px;
padding: 4px;
border-style: inset;
border-color: gray;
background-color: white;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,2 +0,0 @@
f = (x) ->
alert x

View File

@ -1,8 +0,0 @@
import Widget from require "lapis.html"
class Index extends Widget
content: =>
center ->
h1 "My Awesome Site"
p class: "lead", "Check out this awesomeness :D"

View File

@ -1,10 +0,0 @@
import Widget from require "lapis.html"
class UserInfo extends Widget
content: =>
center ->
h1 "Oops!"
p "Page not found!"
img src: "/static/img/404.png"

View File

@ -1,8 +0,0 @@
FROM xena/base
RUN apt-get update && apt-get upgrade -y && \
apt-get install --assume-yes liblua5.1-dev lua5.1 luajit luarocks \
build-essential make git mercurial wget curl
RUN luarocks install --server=http://rocks.moonscript.org moonrocks
RUN moonrocks install moonscript

View File

@ -1,4 +0,0 @@
FROM docker.io/xena/dotfiles
ENV SHELL /bin/bash
RUN curl -s https://static.rust-lang.org/rustup.sh | sh

View File

@ -1,2 +0,0 @@
deb http://ppa.launchpad.net/titanous/tup/ubuntu trusty main
deb-src http://ppa.launchpad.net/titanous/tup/ubuntu trusty main

View File

@ -1,11 +0,0 @@
FROM alpine
RUN apk update && apk add alpine-sdk fuse-dev
RUN mkdir /usr/src
RUN cd /usr/src &&\
git clone git://github.com/gittup/tup.git &&\
cd tup &&\
./bootstrap.sh &&\
cp tup /usr/local/bin/tup

View File

@ -1,17 +0,0 @@
FROM alpine:edge
ENV CONSUL_VERSION v0.6.4
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
go get -u -tags ${CONSUL_VERSION} github.com/hashicorp/consul && \
echo "consul built" && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/consul

View File

@ -1,17 +0,0 @@
FROM alpine:edge
ENV NOMAD_VERSION v0.3.1
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
go get -u -tags ${NOMAD_VERSION} github.com/hashicorp/nomad && \
echo "nomad built" && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/nomad

View File

@ -1,17 +0,0 @@
FROM alpine:edge
ENV SERF_VERSION v0.7.0
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
go get -u -tags ${SERF_VERSION} github.com/hashicorp/serf && \
echo "serf built" && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/serf

View File

@ -1,21 +0,0 @@
FROM alpine:edge
ENV TERRAFORM_VERSION v0.6.14
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
apk update; apk upgrade && \
apk add curl make git go gcc musl-dev openssl-dev && \
mkdir /go && \
export GOPATH=/go && \
go get -u -v -tags ${TERRAFORM_VERSION} github.com/hashicorp/terraform/... && \
go get -u -v -tags ${TERRAFORM_VERSION} github.com/hex-sh/terraform-provider-scaleway/... && \
go get -u -v -tags ${TERRAFORM_VERSION} github.com/jonmorehouse/terraform-provisioner-ansible/... && \
echo "terraform built" && \
mv /go/bin/terraform* /usr/local/bin && \
(for file in /go/bin/*; do if [[ $file != 'terraform*' ]]; then mv $file /go/bin/terraform-$(basename $file); fi; done) && \
mv /go/bin/* /usr/local/bin && \
rm -rf /go && \
apk del make git go gcc musl-dev openssl-dev && \
rm -rf /var/cache/apk/*
CMD /usr/local/bin/terraform

View File

@ -1,11 +0,0 @@
FROM xena/alpine
RUN apk add --no-cache g++ git
RUN git clone git://github.com/nim-lang/Nim.git nim&&\
cd nim&& git clone --depth 1 git://github.com/nim-lang/csources&&\
cd csources&& sh build.sh&& chmod +x ../bin/nim&&\
cd /nim&& bin/nim c koch&& ./koch boot -d:release&&\
ln -s `pwd`/bin/nim /bin/nim
RUN git clone https://github.com/nim-lang/nimble.git&&\
cd nimble&& nim -d:release c -r src/nimble -y install&&\
ln -s `pwd`/nimble /bin/nimble

13
net/ympd/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM flitter/init
RUN apt-get update && apt-get install cmake libmpdclient-dev git-core ca-certificates -y build-essential gcc make
RUN git clone https://github.com/notandy/ympd /app/src && \
cd /app/src && \
mkdir build && cd build && \
cmake .. -DCMAKE_INSTALL_PREFIX_PATH=/usr && make && make install
ADD ympd /etc/service/ympd/run
CMD /sbin/my_init
EXPOSE 8080

3
net/ympd/ympd Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ympd -h $MPD_PORT_6600_TCP_ADDR

View File

@ -1,16 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y firefox
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer
USER developer
ENV HOME /home/developer
CMD /usr/bin/firefox

View File

@ -1,3 +0,0 @@
#!/bin/sh
docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/xena/Downloads:/home/developer/Downloads -v /home/xena/.mozilla:/home/developer/.mozilla xena/firefox

View File

@ -1,16 +0,0 @@
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y hexchat ca-certificates
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/xena && \
echo "xena:x:${uid}:${gid}:Developer,,,:/home/xena:/bin/bash" >> /etc/passwd && \
echo "xena:x:${uid}:" >> /etc/group && \
echo "xena ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/xena && \
chmod 0440 /etc/sudoers.d/xena && \
chown ${uid}:${gid} -R /home/xena
USER xena
ENV HOME /home/xena
CMD /usr/bin/hexchat

View File

@ -1,4 +0,0 @@
#!/bin/sh
docker run -dit -v /home/xena --name hexchat-data xena/hexchat /bin/bash
docker run -ti -d --name hexchat -e DISPLAY=$DISPLAY --volumes-from hexchat-data -v /tmp/.X11-unix:/tmp/.X11-unix xena/hexchat