This file contains hidden or 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
docker run -d \ | |
--name ghost-5 \ | |
--restart always \ | |
-p 127.0.0.1:XXX:2368 \ | |
-e url=https://blog.foo.bar/ \ | |
-e database__client=sqlite3 \ | |
-e database__connection__filename="content/data/ghost.db" \ | |
-e database__useNullAsDefault=true \ | |
-e database__debug=false \ | |
-v /my/blog/data:/var/lib/ghost/content \ |
This file contains hidden or 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
# With curl you'll have to parse the versions by yourself, and get fucked: | |
$ curl -s https://download.docker.com/linux/ubuntu/dists/bionic/stable/binary-amd64/Packages | grep -A2 -E "Package: docker-ce" | grep Version | awk -F 'Version:' '{print $2}' | sort -Vr | head -n 10 | |
18.06.3~ce~3-0~ubuntu | |
18.06.2~ce~3-0~ubuntu | |
18.06.1~ce~3-0~ubuntu | |
18.06.0~ce~3-0~ubuntu | |
18.03.1~ce~3-0~ubuntu | |
5:20.10.10~3-0~ubuntu-bionic | |
5:20.10.10~3-0~ubuntu-bionic | |
5:20.10.10~3-0~ubuntu-bionic |
This file contains hidden or 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
# Docker Machine for Consul | |
docker-machine \ | |
create \ | |
-d virtualbox \ | |
consul-machine | |
# Start Consul | |
docker $(docker-machine config consul-machine) run -d --restart=always \ | |
-p "8500:8500" \ | |
-h "consul" \ |
This file contains hidden or 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
version: '2' | |
services: | |
web: | |
build: . | |
image: java-jersey-image | |
container_name: app-pierre | |
ports: | |
- 8080 | |
links: | |
- database |
This file contains hidden or 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
public void test(){ | |
Context context = Contexts.getApplicationContext(); | |
for (String name: context.getNames()) { | |
Object object = context.get(name); | |
if(object instanceof org.jboss.seam.Component) { | |
Component component = (Component) object; | |
if(component.isStartup()){ | |
System.out.println(component.getName()+"-"+component.getType()+"-"+component.getScope()+"-"+component.getTimeout()+"-"+component.isStartup()+"-"+component.isSynchronize()); | |
} | |
} |
This file contains hidden or 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
public class LesFrites { | |
public LesFrites(){ | |
this.lesFrites = caMeRend.tropHeureux(quandJenMange()); | |
} | |
} |