File tree Expand file tree Collapse file tree 6 files changed +62
-14
lines changed
Expand file tree Collapse file tree 6 files changed +62
-14
lines changed Original file line number Diff line number Diff line change 1+ .idea
2+ .vscode
Original file line number Diff line number Diff line change 1+ ## 1.0.1 (2018-06-06)
2+ * Added Makefile.sample.mk
3+ * Added CHANGELOG.md
4+
5+ ## 1.0.0 (2018-06-05)
6+ * Added simple installation script
7+ * Added ** mk-version** and ** mk-upgrade** commands
8+ * Added to self upgrade script with ** mk-upgrade** command
9+ * Changed library from * .makefile-lib* to * mk-lib*
10+ * Added support of absolute paths
11+ * Added [ website] ( https://kudlay.pro/docker-compose-makefile/ )
12+
13+ ## v0.9 (2017-11-21)
14+ * Initial version with basic functionality
Original file line number Diff line number Diff line change 3939SAMPLES
4040-------
4141
42- You may see sampess [ here] ( https://github.com/krom/docker-compose-makefile/tree/master/samples )
42+ You may see samples [ here] ( https://github.com/krom/docker-compose-makefile/tree/master/samples )
4343
4444CUSTOMIZATION
4545-------------
Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22echo " Building release"
3- out=release/.mk-lib/
4- mkdir -p $out
5- cp -r src/* $out
6- cp README.md $out
7- cp LICENSE $out
8- echo " MK_VERSION := $TRAVIS_TAG " > $out /version.mk
3+ OUT=release/.mk-lib
4+
5+ # Creating dir
6+ mkdir -p $OUT
7+
8+ # Coping files
9+ cp -r src/* $OUT
10+ cp README.md $OUT
11+ cp LICENSE $OUT
12+ cp CHANGELOG.md $OUT
13+ cp samples/Makefile $OUT /Makefile.sample.mk
14+
15+ # Writing current version
16+ echo " MK_VERSION := $TRAVIS_TAG " > $OUT /version.mk
17+
18+ # Compressing release to *.zip and *.tgz
919tar -czf release.tgz -C release .
1020cd release/; zip -r ../release.zip . ; cd ..
Original file line number Diff line number Diff line change 1- # /bin/sh
1+ #! /bin/sh
2+
3+ # Docker compose installation script
4+ # Execute this script with command
5+ # curl -sL https://git.io/vh4Gn | sh
6+
7+ # Main repo address
28REPO=krom/docker-compose-makefile
9+
310get_latest_release () {
411 curl --silent " https://api.github.com/repos/$1 /releases/latest" | # Get latest release from GitHub api
512 grep ' "tag_name":' | # Get tag line
613 sed -E ' s/.*"([^"]+)".*/\1/' # Pluck JSON value
714}
815
9- v=$( get_latest_release $REPO )
10- release=https://github.com/$REPO /releases/download/$v /release.tgz
11- echo Downloading version $v from $release
12- curl -Ls $release | tar zxfm -
16+ # Getting URL to release archive
17+ V=$( get_latest_release $REPO )
18+ RELEASE=https://github.com/$REPO /releases/download/$V /release.tgz
19+
20+ # Downloading and extracting release
21+ echo Downloading version $V from $RELEASE
22+ curl -Ls $RELEASE | tar zxfm -
1323echo ' Created .mk-lib'
24+
25+ # Creating Makefile if needed
1426if [ -f Makefile ]; then
15- echo " Makefile exists. Please add this section to the head of Makefile"
16- cat .mk-lib/HEADER.mk
27+ echo " Makefile exists. Please add this section to the head of Makefile
28+
29+ -------------------------------------------------------------------------------"
30+ cat .mk-lib/HEADER.mk
31+ echo " -------------------------------------------------------------------------------
32+ "
1733else
1834 cp .mk-lib/HEADER.mk Makefile
1935 echo " Created new Makefile. Feel free to add new commands"
Original file line number Diff line number Diff line change 1+ # Docker compose upgrading script
2+ # Execute this script with command
3+ # make mk-upgrade
4+
15RELEASE=https://github.com/$MK_REPO /releases/download/$MK_VERSION /release.tgz
6+
7+ # Downloading new release
28echo " Downloading version $MK_VERSION from $RELEASE "
39curl -Ls $RELEASE | tar zxfm -
410echo " Done"
You can’t perform that action at this time.
0 commit comments