This gist is an implementation of http://sirile.github.io/2015/05/18/using-haproxy-and-consul-for-dynamic-service-discovery-on-docker.html on top of Docker Machine and Docker Swarm.
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 openjdk:8-jdk AS builder | |
RUN mkdir /src | |
COPY HelloWorld.java /src | |
RUN javac /src/HelloWorld.java | |
FROM openjdk:8-jre | |
COPY --from=builder /src/HelloWorld.class / | |
WORKDIR / | |
CMD ["java", "HelloWorld"] |
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
<keymap> | |
<global> | |
<remote> | |
<Yellow>RunScript("/storage/.xbmc/userdata/keymaps/sound.py")</Yellow> | |
</remote> | |
</global> | |
</keymap> |
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
## Skeleton config file for RetroArch | |
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... | |
# This will be overridden by explicit command line options. | |
savefile_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ | |
# Save all save states (*.state) to this directory. | |
# This will be overridden by explicit command line options. | |
savestate_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/ |
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
xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* alsa* nano python-pygame python-tk python3-tk scratch tsconf |
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
# Run this with jboss-cli to deplyo the given module: | |
module add --name=com.mydomain.placeholder --resources=placeholder\target\placeholder-6.6.6-SNAPSHOT.jar | |
/subsystem=ee:write-attribute(name="global-modules",value=[{"name" => "com.mydomain.placeholder","slot" => "main"}]) |
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
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd" updateCheck="false"> | |
<!-- This is a default configuration for 256Mb of cached data using the JVM's heap, but it must be adjusted | |
according to specific requirement and heap sizes --> | |
<defaultCache | |
maxBytesLocalHeap="256000000" | |
eternal="false" | |
timeToIdleSeconds="120" | |
timeToLiveSeconds="120" |
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
class String | |
# colorization | |
def colorize(color_code) | |
"\e[#{color_code}m#{self}\e[0m" | |
end | |
def red | |
colorize(31) | |
end |
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 | |
puppet node_aws bootstrap \ | |
--debug \ | |
--image ami-c1aaabb5 \ | |
--keyname 'puppet_provisioner' \ | |
--type 'm1.small' \ | |
--region eu-west-1 \ | |
--security-group puppet-clients \ | |
--login ubuntu \ |
NewerOlder