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
#!/bin/sh | |
# Arg 1: -rf | |
# Arg 2: /testbtrfs/backups/hourly.4/ | |
# echo 1: $1 2: $@ | |
# Try to delete the given path with btrfs subvolume delete first | |
# Check if inode number == 256 (all subvolumes have inode number 256) | |
if [ "$1" = "-rf" -a "$3" = "" -a $(stat --printf='%i' $2) -eq 256 ]; then |
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
root@host:~# docker run -d mendix/mendix | |
root@host:~# curl -XPOST -F [email protected] http://172.17.0.5:5000/upload/ | |
File uploaded. | |
root@host:~# curl -XPOST http://172.17.0.5:5000/unpack/ | |
Runtime downloaded and Model unpacked. | |
root@host:~# curl -XPOST -d "DatabaseHost=172.17.0.4:5432" -d "DatabaseUserName=docker" -d "DatabasePassword=docker" -d "DatabaseName=docker" http://172.17.0.5:5000/config/ | |
Config set. | |
root@host:~# curl -XPOST http://172.17.0.5:5000/start/ | |
App started. (Database updated) |
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
debootstrap wheezy wheezy http://cdn.debian.net/debian | |
tar -C wheezy -c . | docker import - mendix/wheezy |
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
root@host:~# docker images | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
mendix/wheezy latest 1bee0c7b9ece 6 seconds ago 218.6 MB | |
root@host:~# |
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 build -t mendix/mendix . |
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
root@host:~# | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
mendix/mendix latest c39ee75463d6 10 seconds ago 589.6 MB | |
mendix/wheezy latest 1bee0c7b9ece 3 minutes ago 218.6 MB | |
root@host:~# |
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
GET /about/ # about m2ee-api | |
GET /status/ # app status | |
GET /config/ # show configuration | |
POST /config/ # set configuration | |
POST /upload/ # upload a new MDA | |
POST /unpack/ # unpack the uploaded MDA | |
POST /start/ # start the app | |
POST /stop/ # stop the running app | |
POST /terminate/ # terminate the running app | |
POST /kill/ # kill the running app |
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
root@host:~# docker pull mendix/mendix | |
Pulling repository mendix/mendix | |
c39ee75463d6: Download complete | |
eaea3e9499e8: Download complete | |
... | |
855acec628ec: Download complete | |
root@host:~# docker run -d mendix/mendix | |
bd7964940dfc61449da79cddd1c0e8845d61f6ec1092b466e8e2e582726a5eea | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
bd7964940dfc mendix/mendix:latest /bin/su mendix -c /u 19 seconds ago Up 18 seconds 5000/tcp, 7000/tcp tender_hawkings |
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
root@host:~# curl -XGET http://172.17.0.5:5000/status/ | |
The application process is not running. | |
root@host:~# curl -XGET http://172.17.0.5:5000/config/ | |
{ | |
"DatabaseHost": "127.0.0.1:5432", | |
"DTAPMode": "P", | |
"MicroflowConstants": {}, | |
"BasePath": "/home/mendix", | |
"DatabaseUserName": "mendix", | |
"DatabasePassword": "mendix", |
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
root@host:~# docker pull zaiste/postgresql | |
Pulling repository zaiste/postgresql | |
0e66fd3d6a6f: Download complete | |
27cf78414709: Download complete | |
... | |
046559147c70: Download complete | |
root@host:~# docker run -d zaiste/postgresql | |
9ba56a7c4bb132ef0080795294a077adca46eaca5738b192d2ead90c16ac2df2 | |
root@host:~# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
OlderNewer